You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The class description provides the necessary answer:
class RasterCollection(MutableMapping):
"""
Basic class for storing and handling single and multi-band raster
data from which sensor- or application-specific classes inherit.
A RasterDataHandler contains zero to N instances of ~eodal.core.Band. Bands are always indexed using their band
name, therefore the band name must be unique!
...
"""
"gdd_path" points to 365 bands geotiff
gdd_scenes = RasterCollection.from_multi_band_raster(
Path(gdd_path))
Traceback (most recent call last):
File "/home//code/eodal_fork/eodal/eodal/core/raster.py", line 521, in from_multi_band_raster
handler.add_band(
File "/home//code/eodal_fork/eodal/eodal/core/raster.py", line 707, in add_band
raise KeyError(f"Cannot add raster band: {e}")
KeyError: "Cannot add raster band: 'Duplicate band names not permitted'"
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home//code/eodal_fork/venv/lib/python3.10/site-packages/spyder_kernels/py3compat.py", line 356, in compat_exec
exec(code, globals, locals)
File "/home//code/nutzflaechenanalyse/v2_eodal/extract_data.py", line 184, in
gdd_scenes = RasterCollection.from_multi_band_raster(
File "/home//code/eodal_fork/eodal/eodal/core/raster.py", line 531, in from_multi_band_raster
f"Could not add band {band_names_src[band_idx]} "
TypeError: 'NoneType' object is not subscriptable
The text was updated successfully, but these errors were encountered: