Fix bug to allow for negative values of unixtime. #1239
Labels
MET: Library Code
priority: blocker
Blocker
requestor: NCAR
National Center for Atmospheric Research
type: bug
Fix something that is not working
Milestone
When debugging an issue with climatology data, I attempted to plot a NetCDF file containing a climatology field dated 1959. But that resulted in a runtime error unixtime (see below).
Update nc_var_info.cc, get_att_unixtime() to not error out for negative values of unixtime.
[johnhg@number5]% plot_data_plane cmean_2.5d.nc cmean_2.5d.ps 'name="TMP_P500"; level="(,)";'
DEBUG 1: Opening data file: cmean_2.5d.nc
ERROR :
ERROR : get_att_unixtime(const NcVarInfo &, const ConcatString &, unixtime &) -> attribute "init_time_ut" should be an integer or a string.
ERROR :
The text was updated successfully, but these errors were encountered: