Search Results

Search: Posts Made By: gd9629
2,080
Posted By gd9629
Hey Bartus, for the averaging code you gave...
Hey Bartus,

for the averaging code you gave me I'm unsure as to what the code actually does, can you just breifly run through what the parts of the script do?



#!/bin/gawk -f

# this...
5,911
Posted By gd9629
I have an output like this now Site:...
I have an output like this now


Site: Ridge Hill
yyyy mm dd hh mm ____CO2________SD_______CH4_______SD_______H20_______SD__
2011 06 09 15 38 4.65205e+02 71.0168 2.03040e+00 0.1782...
5,911
Posted By gd9629
My love knows no boundaries for you my friend....
My love knows no boundaries for you my friend. Just one final quick thing, for file2, the standard deviation code you gave me before, how would I amend it so that all values were to 4 decimal places?
5,911
Posted By gd9629
Bartus I do believe you're a magician. If I want...
Bartus I do believe you're a magician. If I want to combine two files

File 1

Site: Ridge Hill
yyyy mm dd hh CO2 CH4 H20
2011 06 09 14 5.2977498477e+02...
5,911
Posted By gd9629
Hi Roboticus, I've tried combining the...
Hi Roboticus,

I've tried combining the codes you've given me into


function std_dev(data, count) {
sum=0;
for( x=1; x <= count; x++) {
sum += data[x];
}

avg =...
5,911
Posted By gd9629
Hi Roboticus, Thanks for the help. Am I...
Hi Roboticus,

Thanks for the help. Am I right in thinking this will give me the hourly SD's for column 7? How would I get the hourly SD's of say columns 17 19 and 20 and place them next to each...
5,911
Posted By gd9629
Standard deviation in awk
Hi all,

I need to find the standard deviation of each column of a dataset below for each hour. The data is given in 5 second intervals as shown below


DATE TIME ...
2,080
Posted By gd9629
I apologise if I've been ambiguous, I shall...
I apologise if I've been ambiguous, I shall attempt to clarify the task.

I wish the output file to look like this

DATE TIME FRAC_DAYS_SINCE_JAN1 ...
2,080
Posted By gd9629
I have written a script in awk that edits the raw...
I have written a script in awk that edits the raw data into a format that can be analysed by a pre written program. However with 5 second data, the quantity that is read into the program is huge (and...
2,080
Posted By gd9629
Averaging help in awk
Hi all,

I have a data file like below, where Time is in the second column


DATE TIME FRAC_DAYS_SINCE_JAN1
2011-06-25 ...
1,661
Posted By gd9629
hey dude2cool, I meant sort it from the earliest...
hey dude2cool, I meant sort it from the earliest date first to the most recent date. There's 10 years worth of data, the years themselves are together but are grouped randomly.

Hi yazu, I tried...
1,661
Posted By gd9629
Using awk to rearrange data according to date
Hi,

I have a large data frame as shown below, where data is separated into years.


10 May 2011 Created: 10 May 11 15:05 GMT Scale: SIO-2005 and others
GC-MD, Cape Grim, Tasmania, Lat.:...
3,764
Posted By gd9629
Using the same concept, I need to remove 6 lines...
Using the same concept, I need to remove 6 lines of a data frame and those interspersed throughout.


10 May 2011 Created: 10 May 11 15:05 GMT Scale: SIO-2005 and others
GC-MD, Cape Grim,...
3,764
Posted By gd9629
Hey Michael, that code worked! I had to...
Hey Michael,

that code worked! I had to write the input file to a few one i.e.


sed '1!{/DATE/d}' inputfile1.dat > inputfile2.dat



Thanks a lot!
3,764
Posted By gd9629
Remove interspersed headers in .dat file with AWK
Heya there,

A small selection of my data is shown below.


DATE TIME FRAC_DAYS_SINCE_JAN1
2011-06-25 08:03:20.000 ...
3,475
Posted By gd9629
@panyam this is the result the Shell gave me ...
@panyam this is the result the Shell gave me


09/06/2011 20:00:00 0
24/06/2011 13:00:00 0
21/06/2011 18:00:00 0
09/06/2011 21:00:00 0
24/06/2011 14:00:00 0
21/06/2011 19:00:00 0
09/06/2011...
2,690
Posted By gd9629
hey, The averages were printed out to the...
hey,

The averages were printed out to the shell so that's great, is there anyway of replacing the existing data in the csv file so the output looks like


25/06/2011 08:03:20 386.034 ...
3,475
Posted By gd9629
hey! This is my output hour-> 17...
hey! This is my output



hour-> 17 average-> 0
hour-> 08 average-> 0
hour-> average-> 0
hour-> 18 average-> 0
hour-> 09 average-> 0
hour-> 19 average-> 0
hour-> 00 average-> 0
hour-> 01...
2,690
Posted By gd9629
date,alarm,species,solenoid,mpv,outlet,cavp,cavt,w...
date,alarm,species,solenoid,mpv,outlet,cavp,cavt,warmbox,etalon,dastemp,co2sync,co2,ch4sync,ch4,h2osync$
25/06/2011 08:03:20...
3,475
Posted By gd9629
Hourly averaging using Awk
Hey all,

I have a set of 5-second data as shown below. I need to find an hourly average of this data.


date co2
25/06/2011 08:04:00 8.30
25/06/2011 08:04:05 ...
2,690
Posted By gd9629
For some odd reason I'm still getting ...
For some odd reason I'm still getting


CO2 CH4
0 0
0 0
0 0
0 0
0 0
0 0
0 0
0 0
0 0


Did you say there was a way to edit the file itself,...
2,690
Posted By gd9629
ok no worries, thanks for the help!
ok no worries, thanks for the help!
2,690
Posted By gd9629
Oh my bad. It doesn't do that either, just prints...
Oh my bad. It doesn't do that either, just prints 'CO2 CH4'. Is there anyway to change the file? As that is the hope in averaging to 30 minutes, that the .csv file gets edited.
2,690
Posted By gd9629
I exported it to a csv and changed the delimiter,...
I exported it to a csv and changed the delimiter, but still didn't change the file at all. Did it work for you?
2,690
Posted By gd9629
I've attached just a snippet of the file. Hope it...
I've attached just a snippet of the file. Hope it helps.
Showing results 1 to 25 of 45

 
All times are GMT -4. The time now is 10:59 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy