Skip to content

Commit

Permalink
fix: CLMS search by id on wekeo (#1100)
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunato authored Apr 17, 2024
1 parent 9d04c9b commit 5b9caa5
Showing 1 changed file with 16 additions and 7 deletions.
23 changes: 16 additions & 7 deletions eodag/resources/providers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4282,6 +4282,14 @@
cycleNumber:
- '{{"cycle": "{cycleNumber}"}}'
- '$.null'
andchor_id_from_date: &id_from_date
id:
- |
{{
"start": "{id#replace_str(r'^.*_([0-9][0-9][0-9][0-9])([0-9][0-9])([0-9][0-9])([0-9][0-9])([0-9][0-9])_.*$',r'\1-\2-\3T\4%3A\5%3A00Z')}",
"end": "{id#replace_str(r'^.*_([0-9][0-9][0-9][0-9])([0-9][0-9])([0-9][0-9])([0-9][0-9])([0-9][0-9])_.*$',r'\1-\2-\3T\4%3A\5%3A00Z')}"
}}
- '$.id'
search: !plugin
type: PostJsonSearch
api_endpoint: 'https://gateway.prod.wekeo2.eu/hda-broker/api/v1/dataaccess/search'
Expand All @@ -4292,6 +4300,7 @@
pagination:
total_items_nb_key_path: '$.properties.totalResults'
next_page_query_obj: '{{"itemsPerPage":{items_per_page},"startIndex":{skip}}}'
max_items_per_page: 200
query_params_key: 'search'
discover_product_types:
fetch_url: null
Expand Down Expand Up @@ -5375,13 +5384,13 @@
CLMS_GLO_NDVI_333M:
productType: EO:CLMS:DAT:CLMS_GLOBAL_NDVI_300M_V1_10DAILY_NETCDF
metadata_mapping:
id: '$.id'
<<: *id_from_date
<<: *clms_dates
orderLink: 'https://gateway.prod.wekeo2.eu/hda-broker/api/v1/dataaccess/download?{{"location": "{downloadLink}","product_id":"{id}", "cacheable": "true", "dataset_id": "EO:CLMS:DAT:CLMS_GLOBAL_NDVI_300M_V1_10DAILY_NETCDF"}}'
CLMS_GLO_NDVI_1KM_LTS:
productType: EO:CLMS:DAT:CLMS_GLOBAL_NDVI_1KM_V2_10DAILY_NETCDF
metadata_mapping:
id: '$.id'
<<: *id_from_date
<<: *clms_dates
orderLink: 'https://gateway.prod.wekeo2.eu/hda-broker/api/v1/dataaccess/download?{{"location": "{downloadLink}","product_id":"{id}", "cacheable": "true", "dataset_id": "EO:CLMS:DAT:CLMS_GLOBAL_NDVI_1KM_V2_10DAILY_NETCDF"}}'
CLMS_CORINE:
Expand All @@ -5398,7 +5407,7 @@
CLMS_GLO_FCOVER_333M:
productType: EO:CLMS:DAT:CLMS_GLOBAL_FCOVER_300M_V1_10DAILY_NETCDF
metadata_mapping:
id: '$.id'
<<: *id_from_date
<<: *clms_dates
productGroupId:
- '{{"productGroupId": "{productGroupId}"}}'
Expand All @@ -5407,7 +5416,7 @@
CLMS_GLO_DMP_333M:
productType: EO:CLMS:DAT:CLMS_GLOBAL_DMP_300M_V1_10DAILY_NETCDF
metadata_mapping:
id: '$.id'
<<: *id_from_date
<<: *clms_dates
productGroupId:
- '{{"productGroupId": "{productGroupId}"}}'
Expand All @@ -5416,7 +5425,7 @@
CLMS_GLO_GDMP_333M:
productType: EO:CLMS:DAT:CLMS_GLOBAL_GDMP_300M_V1_10DAILY_NETCDF
metadata_mapping:
id: '$.id'
<<: *id_from_date
<<: *clms_dates
productGroupId:
- '{{"productGroupId": "{productGroupId}"}}'
Expand All @@ -5425,7 +5434,7 @@
CLMS_GLO_FAPAR_333M:
productType: EO:CLMS:DAT:CLMS_GLOBAL_FAPAR_300M_V1_10DAILY_NETCDF
metadata_mapping:
id: '$.id'
<<: *id_from_date
<<: *clms_dates
productGroupId:
- '{{"productGroupId": "{productGroupId}"}}'
Expand All @@ -5434,7 +5443,7 @@
CLMS_GLO_LAI_333M:
productType: EO:CLMS:DAT:CLMS_GLOBAL_LAI_300M_V1_10DAILY_NETCDF
metadata_mapping:
id: '$.id'
<<: *id_from_date
<<: *clms_dates
productGroupId:
- '{{"productGroupId": "{productGroupId}"}}'
Expand Down

0 comments on commit 5b9caa5

Please sign in to comment.