【问题标题】:Error ('Connection aborted.', ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None))错误('连接中止。',ConnectionResetError(10054,'现有连接被远程主机强行关闭',无,10054,无))
【发布时间】:2021-02-02 17:11:36
【问题描述】:

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

【问题讨论】:

    标签: python jupyter-notebook sentinel2 sentinelsat


    【解决方案1】:

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

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

    表示您的查询有问题。 检查 footprint,因为查询中的所有其他参数似乎都正常。

    【讨论】:

    • 感谢 Ioannis 的回复,但结果相同,没有任何变化。
    猜你喜欢
    • 2020-07-24
    • 2016-10-20
    • 2020-04-20
    • 2018-01-02
    • 2020-10-09
    • 2021-03-31
    • 1970-01-01
    • 2015-02-28
    • 2015-05-24
    相关资源
    最近更新 更多