Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bug to allow for negative values of unixtime. #1239

Closed
JohnHalleyGotway opened this issue Jan 27, 2020 · 0 comments
Closed

Fix bug to allow for negative values of unixtime. #1239

JohnHalleyGotway opened this issue Jan 27, 2020 · 0 comments
Assignees
Labels
MET: Library Code priority: blocker Blocker requestor: NCAR National Center for Atmospheric Research type: bug Fix something that is not working
Milestone

Comments

@JohnHalleyGotway
Copy link
Collaborator

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 :

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
MET: Library Code priority: blocker Blocker requestor: NCAR National Center for Atmospheric Research type: bug Fix something that is not working
Projects
None yet
Development

No branches or pull requests

1 participant