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

fix: CLMS search by id on wekeo #1100

Merged
merged 1 commit into from
Apr 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading