We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 219e593 commit 5eb1b95Copy full SHA for 5eb1b95
datacube/storage/_rio.py
@@ -51,13 +51,16 @@ class BandDataSource(GeoRasterReader):
51
"""
52
53
def __init__(
54
- self, source: rasterio.Band, nodata=None, lock: RLock | None = None
+ self,
55
+ source: rasterio.Band,
56
+ nodata: np.float32 | np.float64 | np.dtype | None = None,
57
+ lock: RLock | None = None,
58
) -> None:
59
self.source = source
60
if nodata is None:
61
nodata = self.source.ds.nodatavals[self.source.bidx - 1]
62
- self._nodata = num2numpy(nodata, source.dtype)
63
+ self._nodata = nodata
64
self._lock = lock
65
66
@property
0 commit comments