“HTTP状态500内部服务器错误:不支持操作异常:从文件”SentinelAPI创建流时出错

2024-05-16 17:51:26 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在使用SentinelAPI(来自sentinelsat)从sentinel下载卫星图像。 我正在使用的代码(不完全):

from sentinelsat import SentinelAPI
api = SentinelAPI(user, password, 'https://scihub.copernicus.eu/dhus')
products = api.query(fprintile.centroid.wkt,
                                 date=(Idate, Edate),
                                 platformname='Sentinel-2',
                                 processinglevel=levels,
                                 cloudcoverpercentage=(0, 10)
                                 )

但是,有时我会收到错误消息(示例):

type error: HTTP status 500 Internal Server Error: UnsupportedOperationException : Error creating stream from file /mnt/s2bl1c/dhus/incoming/x5/x6/x1/S2B_MSIL1C_20210428T182909_N0300_R027_T11SMT_20210428T214807.zip

重要的是要强调错误不是永久性的,也就是说,如果我尝试在其他时间下载它,它可能会成功

我想听听这个问题的解决方案,或者通过API访问从sentinel下载产品的另一种方式


Tags: 代码fromhttps图像importapi错误error