Replies: 2 comments
-
Are you just trying to rename some variables (you could provide a It would be good to see a working example of what you're trying to achieve. |
Beta Was this translation helpful? Give feedback.
-
I think we were rather thinking about a renaming, see https://gist.github.com/aaronspring/bf5139a718bbd607dcb95a5222a9d0e8, but the backend idea sounds also intereseting. I think we need to refine our use case |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I am not sure if this is the right place for this, but I have a few questions regarding the possibility to extend xarray via dataset accessors (https://xarray.pydata.org/en/stable/internals/extending-xarray.html)
I am considering to write a small module enabling a small conversion of variable names which are (unfortunately) not in the standard GRB format. More background on that is here: ecmwf/cfgrib#127
Would it be possible to somehow extend xarray in such a way that if one imports my module, the
open_dataset
andopen_mfdataset
functions automatically first call my little conversion tool (if needed). Something like:I know that the holoviews community did something similar by adding the
hvplot
attribute to a dataset which works an extra on top of the standard plot. Perhaps that is the way to go?I would be happy to receive some input before I start going down the wrong rabbit hole :-)
Beta Was this translation helpful? Give feedback.
All reactions