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

Cannot list queryables for a product type #1446

Open
amarandon opened this issue Dec 13, 2024 · 0 comments
Open

Cannot list queryables for a product type #1446

amarandon opened this issue Dec 13, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@amarandon
Copy link
Collaborator

amarandon commented Dec 13, 2024

Given this following code:

from eodag import EODataAccessGateway

dag = EODataAccessGateway()

product_types = dag.list_product_types("cop_ads") + dag.list_product_types("cop_cds")

for product_type in product_types:
    product_type_id = product_type["ID"]
    try:
        dag.list_queryables(productType=product_type_id)
    except Exception as exc:
        print(f"Error when calling list_queryables with {product_type_id}: {exc}")
    else:
        print(f"Was able to call list_queryables with product type {product_type_id}")

We get this result:

astraea_eod skipped: could not be loaded from user configuration
Error when calling list_queryables with CAMS_EAC4: format in not a queryable parameter
Error when calling list_queryables with CAMS_EAC4_MONTHLY: Request timeout (5s) for URL https://ads.atmosphere.copernicus.eu/api/catalogue/v1/collections/cams-global-reanalysis-eac4-monthly/form.json
Error when calling list_queryables with CAMS_EU_AIR_QUALITY_FORECAST: ecmwf:date=['2021-11-22/2021-11-23'] is not available with ecmwf:variable=ammonia, ecmwf:model=ensemble, ecmwf:level=0. Allowed values are 20
23-01-25, 2021-12-08/2022-01-12, 2023-11-28/2023-12-01, 2022-03-23, 2022-02-24, 2024-01-18, 2022-11-21, 2023-03-06/2023-03-07, 2022-01-14/2022-01-20, 2024-11-29/2024-12-02, 2022-11-10, 2023-10-07/2023-10-20, 202
3-01-20/2023-01-31, 2024-11-29/2024-12-01, 2023-06-14, 2024-08-11, 2023-04-05, 2022-03-02, 2024-04-22/2024-10-27, 2023-07-19, 2023-11-23/2023-11-29, 2022-12-09, 2024-01-19/2024-08-10, 2024-04-09/2024-04-11, 2023
-06-17/2023-07-10, 2022-05-16/2022-06-14, 2024-04-21, 2023-06-09, 2022-05-15, 2023-11-10, 2023-10-26/2023-10-29, 2022-11-02, 2023-06-12, 2024-12-03/2024-12-13, 2023-11-27, 2023-10-06, 2023-02-06, 2023-07-11, 202
2-10-26, 2023-03-03, 2023-02-01/2023-02-18, 2023-04-14/2023-06-08, 2022-12-15/2022-12-21, 2023-12-01/2024-01-17, 2023-02-19, 2023-01-26/2023-02-05, 2022-11-03/2022-11-10, 2023-02-07/2023-04-04, 2023-09-29, 2023-
10-21, 2023-03-04/2023-03-05, 2023-06-10/2023-06-11, 2023-07-14, 2022-02-25/2022-03-21, 2022-11-13/2022-11-21, 2022-06-15/2022-10-26, 2023-11-20/2023-11-21, 2023-03-08/2023-03-25, 2022-03-23/2022-05-22, 2023-10-
23/2023-10-25, 2022-12-21/2023-01-19, 2022-11-07/2022-11-09, 2023-07-14/2023-07-18, 2023-01-21, 2022-12-20, 2023-07-20/2023-08-14, 2023-07-15, 2023-10-22/2023-11-16, 2022-11-22/2022-11-30, 2022-12-24/2023-01-20,
 2023-02-20/2023-03-02, 2023-04-12/2023-04-13, 2023-11-04/2023-11-09, 2023-01-22/2023-01-24, 2023-11-03, 2022-08-18/2022-08-21, 2024-11-18/2024-11-28, 2023-08-16/2023-10-22, 2022-12-06/2022-12-13, 2022-01-21, 20
