Hi…
I am having data for every second for a year. Following is a file:
Infile:
2019-01-01T01:01:01 14.600 0.000
2019-01-01T01:01:02 15.100 32.976
2019-01-01T01:01:03 15.700 45.372
2019-01-01T01:01:04 16.300 27.795
2019-01-01T01:01:05 16.800 25.586
2019-01-01T01:01:06 17.500 35.843
2019-01-01T01:01:07 18.100 55.230
2019-01-01T01:01:08 18.800 20.551
2019-01-01T01:01:09 19.500 28.891
I am trying to average out the data on a daily base using blockmean over these datasets. I am unable to get the expected output.
code:
j=9i/2.5i
R=-R2019-00-00T00:00:00/2019-12-31T23:59:59/0/1000
psbasemap $R -JX$j -Bpxa1Of1o --MAP_LABEL_OFFSET=20p -Bpya100f25+l"Diameter" -BWSne -K -X3 -Y12 > $out
makecpt -Cjet -T0/200000/1000 > map.cpt
cat $infile | blockmean $R -I10/10 -f0T -C -Sm > sam1.xyz`
I got the following output using the above lines. It provides only maximum values of the second column in the second column of the output file instead of bins.
Outfile:
2019-01-01T01:00:00 982.2 16.52
2019-01-01T01:05:00 982.2 32.56
2019-01-01T01:10:00 982.2 235.25
2019-01-01T01:15:00 982.2 156.37
2019-01-01T01:20:00 982.2 29.87
Addition to the above issue, when I try to use the above code for my whole file, which is ~2GB in size. blockmean kills a task and provides me with the following error.
blockmean (GMT_blockmean): Error: Could not reallocate memory [91.83 Gb, 6162811815 items of 16 bytes]
Thank you in advance.