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 time interval #339

Merged

Conversation

tdrwenski
Copy link
Contributor

@tdrwenski tdrwenski commented Jan 30, 2023

Fixes issue where grib collections with one time dimension always return all times even when a single file is requested.

The function I am fixing in this PR should return the full collection when the "TP" is requested and null if a specific grib file is requested (and then a different code path will find the correct time partition to return instead of the whole thing). Previously, it returned the full dataset in both cases. This bug did not affect forecast datasets that have two time dimensions, because there the number of datasets is two (best and twoD).


This change is Reviewable

@tdrwenski tdrwenski marked this pull request as ready for review January 30, 2023 20:31
@haileyajohnson haileyajohnson merged commit 1003378 into Unidata:main Jan 30, 2023
@tdrwenski tdrwenski deleted the fix-grib-collection-time-interval branch January 30, 2023 20:49
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.

2 participants