22-12-22/2022-12-23, 2023-03-27/2023-04-11, 2022-11-02/2022-11-05, 2023-12-02, 2022-11-06, 2022-02-23/2022-03-01, 2024-08-12/2024-11-12, 2023-10-30, 2022-01-22/2022-02-23, 2023-09-30/2023-10-05, 2023-11-18/2023-
11-20, 2022-10-27, 2023-04-06/2023-06-13, 2023-12-03/2024-04-08, 2023-09-02/2023-09-20, 2023-06-16, 2022-03-03/2022-03-22, 2023-07-13, 2022-11-11/2022-11-12, 2022-12-14, 2023-07-12, 2023-10-31/2023-11-02, 2023-1
1-22/2023-11-26, 2024-04-12/2024-04-20, 2022-01-13, 2023-06-15/2023-07-13, 2023-11-11/2023-11-19, 2022-10-28/2022-11-01, 2022-05-24/2022-06-13, 2022-12-10/2022-12-19, 2024-10-29/2024-11-28, 2023-06-13/2023-06-15
, 2023-03-26, 2023-07-16/2023-08-31, 2022-12-01/2022-12-05, 2022-06-14/2022-08-17, 2022-03-24/2022-05-14, 2023-11-21, 2022-05-23, 2023-08-15, 2024-12-02/2024-12-11, 2021-12-08/2022-02-21, 2022-10-27/2022-10-31, 
2023-11-22, 2022-11-01, 2022-02-22, 2023-09-21, 2024-10-28, 2022-11-22/2022-12-08, 2022-11-11/2022-11-20, 2023-11-17, 2023-09-22/2023-09-28, 2023-09-01, 2022-08-22/2022-10-25, 2022-03-22, 2023-11-30, 2024-11-13/
2024-11-17.                                         
Error when calling list_queryables with CAMS_EU_AIR_QUALITY_RE: type in not a queryable parameter
Error when calling list_queryables with CAMS_GAC_FORECAST: type in not a queryable parameter
Error when calling list_queryables with CAMS_GFE_GFAS: format in not a queryable parameter
Error when calling list_queryables with CAMS_GLOBAL_EMISSIONS: version in not a queryable parameter
Error when calling list_queryables with CAMS_GREENHOUSE_EGG4: Request timeout (5s) for URL https://ads.atmosphere.copernicus.eu/api/catalogue/v1/collections/cams-global-ghg-reanalysis-egg4/constraints.json
Error when calling list_queryables with CAMS_GREENHOUSE_EGG4_MONTHLY: Request timeout (5s) for URL https://ads.atmosphere.copernicus.eu/api/catalogue/v1/collections/cams-global-ghg-reanalysis-egg4-monthly/constr
aints.json                                          
Error when calling list_queryables with CAMS_GREENHOUSE_INVERSION: Request timeout (5s) for URL https://ads.atmosphere.copernicus.eu/api/catalogue/v1/collections/cams-global-greenhouse-gas-inversion/constraints.
json                                                
Error when calling list_queryables with CAMS_GRF: format in not a queryable parameter
Error when calling list_queryables with CAMS_GRF_AUX: band in not a queryable parameter
Error when calling list_queryables with CAMS_SOLAR_RADIATION: sky_type in not a queryable parameter
Error when calling list_queryables with AG_ERA5: variable in not a queryable parameter
Error when calling list_queryables with ERA5_LAND: variable in not a queryable parameter
Error when calling list_queryables with ERA5_LAND_MONTHLY: providerProductType in not a queryable parameter
Error when calling list_queryables with ERA5_PL: providerProductType in not a queryable parameter
Error when calling list_queryables with ERA5_PL_MONTHLY: Request timeout (5s) for URL https://cds.climate.copernicus.eu/api/catalogue/v1/collections/reanalysis-era5-pressure-levels-monthly-means/constraints.json
Error when calling list_queryables with ERA5_SL: Request timeout (5s) for URL https://cds.climate.copernicus.eu/api/catalogue/v1/collections/reanalysis-era5-single-levels/form.json
Error when calling list_queryables with ERA5_SL_MONTHLY: providerProductType in not a queryable parameter 
Error when calling list_queryables with GLACIERS_DIST_RANDOLPH: variable in not a queryable parameter
Error when calling list_queryables with GRIDDED_GLACIERS_MASS_CHANGE: variable in not a queryable parameter
Error when calling list_queryables with SATELLITE_CARBON_DIOXIDE: processingLevel in not a queryable parameter
Error when calling list_queryables with SATELLITE_FIRE_BURNED_AREA: origin in not a queryable parameter
Error when calling list_queryables with SATELLITE_METHANE: processingLevel in not a queryable parameter
Error when calling list_queryables with SATELLITE_SEA_ICE_CONCENTRATION: cdr_type in not a queryable parameter
Error when calling list_queryables with SATELLITE_SEA_ICE_EDGE_TYPE: ecwmf:region in not a queryable parameter
Error when calling list_queryables with SATELLITE_SEA_ICE_THICKNESS: Request timeout (5s) for URL https://cds.climate.copernicus.eu/api/catalogue/v1/collections/satellite-sea-ice-thickness/form.json
Error when calling list_queryables with SATELLITE_SEA_LEVEL_GLOBAL: variable in not a queryable parameter 
Error when calling list_queryables with SEASONAL_MONTHLY_PL: variable in not a queryable parameter
Error when calling list_queryables with SEASONAL_MONTHLY_SL: Request timeout (5s) for URL https://cds.climate.copernicus.eu/api/catalogue/v1/collections/seasonal-monthly-single-levels/form.json
Error when calling list_queryables with SEASONAL_ORIGINAL_PL: variable in not a queryable parameter
Error when calling list_queryables with SEASONAL_ORIGINAL_SL: variable in not a queryable parameter
Error when calling list_queryables with SEASONAL_POSTPROCESSED_PL: Request timeout (5s) for URL https://cds.climate.copernicus.eu/api/catalogue/v1/collections/seasonal-postprocessed-pressure-levels/form.json
Error when calling list_queryables with SEASONAL_POSTPROCESSED_SL: providerProductType in not a queryable parameter
Error when calling list_queryables with SIS_HYDRO_MET_PROJ: Request timeout (5s) for URL https://cds.climate.copernicus.eu/api/catalogue/v1/collections/sis-hydrology-meteorology-derived-projections/constraints.j
son                                                 
Error when calling list_queryables with UERRA_EUROPE_SL: variable in not a queryable parameter

