我正在尝试使用用于 Python 的 sentinelsat API 下载 Sentinel-3 数据。运行代码时,我收到以下错误:
“”
TqdmKeyError("未知参数:" + str(kwargs)))
TqdmKeyError:“未知参数:{'delay': 2}”。
“”
知道如何解决吗?
我要下载的产品:Sentinel-3 level 2 Land Surface temperature (SL_2_LST)。感应期:2020-01-01 至 2020-12-31
我正在将 Spyder 与 Python 3.7 一起使用。下面是我的完整代码
from sentinelsat import SentinelAPI, read_geojson, geojson_to_wkt
from datetime import date
api = SentinelAPI("myusername", "mypassword", "https://apihub.copernicus.eu/apihub")
# Converting Date intel format
initialDate = "2020-01-12"
date_in = "{}{}{}".format(initialDate[0:4], initialDate[5:7], initialDate[8:] )
finalDate = "2020-12-31"
date_end = "{}{}{}".format(finalDate[0:4], finalDate[5:7], finalDate[8:] )
# Loading the area of interest
footprint = geojson_to_wkt(read_geojson(r"C:\Users\cad\Desktop\coding\map.geojson"))
# Launching the download
products = api.query(footprint,
platformname = "sentinel-3",
producttype = "SL_2_LST___",
date = (str(date_in), str(date_end))
)
folder = r"C:\Users\cad\Desktop\coding\results" #path to save the files
api.download_all(products, folder)