mcuntz/ncvue

Rely on xarray and cf-xarray?

Opened this issue · 1 comments

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

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