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

Allow file missing data indicator values to be stored on NetCDFArray instances #246

Closed
davidhassell opened this issue Mar 3, 2023 · 0 comments · Fixed by #247
Closed
Labels
enhancement New feature or request
Milestone

Comments

@davidhassell
Copy link
Contributor

It can be useful to applications to know the missing data indicator without opening the netCDF file. This is the case for active storage reductions currently being implemented in cf-python.

It is almost always the case that the netCDF file is open and available when the NetCDFArray instance is created, so it is easy for these to be stored on the object if desired, e.g.

>>> n = NetCDFArray(
...     'file.nc', 'ncvar', missing_values={"missing_value": -999.0, "valid_range": (-111, 222)}
... )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant