如何解决TqdmKeyError<<错误:使用Python中的sentinelsat API下载哨兵数据时"Unknown argument(s): {'delay': 2}" >



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

"quot;

TqdmKeyError("未知参数:"+str(kwargs((

TqdmKeyError:";未知参数:{"延迟":2}"。

"quot;

知道怎么解决吗?

我正在尝试下载的产品:Sentinel-3 2级地表温度(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:UserscadDesktopcodingmap.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:UserscadDesktopcodingresults" #path to save the files
api.download_all(products, folder)

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

pip install tqdm==4.59

相关内容

最新更新