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

raising NoDataAvailable even if data is available from Copernicus browser #622

Open
AlessandroGrassi1998 opened this issue Sep 19, 2024 · 1 comment

Comments

@AlessandroGrassi1998
Copy link

I am using openEO APIs to download data from the collection: SENTINEL2_L2A, for the day 2016-03-27 in the following spatial extent:

{
  'west': 22.0207478963684,
  'south': 55.18141058378346,
  'east': 22.5207478963684,
  'north': 55.68141058378346
}

When I make the request I get the following error response:

OpenEoApiError: [400] NoDataAvailable: There is no data available for the given extents. Could not find data for your load_collection request with catalog ID "Sentinel2". The catalog query had correlation ID "r-2409195d9b6c465f85f307f351e47207" and returned 1 results. (ref: r-2409195d9b6c465f85f307f351e47207)

When I manually search for the product in copernicus browser I actually see that the product exists, as can be seen in the image below.

image
In the outer box you can see the full product and in the small box you can see the area I am requesting

Here is the code I use for requesting the data:

def download_S2_sample_openeo(spatial_extent, sample_day, connection, 
                              s2_save_path="./sentinel_2.nc", 
                              format="netCDF", 
                              bands=["B04", "B08", "B11", "SCL"], 
                              max_cloud_cover=2):
    datacube = connection.load_collection(
        "SENTINEL2_L2A",
        spatial_extent=spatial_extent,
        temporal_extent = [sample_day, sample_day],
        bands=bands,
        max_cloud_cover=max_cloud_cover
    )
    if os.path.exists(s2_save_path):
        os.remove(s2_save_path)
    datacube.download(s2_save_path, format=format)

Is there something I am doing wrong? Could it be an error from either openEO or Copernicus?

@soxofaan
Copy link
Member

Hi,

Note that this does not look like an issue with the openEO python client itself, but with the Copernicus Data Space Ecosystem openEO backend (I guess).
For things like this, it's recommended to use its help center at https://helpcenter.dataspace.copernicus.eu/hc/en-gb , and especially its forum at https://forum.dataspace.copernicus.eu/

Quick observation: you use max_cloud_cover=2 (=2%) which is a very constraining limit, probably causing no matching observations.

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

2 participants