Closed J6767 closed 1 year ago
Incidentally, the Boto version does find and download the products, but I want to subset them before downloading, using Stackstac.
import boto3
s3_client = boto3.Session().client('s3')
response = s3_client.get_object(Bucket='sentinel-s2-l1c',
Key='tiles/7/W/FR/2018/3/31/0/B01.jp2',
RequestPayer='requester')
response_content = response['Body'].read()
with open('./B01.jp2', 'wb') as file:
file.write(response_content)
The error originated with my installation, works like a charm now. Thanks for your hard work on Stackstac!
The basic example runs great for me. Now, I am trying to adapt the basic example here but for Sentinel-2 L1C products (which are needed for some specific atmospheric processing). I cannot use L2 for this.
CPLE_OpenFailedError RuntimeError: Error opening 's3://sentinel-s2-l1c/tiles/13/S/DV/2023/7/20/0/B02.jp2': RasterioIOError("'/vsis3/sentinel-s2-l1c/tiles/13/S/DV/2023/7/20/0/B02.jp2' does not exist in the file system, and is not recognized as a supported dataset name.")