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 grib collection NaNs bug #1313

Merged
merged 1 commit into from
Mar 7, 2024

Conversation

tdrwenski
Copy link
Member

@tdrwenski tdrwenski commented Mar 6, 2024

Fix issue that a variable missing from one grib partition would result in all values of the variable after that time returning NaN for the "best" dataset. This was due to the runtime axis being marked regular if the number of missing values is less than 5%. With a regular runtime axis, the variable is assumed to have values for all runtimes which messes up the lookup for which partition contains which runtime.

The proposed fix is to not allow a tolerance of 5% in the case of the grib coverage runtime axis. The runtime axis with missing values will then be marked irregular instead of regular, so it will keep track of which exact values it has.

Related to previous issue: #1063
Integration test added to the TDS for this fix: Unidata/tds#473
Jenkins tests passing on this branch: https://jenkins-aws.unidata.ucar.edu/job/tara-netcdf-java/51/

…l times after from being read due to axis being marked regular
@tdrwenski tdrwenski marked this pull request as ready for review March 7, 2024 16:41
@haileyajohnson haileyajohnson merged commit a2c7146 into Unidata:maint-5.x Mar 7, 2024
10 checks passed
@tdrwenski tdrwenski deleted the grib-collection-nans branch March 7, 2024 17:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants