简体   繁体   English

Python API sentinelsat HTTP 状态 500 内部服务器错误:

[英]Python API sentinelsat HTTP status 500 Internal Server Error:

shows the error: "HTTP status 500 Internal Server Error: Trying to download an offline product" The code i am using is显示错误:“HTTP 状态 500 内部服务器错误:尝试下载离线产品”我使用的代码是

import time
import datetime
from sentinelsat import SentinelAPI, read_geojson, geojson_to_wkt
api = SentinelAPI('*****','******', 'https://scihub.copernicus.eu/dhus')
footprint = geojson_to_wkt(read_geojson('E:\map.geojson'))
products = api.query(footprint, date =('20161001' , '20170425'), platformname ='Sentinel-1', 
producttype = 'GRD')
api.download_all(products)

unfortunately this error is not due to sentinelsat api.不幸的是,这个错误不是由于sentinelsat api 造成的。

As error says, you are正如错误所说,你是

Trying to download an offline product.尝试下载离线产品。

You can download sentinel products that are online and not offline.您可以下载在线和非离线的哨兵产品。

Sentinel products that are online are those of last 1 year, you are trying to download older products.在线的 Sentinel 产品是过去 1 年的产品,您正在尝试下载较旧的产品。

If you want an older product go to sentinel scihub find a product, request it and it will be online later (could need 1 day or more, or if you are lucky a few hours later).如果您想要一个较旧的产品 go 来哨兵scihub查找产品,请求它,它将在稍后上线(可能需要 1 天或更长时间,或者如果幸运的话,几个小时后)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM