NPIOcean / kval

Tools for analysis and processing of ocean data in Python.
MIT License
2 stars 0 forks source link

Functionality for more easily indexing data by non-coordinate variable #14

Closed oyvfoss closed 3 months ago

oyvfoss commented 3 months ago

We want to have TIME rather than STATION or CAST coordinates.

Still, it it often more convenient to access e.g. a CTD profile based on STATION or CAST than a time stamp.

This is a little clunky in xarray - want to write wrappers in xr_funcs.py for doing this more smoothly.

What we want may effectively be wrappers for sel where we can use non-coordinate variables.

(Maybe call it pick or something?)

oyvfoss commented 3 months ago

Fixed (file.xr_funcs.pick())