Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Copernicus Sentinel Data is now available on the Copernicus Data Space #9

Open
robmarkcole opened this issue May 1, 2024 · 0 comments

Comments

@robmarkcole
Copy link

robmarkcole commented May 1, 2024

On running the download script:

sentinelsat.exceptions.ServerError: HTTP status 200 OK:
The Sentinels Scientific Data Hub

# Copernicus Sentinel Data is now available on the Copernicus Data Space
Ecosystem

[https://dataspace.copernicus.eu](https://dataspace.copernicus.eu/)

Tried updating the retrieve script:

def retrieve(images, tmp_dir, download_dir, workers=0):
    """Retrieve images from ESA API."""
    api = SentinelAPI(
        os.environ.get("COPERNICUS_USERNAME"),
        os.environ.get("COPERNICUS_PASSWORD"),
        # "https://scihub.copernicus.eu/dhus",
        "https://dataspace.copernicus.eu/",
        timeout=60,
    )

error:

⚡ master ~/vessel-detection-sentinels python download_imagery.py --save_dir="data"
2024-05-01 08:35:03,148 (downloader) (INFO): Collecting images corresponding to 39954 windows.
2024-05-01 08:35:03,285 (downloader) (INFO): Found 2913 such images to synchronize to local.

2024-05-01 08:35:03,285 (downloader) (INFO): Currently syncing 8 images...
2024-05-01 08:35:03,286 (downloader) (INFO): 0/8 already processed
Traceback (most recent call last):
  File "/home/zeus/miniconda3/envs/cloudspace/lib/python3.10/site-packages/sentinelsat/sentinel.py", line 1023, in _check_scihub_response
    response.raise_for_status()
  File "/home/zeus/miniconda3/envs/cloudspace/lib/python3.10/site-packages/requests/models.py", line 1021, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://dataspace.copernicus.eu/search?format=json&rows=100&start=0&q=filename%3A%22S1A_IW_GRDH_1SDV_20211105T024716_20211105T024741_040430_04CB0F_8DF4.SAFE%22

Tried:

  • "https://apihub.copernicus.eu/apihub", -> times out
  • "https://sh.dataspace.copernicus.eu/api/v1/catalog/1.0.0/", -> HTTP status 401 Unauthorized: Invalid API response
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant