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

Bounds variable search assumes time dimension name #286

Open
angus-g opened this issue May 30, 2022 · 0 comments
Open

Bounds variable search assumes time dimension name #286

angus-g opened this issue May 30, 2022 · 0 comments

Comments

@angus-g
Copy link
Collaborator

angus-g commented May 30, 2022

In the following code segment, the search for relevant bounds variables hard-codes the name of the time dimension as time, but this isn't always the case. Perhaps this should use cc.netcdf_utils.find_time_dimension?

bounds_var = ncfile.ncvars["time"].attrs.get("bounds")
if bounds_var is not None:
variables.append(bounds_var)

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

No branches or pull requests

1 participant