首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何解决错误<< TqdmKeyError:“未知参数:{‘延迟’:2}”>>下载哨兵数据时,使用哨位API在Python?

如何解决错误<< TqdmKeyError:“未知参数:{‘延迟’:2}”>>下载哨兵数据时,使用哨位API在Python?
EN

Stack Overflow用户
提问于 2021-11-26 22:33:31
回答 1查看 169关注 0票数 0

我正在尝试使用Python的哨兵卫星API下载Sentinel-3数据。在运行代码时,我会得到以下错误:

"“

TqdmKeyError(“未知数”:+str(Kwargs))

TqdmKeyError:“未知参数:{‘延迟’:2}”。

"“

知道怎么解决吗?

我想下载的产品:哨兵-3级2级地面温度(SL_2_LST).传感期: 2020-01-01至2020-12-31

我正在使用Python3.7中的Spyder。下面是我的完整代码

代码语言:javascript
复制
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)
EN

回答 1

Stack Overflow用户

发布于 2022-01-24 08:23:15

我也有同样的问题。我通过将tqdm包更新到4.59版本来解决这个问题。

代码语言:javascript
复制
pip install tqdm==4.59
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/70130622

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档