Skip to content

Commit 4559d07

Browse files
committed
replace all import/usage of xarray-datatree by xarray.datatree
1 parent 9b950f9 commit 4559d07

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

docs/index.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ Overview
1313
........
1414

1515
**safe_s1** rely on `xarray.open_rasterio` and `rasterio` to read *digital_number* from SAFE
16-
product to return an xarray-datatree.
16+
product to return an xarray.datatree.
1717

1818
Luts are decoded from xml files following `ESA Sentinel-1 Product Specification`_.
1919

2020

21-
`safe_s1.metadata.Sentinel1reader` is the main class and contains a xarray-datatree with the useful data. In the following example, you will find some additional functions and properties that can be useful.
21+
`safe_s1.metadata.Sentinel1reader` is the main class and contains a xarray.datatree with the useful data. In the following example, you will find some additional functions and properties that can be useful.
2222

2323
Examples
2424
........

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ dependencies = [
66
"geopandas",
77
"numpy",
88
"xarray",
9-
"xarray-datatree",
109
"lxml",
1110
"rioxarray",
1211
"jmespath",

safe_s1/reader.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
from . import sentinel1_xml_mappings
1313
from .xml_parser import XmlParser
1414
import xarray as xr
15-
import datatree
1615
import pandas as pd
1716
import warnings
1817

@@ -108,7 +107,7 @@ def __init__(self, name, backend_kwargs=None):
108107
'antenna_pattern':self.antenna_pattern,
109108
'swath_merging': self.swath_merging
110109
}
111-
self.dt = datatree.DataTree.from_dict(self._dict)
110+
self.dt = xr.DataTree.from_dict(self._dict)
112111
assert self.dt==self.datatree
113112
else:
114113
print('multidataset')
@@ -341,7 +340,7 @@ def datatree(self):
341340
342341
Returns
343342
-------
344-
datatree.DataTree
343+
xr.DataTree
345344
Contains data from the reader
346345
"""
347346
return self.dt

0 commit comments

Comments
 (0)