If I increase eodag.utils.HTTP_REQ_TIMEOUT to 15 seconds:

astraea_eod skipped: could not be loaded from user configuration                                                                                                                                                   
Error when calling list_queryables with CAMS_EAC4: format in not a queryable parameter                                                                                                                             
Error when calling list_queryables with CAMS_EAC4_MONTHLY: format in not a queryable parameter                                                                                                                     
Error when calling list_queryables with CAMS_EU_AIR_QUALITY_FORECAST: ecmwf:date=['2021-11-22/2021-11-23'] is not available with ecmwf:variable=ammonia, ecmwf:model=ensemble, ecmwf:level=0. Allowed values are 20
22-10-26, 2023-10-07/2023-10-20, 2023-12-02, 2022-11-22/2022-11-30, 2022-11-06, 2023-02-20/2023-03-02, 2022-06-15/2022-10-26, 2023-04-06/2023-06-13, 2024-11-29/2024-12-01, 2023-03-06/2023-03-07, 2023-01-21, 2022
-12-10/2022-12-19, 2023-06-17/2023-07-10, 2023-07-16/2023-08-31, 2023-11-27, 2023-04-14/2023-06-08, 2023-11-04/2023-11-09, 2023-02-19, 2024-04-09/2024-04-11, 2022-03-02, 2022-05-16/2022-06-14, 2023-03-26, 2023-0
7-14/2023-07-18, 2024-08-11, 2022-01-21, 2023-11-22/2023-11-26, 2022-11-10, 2023-09-01, 2023-12-01/2024-01-17, 2023-11-10, 2022-02-24, 2022-03-23/2022-05-22, 2023-04-12/2023-04-13, 2023-07-11, 2023-09-29, 2022-1
2-22/2022-12-23, 2023-12-03/2024-04-08, 2022-05-15, 2022-12-20, 2022-03-23, 2023-11-11/2023-11-19, 2023-09-21, 2024-12-03/2024-12-13, 2024-04-12/2024-04-20, 2022-11-21, 2022-12-14, 2023-06-10/2023-06-11, 2022-11
-02, 2022-11-01, 2024-04-21, 2022-02-23/2022-03-01, 2022-11-02/2022-11-05, 2023-06-09, 2022-05-23, 2024-10-29/2024-11-28, 2023-07-12, 2023-01-26/2023-02-05, 2023-11-18/2023-11-20, 2024-11-18/2024-11-28, 2023-07-
19, 2023-10-23/2023-10-25, 2021-12-08/2022-01-12, 2023-03-04/2023-03-05, 2023-06-12, 2023-10-06, 2023-03-08/2023-03-25, 2023-06-13/2023-06-15, 2024-01-19/2024-08-10, 2024-01-18, 2023-10-21, 2022-11-11/2022-11-20
, 2022-03-22, 2024-11-29/2024-12-02, 2022-01-22/2022-02-23, 2022-08-22/2022-10-25, 2022-05-24/2022-06-13, 2023-09-30/2023-10-05, 2023-11-28/2023-12-01, 2023-07-13, 2024-11-13/2024-11-17, 2021-12-08/2022-02-21, 2
022-02-22, 2022-10-27, 2022-11-03/2022-11-10, 2023-10-31/2023-11-02, 2023-09-02/2023-09-20, 2023-03-03, 2022-01-14/2022-01-20, 2023-02-07/2023-04-04, 2022-11-13/2022-11-21, 2023-11-21, 2022-12-06/2022-12-13, 202
3-02-01/2023-02-18, 2022-08-18/2022-08-21, 2022-11-07/2022-11-09, 2023-08-16/2023-10-22, 2023-01-22/2023-01-24, 2023-01-20/2023-01-31, 2023-10-26/2023-10-29, 2022-10-28/2022-11-01, 2022-03-24/2022-05-14, 2022-02
-25/2022-03-21, 2022-06-14/2022-08-17, 2024-10-28, 2022-10-27/2022-10-31, 2022-12-24/2023-01-20, 2023-11-03, 2022-12-21/2023-01-19, 2023-09-22/2023-09-28, 2023-06-15/2023-07-13, 2022-03-03/2022-03-22, 2023-11-30
, 2022-12-01/2022-12-05, 2022-01-13, 2023-06-14, 2023-07-15, 2023-11-20/2023-11-21, 2023-10-22/2023-11-16, 2023-10-30, 2023-07-20/2023-08-14, 2023-04-05, 2024-12-02/2024-12-11, 2023-06-16, 2022-11-22/2022-12-08,
 2022-12-15/2022-12-21, 2023-11-23/2023-11-29, 2023-02-06, 2023-03-27/2023-04-11, 2024-08-12/2024-11-12, 2022-12-09, 2022-11-11/2022-11-12, 2024-04-22/2024-10-27, 2023-01-25, 2023-08-15, 2023-07-14, 2023-11-22, 
