titiler-xarray 2.0.0a2__tar.gz → 2.0.0b2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: titiler-xarray
3
- Version: 2.0.0a2
3
+ Version: 2.0.0b2
4
4
  Summary: Xarray plugin for TiTiler.
5
5
  Project-URL: Homepage, https://developmentseed.org/titiler/
6
6
  Project-URL: Documentation, https://developmentseed.org/titiler/
@@ -24,7 +24,7 @@ Classifier: Topic :: Scientific/Engineering :: GIS
24
24
  Requires-Python: >=3.11
25
25
  Requires-Dist: obstore
26
26
  Requires-Dist: rioxarray
27
- Requires-Dist: titiler-core==2.0.0a2
27
+ Requires-Dist: titiler-core==2.0.0b2
28
28
  Requires-Dist: xarray
29
29
  Requires-Dist: zarr<4.0,>=3.1
30
30
  Provides-Extra: fs
@@ -29,7 +29,7 @@ classifiers = [
29
29
  ]
30
30
  dynamic = ["version"]
31
31
  dependencies = [
32
- "titiler-core==2.0.0a2",
32
+ "titiler-core==2.0.0b2",
33
33
  "xarray",
34
34
  "rioxarray",
35
35
  "obstore",
@@ -0,0 +1,3 @@
1
+ """titiler.xarray"""
2
+
3
+ __version__ = "2.0.0b2"
@@ -17,7 +17,7 @@ import xarray
17
17
  import zarr
18
18
  from morecantile import TileMatrixSet
19
19
  from rio_tiler.constants import WEB_MERCATOR_TMS
20
- from rio_tiler.io.xarray import XarrayReader
20
+ from rio_tiler.io.xarray import Options, XarrayReader
21
21
  from zarr.storage import ObjectStore
22
22
 
23
23
  X_DIM_NAMES = ["lon", "longitude", "LON", "LONGITUDE", "Lon", "Longitude"]
@@ -271,11 +271,17 @@ class Reader(XarrayReader):
271
271
 
272
272
  tms: TileMatrixSet = attr.ib(default=WEB_MERCATOR_TMS)
273
273
 
274
+ options: Options = attr.ib()
275
+
274
276
  ds: xarray.Dataset = attr.ib(init=False)
275
277
  input: xarray.DataArray = attr.ib(init=False)
276
278
 
277
279
  _dims: list = attr.ib(init=False, factory=list)
278
280
 
281
+ @options.default
282
+ def _options_default(self):
283
+ return {}
284
+
279
285
  def __attrs_post_init__(self):
280
286
  """Set bounds and CRS."""
281
287
  opener_options = {
@@ -1,3 +0,0 @@
1
- """titiler.xarray"""
2
-
3
- __version__ = "2.0.0a2"