我正在将 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))