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

Add __getitem__ #4

Closed
3 of 4 tasks
dcherian opened this issue Jun 1, 2020 · 0 comments · Fixed by #39
Closed
3 of 4 tasks

Add __getitem__ #4

dcherian opened this issue Jun 1, 2020 · 0 comments · Fixed by #39

Comments

@dcherian
Copy link
Contributor

dcherian commented Jun 1, 2020

From pangeo-data/pangeo#771

A simple API for getting variables by their standard name (wrapping filter_by_attrs) would be useful. Perhaps

ds.cf[standard_name] or
ds.cf.search_standard_name(standard_name)

keys could be

@dcherian dcherian changed the title Add __getitem__ for standard name and coord names Add __getitem__ for standard name, axis names, coord names, cell measures Jun 1, 2020
@dcherian dcherian changed the title Add __getitem__ for standard name, axis names, coord names, cell measures Add __getitem__ Jun 1, 2020
dcherian referenced this issue in dcherian/cf-xarray Jun 3, 2020
Closes #3
Partially implements #4
dcherian added a commit that referenced this issue Jun 3, 2020
* Add getitem and actually parse attrs

Closes #3
Partially implements #4

* lint.

* Better test coverage.
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 a pull request may close this issue.

1 participant