VIC
VIC copied to clipboard
VIC4.2.d output shifted by one day at some latlon locations
Bug Reports
- VIC version: 4.2.d
- C compiler: GCC 4.4.7
- Operating system: Linux
- Bug found during VIC science test when comparing VIC4.2.d results with VIC5.0.1
- Bug description:
- Even with hourly met forcing input of all the 7 required variables (so in theory no need for any met disaggregation), VIC4.2.d sometimes introduces a 1-day shift in all met variables, resulting in a 1-day shift in subsequent simulation results (i.e., if try to output met variables, such as
OUT_PREC
orOUT_AIR_TEMP
, these output met variables are shifted by 1 day compared to input forcing; other output variables are also shifted consequently). - This only happens at some locations but not all (e.g., in the VIC science test suite,
40.0329_-105.5464
has 1-day shift, while41.1649_-96.4701
has correct timing) - By simply editting the
lat
lon
values for a shifted location fixed the issue, so the bug is likely due to some messing up withlat
lon
when processing timestamps; but further investigation and bug fixing is needed - VIC5 timing is correct
- Even with hourly met forcing input of all the 7 required variables (so in theory no need for any met disaggregation), VIC4.2.d sometimes introduces a 1-day shift in all met variables, resulting in a 1-day shift in subsequent simulation results (i.e., if try to output met variables, such as