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

Rely on xarray and cf-xarray? #3

Open
stefraynaud opened this issue Sep 1, 2021 · 1 comment
Open

Rely on xarray and cf-xarray? #3

stefraynaud opened this issue Sep 1, 2021 · 1 comment

Comments

@stefraynaud
Copy link

Hi,

this project is a nice initiative.
I was wondering if you could take advantage of the decoding capabilities of xarray and cf-xarray to easily handle time and geographic coordinates.
xarray datasets and arrays are also quite easy to use.

Cc @dcherian

@mcuntz
Copy link
Owner

mcuntz commented Sep 2, 2021

Hey,

thanks for comment.

Yes, it is on my todo-list to try xarray, especially to support multiple input files such as ensembles or multiple years in separate files. I had a bad experience with xarray in terms of speed a while back and deal with netcdf files by hand since then.

This would involve quite some coding because of the deferred loading of the chunk of data that will be plotted.

What would you say are the advantages of xarray apart from the handling of multiple input files as one dask array?
I do not deal much with the geographic coordinates but leave this to cartopy. I have to deal with time though. I would have to check how xarray deals with all the different formats II have in my collected netcdf files. People do the weirdest things in netcdf files ;-)

But if you say that you use ncvue and xarray would be a big plus, I might be motivated to give it a go. I would recruit you as a beta tester then :-)

Kind regards,
Matthias

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

2 participants