Hi,
Without seeing your code that you are using, it’s difficult to help you debug it. However, reading the first part of your error message, it looks like you may need to double check the file paths you are using as it seems you might be missing a file extension.
Hi @william.ray,
Thank you for your prompt response.
The code is the official one(GitHub - sentinel-hub/field-delineation: Field delineation with Sentinel-2 data from Sentinel-Hub and a ResUnet-a architecture.), I’ve just changed to read the files locally instead of Amazon S3.
I’ve replace this:
def get_tiffs_to_eopatches_workflow(config: TiffsToEopatchConfig, delete_tiffs: bool = False) → EOWorkflow:
“”" Set up workflow to ingest tiff files into EOPatches “”"
# Set up credentials in sh config
sh_config = set_sh_config(config)
import_bands = m(ImportFromTiff((FeatureType.DATA, band),
**folder=f's3://{config.bucket_name}/{config.tiffs_folder}',**
config=sh_config), f'Import band {band}')
for band in config.band_names]
with this
def get_tiffs_to_eopatches_workflow(config: TiffsToEopatchConfig, delete_tiffs: bool = False) → EOWorkflow:
“”" Set up workflow to ingest tiff files into EOPatches “”"
# Set up credentials in sh config
sh_config = set_sh_config(config)
import_bands = >(ImportFromTiff((FeatureType.DATA, band),
**folder=f'{config.tiffs_folder}',**
config=sh_config), f'Import band {band}')
for band in config.band_names]
It reads the file properly, but its processing is not successful.
Here is the full EOExecutionlog:
2023-05-05 11:19:16,334 eolearn.core.eoworkflow DEBUG Computing ImportFromTiff(*m], **{‘filename’: ‘35TNK_3_4/B02.tif’})
2023-05-05 11:19:16,379 rasterio.env DEBUG Entering env context: <rasterio.env.Env object at 0x000002B64EF3B4C0>
2023-05-05 11:19:16,379 rasterio.env DEBUG Starting outermost env
2023-05-05 11:19:16,379 rasterio.env DEBUG No GDAL environment exists
2023-05-05 11:19:16,380 rasterio.env DEBUG New GDAL environment <rasterio._env.GDALEnv object at 0x000002B64EF9D9F0> created
2023-05-05 11:19:16,435 rasterio._filepath DEBUG Installing FilePath filesystem handler plugin…
2023-05-05 11:19:16,435 rasterio._env DEBUG GDAL data found in package: path=‘c:\users\gabarbu\appdata\local\anaconda3\lib\site-packages\rasterio\gdal_data’.
2023-05-05 11:19:16,436 rasterio._env DEBUG PROJ data found in package: path=‘c:\users\gabarbu\appdata\local\anaconda3\lib\site-packages\rasterio\proj_data’.
2023-05-05 11:19:16,437 rasterio._env DEBUG Started GDALEnv: self=<rasterio._env.GDALEnv object at 0x000002B64EF9D9F0>.
2023-05-05 11:19:16,437 rasterio.env DEBUG Entered env context: <rasterio.env.Env object at 0x000002B64EF3B4C0>
2023-05-05 11:19:16,437 rasterio.io DEBUG VSI path: /vsipythonfilelike/fce3c614-75b4-4baf-b21e-90e4e1a8030d/fce3c614-75b4-4baf-b21e-90e4e1a8030d
2023-05-05 11:19:16,437 rasterio._base DEBUG Sharing flag: 0
2023-05-05 11:19:16,444 rasterio._filepath ERROR File-like object not found in virtual filesystem: b’fce3c614-75b4-4baf-b21e-90e4e1a8030d/fce3c614-75b4-4baf-b21e-90e4e1a8030d.aux’
2023-05-05 11:19:16,445 rasterio._filepath ERROR File-like object not found in virtual filesystem: b’fce3c614-75b4-4baf-b21e-90e4e1a8030d/fce3c614-75b4-4baf-b21e-90e4e1a8030d.AUX’
2023-05-05 11:19:16,445 rasterio._filepath ERROR File-like object not found in virtual filesystem: b’fce3c614-75b4-4baf-b21e-90e4e1a8030d/fce3c614-75b4-4baf-b21e-90e4e1a8030d.aux’
2023-05-05 11:19:16,445 rasterio._filepath ERROR File-like object not found in virtual filesystem: b’fce3c614-75b4-4baf-b21e-90e4e1a8030d/fce3c614-75b4-4baf-b21e-90e4e1a8030d.AUX’
2023-05-05 11:19:16,525 rasterio._base DEBUG Nodata success: 0, Nodata value: 0.000000
2023-05-05 11:19:16,525 rasterio._base DEBUG Dataset is started.
2023-05-05 11:19:16,526 rasterio.env DEBUG Exiting env context: <rasterio.env.Env object at 0x000002B64EF3B4C0>
2023-05-05 11:19:16,526 rasterio.env DEBUG Cleared existing <rasterio._env.GDALEnv object at 0x000002B64EF9D9F0> options
2023-05-05 11:19:16,526 rasterio._env DEBUG Stopped GDALEnv <rasterio._env.GDALEnv object at 0x000002B64EF9D9F0>.
2023-05-05 11:19:16,526 rasterio.env DEBUG Exiting outermost env
2023-05-05 11:19:16,526 rasterio.env DEBUG Exited env context: <rasterio.env.Env object at 0x000002B64EF3B4C0>
2023-05-05 11:19:16,526 rasterio.env DEBUG Entering env context: <rasterio.env.Env object at 0x000002B64EF3A680>
2023-05-05 11:19:16,526 rasterio.env DEBUG Starting outermost env
2023-05-05 11:19:16,526 rasterio.env DEBUG No GDAL environment exists
2023-05-05 11:19:16,527 rasterio.env DEBUG New GDAL environment <rasterio._env.GDALEnv object at 0x000002B64EF9D9F0> created
2023-05-05 11:19:16,528 rasterio._env DEBUG GDAL data found in package: path=‘c:\users\gabarbu\appdata\local\anaconda3\lib\site-packages\rasterio\gdal_data’.
2023-05-05 11:19:16,528 rasterio._env DEBUG PROJ data found in package: path=‘c:\users\gabarbu\appdata\local\anaconda3\lib\site-packages\rasterio\proj_data’.
2023-05-05 11:19:16,528 rasterio._env DEBUG Started GDALEnv: self=<rasterio._env.GDALEnv object at 0x000002B64EF9D9F0>.
2023-05-05 11:19:16,528 rasterio.env DEBUG Entered env context: <rasterio.env.Env object at 0x000002B64EF3A680>
2023-05-05 11:19:16,529 rasterio.crs DEBUG Matched. confidence=100, c_code=b’32635’, c_name=b’EPSG’
2023-05-05 11:19:16,530 rasterio._io DEBUG Output nodata value read from file: None
2023-05-05 11:19:16,531 rasterio._io DEBUG Output nodata values: bNone]
2023-05-05 11:19:16,533 rasterio._io DEBUG all_valid: True
2023-05-05 11:19:16,534 rasterio._io DEBUG mask_flags: (u<MaskFlags.all_valid: 1>],)
2023-05-05 11:19:16,538 rasterio._base DEBUG Sharing flag: 0
2023-05-05 11:19:16,540 rasterio._base DEBUG Nodata success: 1, Nodata value: 0.000000
2023-05-05 11:19:16,540 rasterio._base DEBUG Dataset is started.
2023-05-05 11:19:16,541 rasterio._io DEBUG IO window xoff=0.0 yoff=0.0 width=10980.0 height=10980.0
2023-05-05 11:19:17,909 rasterio._filepath ERROR File-like object not found in virtual filesystem: b’fce3c614-75b4-4baf-b21e-90e4e1a8030d/fce3c614-75b4-4baf-b21e-90e4e1a8030d.aux’
2023-05-05 11:19:17,909 rasterio._filepath ERROR File-like object not found in virtual filesystem: b’fce3c614-75b4-4baf-b21e-90e4e1a8030d/fce3c614-75b4-4baf-b21e-90e4e1a8030d.AUX’
2023-05-05 11:19:17,910 rasterio._filepath ERROR File-like object not found in virtual filesystem: b’fce3c614-75b4-4baf-b21e-90e4e1a8030d\fce3c614-75b4-4baf-b21e-90e4e1a8030d.hdr’
2023-05-05 11:19:17,910 rasterio._filepath ERROR File-like object not found in virtual filesystem: b’fce3c614-75b4-4baf-b21e-90e4e1a8030d/fce3c614-75b4-4baf-b21e-90e4e1a8030d.hdr’
2023-05-05 11:19:17,910 rasterio._filepath ERROR File-like object not found in virtual filesystem: b’fce3c614-75b4-4baf-b21e-90e4e1a8030d/fce3c614-75b4-4baf-b21e-90e4e1a8030d.HDR’
2023-05-05 11:19:17,910 rasterio._filepath ERROR File-like object not found in virtual filesystem: b’fce3c614-75b4-4baf-b21e-90e4e1a8030d/fce3c614-75b4-4baf-b21e-90e4e1a8030d.hdr’
2023-05-05 11:19:17,910 rasterio._filepath ERROR File-like object not found in virtual filesystem: b’fce3c614-75b4-4baf-b21e-90e4e1a8030d/fce3c614-75b4-4baf-b21e-90e4e1a8030d.HDR’
2023-05-05 11:19:17,911 rasterio._filepath ERROR File-like object not found in virtual filesystem: b’fce3c614-75b4-4baf-b21e-90e4e1a8030d\fce3c614-75b4-4baf-b21e-90e4e1a8030d.hdr’
2023-05-05 11:19:17,911 rasterio._env INFO GDAL signalled an error: err_no=4, msg=“`/vsipythonfilelike/fce3c614-75b4-4baf-b21e-90e4e1a8030d/fce3c614-75b4-4baf-b21e-90e4e1a8030d’ not recognized as a supported file format.”
Hello, it seems that the example you are trying to run was written for a much earlier version of Eo-Learn and the repository has not been updated recently. It is not currently maintained, but there is a commercial deployment; that, if you have specific requirements regarding then you can reach out and we will be happy to assist.
If you are having trouble running the notebook, it could be due to version compatibility issues with the libraries required by the code. You can try running the code using an earlier version of EO-Learn that is compatible with this particular example.
Hi,
Do you refer to the EDC on demand services for the commercial deployment or is there another option too?
Hi,
Yes we would recommend accessing our field-delineation algorithm via the EDC on demand services. You can find out more in EDC Public Collections and access this service via the EDC Browser.