2023-11-17.                                                                                                                                                                                                        
Error when calling list_queryables with CAMS_EU_AIR_QUALITY_RE: type in not a queryable parameter                                                                                                                  
Error when calling list_queryables with CAMS_GAC_FORECAST: type in not a queryable parameter                                                                                                                       
Error when calling list_queryables with CAMS_GFE_GFAS: format in not a queryable parameter                                                                                                                         
Error when calling list_queryables with CAMS_GLOBAL_EMISSIONS: version in not a queryable parameter                                                                                                                
Error when calling list_queryables with CAMS_GREENHOUSE_EGG4: format in not a queryable parameter                                                                                                                  
Error when calling list_queryables with CAMS_GREENHOUSE_EGG4_MONTHLY: format in not a queryable parameter                                                                                                          
Error when calling list_queryables with CAMS_GREENHOUSE_INVERSION: version in not a queryable parameter                                                                                                            
Error when calling list_queryables with CAMS_GRF: format in not a queryable parameter                                                                                                                              
Error when calling list_queryables with CAMS_GRF_AUX: band in not a queryable parameter                                                                                                                            
Error when calling list_queryables with CAMS_SOLAR_RADIATION: sky_type in not a queryable parameter                                                                                                                
Error when calling list_queryables with AG_ERA5: variable in not a queryable parameter                                                                                                                             
Error when calling list_queryables with ERA5_LAND: variable in not a queryable parameter                                                                                                                           
Error when calling list_queryables with ERA5_LAND_MONTHLY: providerProductType in not a queryable parameter                                                                                                        
Error when calling list_queryables with ERA5_PL: providerProductType in not a queryable parameter                                                                                                                  
Error when calling list_queryables with ERA5_PL_MONTHLY: providerProductType in not a queryable parameter                                                                                                          
Error when calling list_queryables with ERA5_SL: providerProductType in not a queryable parameter                                                                                                                  
Error when calling list_queryables with ERA5_SL_MONTHLY: providerProductType in not a queryable parameter                                                                                                          
Error when calling list_queryables with GLACIERS_DIST_RANDOLPH: variable in not a queryable parameter                                                                                                              
Error when calling list_queryables with GRIDDED_GLACIERS_MASS_CHANGE: variable in not a queryable parameter                                                                                                        
Error when calling list_queryables with SATELLITE_CARBON_DIOXIDE: processingLevel in not a queryable parameter                                                                                                     
Error when calling list_queryables with SATELLITE_FIRE_BURNED_AREA: origin in not a queryable parameter                                                                                                            
Error when calling list_queryables with SATELLITE_METHANE: processingLevel in not a queryable parameter                                                                                                            
Error when calling list_queryables with SATELLITE_SEA_ICE_CONCENTRATION: cdr_type in not a queryable parameter                                                                                                     
Error when calling list_queryables with SATELLITE_SEA_ICE_EDGE_TYPE: ecwmf:region in not a queryable parameter                                                                                                     
Error when calling list_queryables with SATELLITE_SEA_ICE_THICKNESS: satellite in not a queryable parameter                                                                                                        
Error when calling list_queryables with SATELLITE_SEA_LEVEL_GLOBAL: variable in not a queryable parameter                                                                                                          
Error when calling list_queryables with SEASONAL_MONTHLY_PL: variable in not a queryable parameter                                                                                                                 
Error when calling list_queryables with SEASONAL_MONTHLY_SL: variable in not a queryable parameter                                                                                                                 
Error when calling list_queryables with SEASONAL_ORIGINAL_PL: variable in not a queryable parameter                                                                                                                
Error when calling list_queryables with SEASONAL_ORIGINAL_SL: variable in not a queryable parameter                                                                                                                
Error when calling list_queryables with SEASONAL_POSTPROCESSED_PL: providerProductType in not a queryable parameter                                                                                                
Error when calling list_queryables with SEASONAL_POSTPROCESSED_SL: providerProductType in not a queryable parameter                                                                                                
Was able to call list_queryables with product type SIS_HYDRO_MET_PROJ
Error when calling list_queryables with UERRA_EUROPE_SL: variable in not a queryable parameter

The method call was successful only for the product type SIS_HYDRO_MET_PROJ.

@amarandon amarandon added the bug Something isn't working label Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant