openradar / xradar

A tool to work in weather radar data in xarray
https://docs.openradarscience.org/projects/xradar
MIT License
85 stars 17 forks source link

Migrate datatree imports to xarray #149

Open mgrover1 opened 5 months ago

mgrover1 commented 5 months ago

Description

With datatree being deprecated soon (moving into the core xarray library), we need to change any imports to pull from xarray instead of the xarray-datatree package

https://github.com/xarray-contrib/datatree

What I Did

I saw this on the xarray-datatree readme.

zssherman commented 5 months ago

@mgrover1 I can always tackle this, did you all want a try and except for backwards compatibility at the moment or straight to the new xarray import?

kmuehlbauer commented 5 months ago

Let's wait until this has settled in xarray finally. The process is currently ongoing. We should pin datatree to the last available version and make the move if datatree has landed as full class citizen in xarray

zssherman commented 5 months ago

Sounds good!

mgrover1 commented 5 months ago

I agree with @kmuehlbauer here! Mainly just wanted to bring it to everyone's attention :)