1
使用rasterio读取S3 Sentinel-2图像文件
使用rasterio打开Sentinel-2 AWS .jp2图像文件(当前由Sinergise托管,可以在此处找到)后,我当前遇到“访问被拒绝”错误。 我的代码如下所示: import rasterio access_key = '*****************' secret_access_key = '***********************' region_name = 'eu-central-1' Session = rasterio.env.Env(aws_access_key_id=access_key, aws_secret_access_key=secret_access_key, region_name=region_name) url = 's3://sentinel-pds/tiles/10/S/DG/2015/12/7/0/B01.jp2' with Session: with rasterio.open(url) as dataset: print dataset 响应为: --------------------------------------------------------------------------- CPLE_AWSAccessDenied Traceback (most recent call last) <ipython-input-1-4f6da7274649> in <module>() 12 13 with Session: ---> 14 with rasterio.open(url) …