Bug: sertit.rasters.slope
cannot access the read
method of raster dataset
#22
Labels
bug
Something isn't working
Describe the bug
The
sertit.rasters.slope
function no longer works when passing a path, dataarray, etc. Behind the scenes, thesertit.rasters_rio.slope
function tries to access theread
method of the datarray generated by the@any_raster_to_xr_ds
decorator, which throws an error.Code To Reproduce
Output
Compete output obtained with maximal verbosity.
Environment:
3.9.18
1.41.0
Changes related to the abovementioned decorator are available in
sertit-utils==1.42.0
, which is not installed by default on our internal ArcGIS Pro environment. I tested it in a toy environment withsertit-utils==1.42.0
and the same issue arises.Additional context
At the moment, the following fugly workaround is being used, by calling
sertit.rasters_rio.slope
on a rasterio dataset.The text was updated successfully, but these errors were encountered: