1

我正在将 Sentinel 2 卫星图像导入 jupyter notebook 以应用栅格分析,但在导入时我遇到了这个问题:

from sentinelsat import SentinelAPI
user = 'Username' 
password = 'password' 
api = SentinelAPI(user, password, 'https://scihub.copernicus.eu/dhus/#/home')

from shapely.geometry import MultiPolygon, Polygon

footprint = None
for i in nReserve['geometry']:
    footprint = i

import time
#time.sleep(3)
products = api.query(footprint,
                 date = ('20190601','20190610'),
                 platformname = 'Sentinel-2',
                 processinglevel = 'Level-2A',
                 cloudcoverpercentage = (0,10)
                )

查询字符串太长,可能会导致 DHuS 响应错误。ConnectionError: ('Connection aborted.', ConnectionResetError(10054, '现有连接被远程主机强行关闭', None, 10054, None))

4

1 回答 1

0

我不确定,但我认为这条信息:

查询字符串太长,可能会导致 DHuS 响应错误

表示您的查询有问题。检查足迹,因为查询中的所有其他参数似乎都可以。

于 2020-10-20T07:41:16.623 回答