Wildcard in dimension name? #5803
-
Hi there! I have a very weird dataset, where sometimes the Is there a way to use a wildcard in selecting this dimension? E.g. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hi @AndrewWilliams3142 ! There's no query functionality on var names at the moment. It would be possible to rename them with a fairly simple function on the user side. In concept we could allow supplying a |
Beta Was this translation helpful? Give feedback.
-
While not a fully generic wildcard handling, this specific issue with time coordinates (i.e., handling multiple coordinates of the same "physical type") is one of the motivating use cases for cf-xarray. With cf-xarray, this would look something like da.cf.mean("T") |
Beta Was this translation helpful? Give feedback.
Hi @AndrewWilliams3142 !
There's no query functionality on var names at the moment.
It would be possible to rename them with a fairly simple function on the user side.
In concept we could allow supplying a
re.match
object, though balanced against the larger API surface.