我正在尝试使用sentinelsat下载卫星图像。然而,当我试图转换成熊猫数据时,我会收到错误信息。此代码工作并下载我所要求的哨兵卫星图像:
from sentinelsat import SentinelAPI, read_geojson, geojson_to_wkt
from datetime import date
api = SentinelAPI('*****', '*****', 'https://scihub.copernicus.eu/dhus')
footprint = geojson_to_wkt(read_geojson('testAPIpoly.geojson'))
products = api.query(footprint, cloudcoverpercentage = (0,10))
#this works
api.download_all(products)然而,如果我试图转换成熊猫数据
#api.download_all(products)
#this does not work
products_df = api.to_dataframe(products)
api.download_all(products_df)我收到一条广泛的错误消息,其中包括
"sentinelsat.sentinel.SentinelAPIError: HTTP status 500内部服务器错误: InvalidKeyException :无效密钥(已处理)以访问产品“
(其中处理的部分也被title、platformname、等取代)。我尝试了几种不同的方法来转换成数据和筛选/排序结果,每次都会收到一条错误消息(注意:我安装了熊猫/地质公园)。如何使用sentinelsat API转换为dataframe和筛选/排序?
发布于 2018-07-11 08:36:47
而不是
api.download_all(products_df)试一试
api.download_all(products_df.index)https://stackoverflow.com/questions/51270584
复制相似问题