D
dmoran21
I am working with some files that I need to do some processing with.
Essentially, these files contain rainfall reports from various
automated rain gauges. These reports are given in 15 minute intervals
and the rainfall is a running total throughout the entire file. What I
need to do is process each of the files such that I have one hourly
reading and the precipitation for that hour. So basically, I need to
subtract the amount at the top of the previous hour from the amount
from the top of the current hour. Any suggestions on how this might be
done? I have taken a basic C course, but this seems to be a little
beyond what I know. Below is a sample of the files I am working with.
20060306,1600,29.61
20060306,1615,29.65
20060306,1630,29.69
20060306,1645,29.73
20060306,1700,29.77
20060306,1715,29.81
20060306,1730,29.81
20060306,1745,29.81
20060306,1800,29.81
20060306,1815,29.81
20060306,1830,29.81
20060306,1845,29.81
20060306,1900,29.81
20060306,1915,29.81
20060306,1930,29.81
20060306,1945,29.81
20060306,2000,29.81
20060306,2015,29.81
20060306,2030,29.81
20060306,2045,29.81
20060306,2100,29.81
20060306,2115,29.81
20060306,2130,29.81
20060306,2145,29.81
20060306,2200,29.81
20060306,2215,29.81
20060306,2230,29.81
20060306,2245,29.81
20060306,2300,29.81
20060306,2315,29.81
20060306,2330,29.81
20060306,2345,29.85
20060307,0000,29.89
Thanks.
Dave
Essentially, these files contain rainfall reports from various
automated rain gauges. These reports are given in 15 minute intervals
and the rainfall is a running total throughout the entire file. What I
need to do is process each of the files such that I have one hourly
reading and the precipitation for that hour. So basically, I need to
subtract the amount at the top of the previous hour from the amount
from the top of the current hour. Any suggestions on how this might be
done? I have taken a basic C course, but this seems to be a little
beyond what I know. Below is a sample of the files I am working with.
20060306,1600,29.61
20060306,1615,29.65
20060306,1630,29.69
20060306,1645,29.73
20060306,1700,29.77
20060306,1715,29.81
20060306,1730,29.81
20060306,1745,29.81
20060306,1800,29.81
20060306,1815,29.81
20060306,1830,29.81
20060306,1845,29.81
20060306,1900,29.81
20060306,1915,29.81
20060306,1930,29.81
20060306,1945,29.81
20060306,2000,29.81
20060306,2015,29.81
20060306,2030,29.81
20060306,2045,29.81
20060306,2100,29.81
20060306,2115,29.81
20060306,2130,29.81
20060306,2145,29.81
20060306,2200,29.81
20060306,2215,29.81
20060306,2230,29.81
20060306,2245,29.81
20060306,2300,29.81
20060306,2315,29.81
20060306,2330,29.81
20060306,2345,29.85
20060307,0000,29.89
Thanks.
Dave