-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
The reader works when opening .tar.gz product archives, but fails when opening an already-extracted product directory.
read_dataset_from_directory assumes files are named SPECTRAL_IMAGE.TIF, QL_PIXELMASK.TIF, etc., while in extracted products they keep the EnMAP prefix (e.g. ENMAP01-…-SPECTRAL_IMAGE.TIF).
To reproduce
# Works with .tar.gz
ds = xr.open_dataset(
"/path/to/ENMAP01-____.tar.gz",
engine="enmap"
)
# Fails with already-extracted directory
ds = xr.open_dataset(
"/path/to/ENMAP01-____L2A-DT0000084125_20240719T111058Z_003_V010402_20240722T193843Z",
engine="enmap"
)Output
RasterioIOError: .../SPECTRAL_IMAGE.TIF: No such file or directory
Additional context
Update read_dataset_from_directory with glob and something like *{filename}.TIF? instead of {filename}.TIF.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working