Skip to main content

Hello, I try to download Sentinel-2 data from AWS using sentinelhub-py library. For this purpose I need instance ID, in documentation I find next information " For AWS services, Instance ID should be obtained from the account in main dashboard."

But I can’t see how I can obtained Instance ID… Can anyone help me)

Additional informantion, I try search Sentinel-2 tiles using this code example:


search_bbox = BBox(bbox=[46.16, -16.15, 46.51, -15.58], crs=CRS.WGS84)
search_time_interval = ('2017-12-01T00:00:00', '2017-12-15T23:59:59')


wfs_iterator = WebFeatureService(
search_bbox,
search_time_interval,
data_collection=DataCollection.SENTINEL2_L1C,
maxcc=1.0,
config=config
)

for tile_info in wfs_iterator:
print(tile_info)

result:


ValueError: Sentinel Hub instance ID is missing. Either provide it with SHConfig object or save it into config.json configuration file. Check http://sentinelhub-py.readthedocs.io/en/latest/configure.html for more info.

I generate Instance ID for WFS in confuguration utility:
image


But this Instance ID not working in script.


Where I can obtain correct InstanceID for searching Sentinel 2A data using WFS in sentinelhub-py? Thanks.


When you create an instance, you will find an ID in the bottom left corner:
Screenshot 2022-02-17 at 08.21.53


Graga, thanks. I find Instance ID, but script return error using it.

My question about which configuration should I use for correct searching Sentinel2-L2A data using WFS.



It’s my first experience for working with sentinelhub, questions may be not accurate


Probably best to use “Python scripts template”.


Reply