Unidata / netcdf-java

The Unidata netcdf-java library

Home Page:https://docs.unidata.ucar.edu/netcdf-java/current/userguide/index.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[5.5.3]: Fix GRIB IOSP to ensure time coordinates are monotonically increasing

ethanrd opened this issue · comments

Versions impacted by the bug

v5.x

What went wrong?

For variables where the data values are valid on a time interval, e.g., total precipitation, the GRIB IOSP calculates time coordinates from the set of time intervals specified in the GRIB records. When the set of time intervals are irregular and overlapping, using the mid-point of each interval as the time coordinate values can result in a coordinate variable that is not monotonically increasing.

Relevant stack trace

No response

Relevant log messages

No response

If you have an example file that you can share, please attach it to this issue.

If so, may we include it in our test datasets to help ensure the bug does not return once fixed?
Note: the test datasets are publicly accessible without restriction.

N/A

Code of Conduct

  • I agree to follow the UCAR/Unidata Code of Conduct

This issue (and soon to be added PRs) replaces PR #1043 in order to separate the solution for datasets with 1-D time from the solution for FMRC datasets with 2-D time (model run and valid).

I have solution for datasets with 1-D time and will submit soon, probably early next week. Still working on solution for FMRC datasets with 2-D time.