gremau / NMEG_FluxProc

Code used to process and manage eddy covariance data for the New Mexico Elevation Gradient.
8 stars 2 forks source link

Midnight timestamps from CR23x loggers cause problems in MATLAB (PJ sites) #21

Closed gremau closed 9 years ago

gremau commented 9 years ago

There is a problem with how cr23x dataloggers create timestamps in their output files. Not sure if this is a product of the EDLOG commands we use or something fundamental to how older dataloggers deal with dates. Midnight is (always?) logged as 24:00 of the preceding day. This is different than in newer dataloggers that log midnight as 00:00 of the beginning day. MATLAB parses cr23x midnight (24:00 on day X) as 00:00 of that day ( 00:00 of day X), meaning that midnight observations are moved 24 hours back in time from the actual time they are taken in the resulting data file. This should be fixed as cr23x files are read in by MATLAB.

gremau commented 9 years ago

Fixed this by changing all 24:00 time observations to 00:00 and incrementing the same observation's day column (d + 1). See commit b022fe9b75