Dear developers,
I'm running cloudsen12 version 0.0.7 and updated my environment to rioxarray version 0.18.2 (from 0.17.0).
When calling
jp2files = cloudsen12.MaskayDict(
path=self._input_path,
pattern=r'^(?!.*QI_DATA).*\.jp2$',
full_names=True,
recursive=True,
sensor='Sentinel-2'
)
tensor = cloudsen12.TensorSat(**jp2files.to_dict(), cache=True, align=False)
I get this error:
File "C:\Python310\lib\site-packages\maskay\tensorsat.py", line 40, in __init__
self.Aerosol: Union[str, np.ndarray, xr.DataArray] = Aerosol
File "C:\Python310\lib\site-packages\maskay\tensorsat.py", line 127, in Aerosol
self._Aerosol = self.to_xarray(value)
File "C:\Python310\lib\site-packages\maskay\tensorsat.py", line 100, in to_xarray
with rioxarray.open_rasterio(object, "r") as src:
TypeError: open_rasterio() takes 1 positional argument but 2 were given
This can be resolved by downgrading rioxarray back to version 0.17.0. Would it be possible to either update the dependencies, or update the code to correctly call rioxarray.open_rasterio?
Dear developers,
I'm running
cloudsen12version0.0.7and updated my environment torioxarrayversion0.18.2(from0.17.0).When calling
I get this error:
This can be resolved by downgrading
rioxarrayback to version0.17.0. Would it be possible to either update the dependencies, or update the code to correctly callrioxarray.open_rasterio?