Hello all
I have a CR1000 that is giving me bad data for hourly rainfall totals. We also collect rainfall totals in a five min and 24 hour tables with no problems. Could it be a bad sector on the CR?
I have update the OS and made sure the programing is correct.
Example: on January 27th rainfall total between 5am to 6am.
5 min table for that time period gave me a total of 0.66 inches.
60 min table for the same time period gave me a total of 1308 inches.
Thanks
Tim
Please post a copy of your datalogger program.
Here is a snippit of the rainfall .
DataTable(Hourly,True,-1)
DataInterval(0,60,Min,10)
Average(1,Up_Stg,FP2,False)
Average(1,Dwn_Stg,FP2,False)
Average(1,Gate1Q,FP2,False)
Average(1,Gate2Q,FP2,False)
Average(1,TotalQ,FP2,False)
Sample(1,Gate1Open_ft,FP2)
Sample(1,Gate2Open_ft,FP2)
Totalize(1,Rain60Min,FP2,False)
Sample(1,Batt_Volt,FP2)
Sample(1,ID,FP2)
'Collect rain every second
PulseCount(Rain_01,1,1,2,0,0.01,0)
Rain_5Min=Rain_01
Rain60Min = Rain60Min+Rain_01
Rain2Day=Rain2Day+Rain_01
'Zero Rain 60 minute total at top of hour after recording
If IfTime(0,60,min) Then
Rain60Min=0
I Believe you just need to measure rainfall in a variable like "Rain"
Then in the data table of 5 minutes and the 60 minutes just calculate the total of the "Rain" variable, the datalogger will do all the work.
Something like below:
Public PTemp, Batt_volt, Rain'Define Data Tables.
DataTable (Hourly,1,-1) 'Set table size to # of records, or -1 to autoallocate.
DataInterval (0,60,Min,10)
Totalize (1,Rain,FP2,False)
EndTable
DataTable (Min5,1,-1) 'Set table size to # of records, or -1 to autoallocate.
DataInterval (0,5,Min,10)
Totalize (1,Rain,FP2,False)
EndTable
'Main Program
BeginProg
Scan (1,Sec,0,0)
PanelTemp (PTemp,60)
Battery (Batt_volt)
PulseCount (Rain,1,P1 ,1,0,0.1,0) ''Make shure the multiplier of the counts is ok for the rain gauge you have in this case is 0.1
CallTable Min5
CallTable Hourly
NextScan
EndProg
We do use a variable for Rainfall, that's the Rain_01 in the PulseCount line.
Odd part is I have 30 other sites with the same program that do not have this problem, that's why I'm leaning towards bad memory sector.
Tim
Not sure you would want to totalize Rain60Min. Perhaps just a Sample since you are manually totalizing with Rain60Min = Rain60Min+Rain_01
Is it the same type of data logger and operating system as the other units that do not have the problem? If those are the same, I would retrieve the program and use a compare to another logger's program (Notepad ++ (Plugin Menu, Compare) for example) to make sure something with that unit has not been changed by mistake.
All are CR1000 recorders, most but not all have OS 32.03. I 've compared it's program with others and there is nothing different I can find. But I may try putting a different sites program in it and then calibrate the rain gauge to see what happens.