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

735 use earth search v1 endpoint #754

Merged
merged 7 commits into from
Feb 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
18 changes: 9 additions & 9 deletions docs/_static/product_types_information.csv

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions eodag/resources/product_types.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3434,7 +3434,7 @@ EFAS_SEASONAL_REFORECAST:
# COPERNICUS Digital Elevation Model
COP_DEM_GLO30_DGED:
abstract: |
Defence Gridded Elevation Data (DGED) formatted Copernicus DEM GLO-30 data.
Defence Gridded Elevation Data (DGED, 32 Bit floating point) formatted Copernicus DEM GLO-30 data.
The Copernicus Digital Elevation Model is a Digital Surface Model (DSM) that represents the surface of the Earth
including buildings, infrastructure and vegetation. The Copernicus DEM is provided in 3 different instances: EEA-10,
GLO-30 and GLO-90. GLO-30 provides worldwide coverage at 30 meters.Data were acquired through the TanDEM-X mission
Expand All @@ -3450,7 +3450,7 @@ COP_DEM_GLO30_DGED:
missionStartDate: "2010-06-21T00:00:00Z"
COP_DEM_GLO30_DTED:
abstract: |
Digital Terrain Elevation Data (DTED) formatted Copernicus DEM GLO-30 data.
Digital Terrain Elevation Data (DTED, 16 Bit signed integer) formatted Copernicus DEM GLO-30 data.
The Copernicus Digital Elevation Model is a Digital Surface Model (DSM) that represents the surface of the Earth
including buildings, infrastructure and vegetation. The Copernicus DEM is provided in 3 different instances: EEA-10,
GLO-30 and GLO-90. GLO-30 provides worldwide coverage at 30 meters.Data were acquired through the TanDEM-X mission
Expand All @@ -3466,7 +3466,7 @@ COP_DEM_GLO30_DTED:
missionStartDate: "2010-06-21T00:00:00Z"
COP_DEM_GLO90_DGED:
abstract: |
Defence Gridded Elevation Data (DGED) formatted Copernicus DEM GLO-90 data.
Defence Gridded Elevation Data (DGED, 32 Bit floating point) formatted Copernicus DEM GLO-90 data.
The Copernicus Digital Elevation Model is a Digital Surface Model (DSM) that represents the surface of the Earth
including buildings, infrastructure and vegetation. The Copernicus DEM is provided in 3 different instances: EEA-10,
GLO-30 and GLO-90. GLO-90 provides worldwide coverage at 90 meters.Data were acquired through the TanDEM-X mission
Expand All @@ -3482,7 +3482,7 @@ COP_DEM_GLO90_DGED:
missionStartDate: "2010-06-21T00:00:00Z"
COP_DEM_GLO90_DTED:
abstract: |
Digital Terrain Elevation Data (DTED) formatted Copernicus DEM GLO-90 data.
Digital Terrain Elevation Data (DTED, 16 Bit signed integer) formatted Copernicus DEM GLO-90 data.
The Copernicus Digital Elevation Model is a Digital Surface Model (DSM) that represents the surface of the Earth
including buildings, infrastructure and vegetation. The Copernicus DEM is provided in 3 different instances: EEA-10,
GLO-30 and GLO-90. GLO-90 provides worldwide coverage at 90 meters.Data were acquired through the TanDEM-X mission
Expand Down
57 changes: 25 additions & 32 deletions eodag/resources/providers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1682,7 +1682,7 @@
url: https://www.element84.com/earth-search/
search: !plugin
type: StacSearch
api_endpoint: https://earth-search.aws.element84.com/v0/search
api_endpoint: https://earth-search.aws.element84.com/v1/search
need_auth: false
discover_product_types:
results_entry: '$.collections[?id!="sentinel-s2-l2a-cogs"]'
Expand All @@ -1701,28 +1701,30 @@
max_items_per_page: 500
metadata_mapping:
utmZone:
- '{{"query":{{"sentinel:utm_zone":{{"eq":"{utmZone}"}}}}}}'
- '$.properties."sentinel:utm_zone"'
- '{{"query":{{"mgrs:utm_zone":{{"eq":"{utmZone}"}}}}}}'
- '$.properties."mgrs:utm_zone"'
latitudeBand:
- '{{"query":{{"sentinel:latitude_band":{{"eq":"{latitudeBand}"}}}}}}'
- '$.properties."sentinel:latitude_band"'
- '{{"query":{{"mgrs:latitude_band":{{"eq":"{latitudeBand}"}}}}}}'
- '$.properties."mgrs:latitude_band"'
gridSquare:
- '{{"query":{{"sentinel:grid_square":{{"eq":"{gridSquare}"}}}}}}'
- '$.properties."sentinel:grid_square"'
- '{{"query":{{"mgrs:grid_square":{{"eq":"{gridSquare}"}}}}}}'
- '$.properties."mgrs:grid_square"'
tileIdentifier:
- '{{"query":{{"sentinel:utm_zone":{{"eq":"{tileIdentifier#slice_str(0,2,1)}"}},"sentinel:latitude_band":{{"eq":"{tileIdentifier#slice_str(2,3,1)}"}},"sentinel:grid_square":{{"eq":"{tileIdentifier#slice_str(3,5,1)}"}}}}}}'
- '{{"query":{{"mgrs:utm_zone":{{"eq":"{tileIdentifier#slice_str(0,2,1)}"}},"mgrs:latitude_band":{{"eq":"{tileIdentifier#slice_str(2,3,1)}"}},"mgrs:grid_square":{{"eq":"{tileIdentifier#slice_str(3,5,1)}"}}}}}}'
- '{utmZone}{latitudeBand}{gridSquare}'
products:
S1_SAR_GRD:
productType: sentinel-1-grd
S2_MSI_L1C:
productType: sentinel-s2-l1c
productType: sentinel-2-l1c
metadata_mapping:
title: '$.properties."sentinel:product_id"'
title: '{$.properties."s2:product_uri"#remove_extension}'
platformSerialIdentifier: '$.id.`split(_, 0, -1)`'
polarizationMode: '$.id.`sub(/.{14}([A-Z]{2}).*/, \\1)`'
productPath: |
$.properties."sentinel:product_id".`sub(/([S2AB]{3})_MSIL1C_([0-9]{4})([0-9]{2})([0-9]{2})(T.*)/, products!\\2!\\3!\\4!\\1_MSIL1C_\\2\\3\\4\\5)`.`sub(/!0*/, /)`
$.properties."s2:product_uri".`sub(/([S2AB]{3})_MSIL1C_([0-9]{4})([0-9]{2})([0-9]{2})(T.*).SAFE/, products!\\2!\\3!\\4!\\1_MSIL1C_\\2\\3\\4\\5)`.`sub(/!0*/, /)`
tilePath: |
$.assets.info.href.`sub(/.*/sentinel-s2-l1c\/(tiles\/.*)\/tileInfo\.json/, \\1)`
$.assets.tileinfo_metadata.href.`sub(/.*/sentinel-s2-l1c\/(tiles\/.*)\/tileInfo\.json/, \\1)`
utmZone:
- '{{"query":{{"mgrs:utm_zone":{{"eq":"{utmZone}"}}}}}}'
- '$.properties."mgrs:utm_zone"'
Expand All @@ -1735,18 +1737,14 @@
tileIdentifier:
- '{{"query":{{"mgrs:utm_zone":{{"eq":"{tileIdentifier#slice_str(0,2,1)}"}},"mgrs:latitude_band":{{"eq":"{tileIdentifier#slice_str(2,3,1)}"}},"mgrs:grid_square":{{"eq":"{tileIdentifier#slice_str(3,5,1)}"}}}}}}'
- '{utmZone}{latitudeBand}{gridSquare}'
S2_MSI_L2A:
productType: sentinel-s2-l2a
metadata_mapping:
title: '$.properties."sentinel:product_id"'
platformSerialIdentifier: '$.id.`split(_, 0, -1)`'
polarizationMode: '$.id.`sub(/.{14}([A-Z]{2}).*/, \\1)`'
productPath: |
$.properties."sentinel:product_id".`sub(/([S2AB]{3})_MSIL2A_([0-9]{4})([0-9]{2})([0-9]{2})(T.*)/, products!\\2!\\3!\\4!\\1_MSIL2A_\\2\\3\\4\\5)`.`sub(/!0*/, /)`
tilePath: |
$.assets.info.href.`sub(/.*/sentinel-s2-l2a\/(tiles\/.*)\/tileInfo\.json/, \\1)`
L8_OLI_TIRS_C1L1:
productType: landsat-8-l1-c1
LANDSAT_C2L2:
productType: landsat-c2-l2
NAIP:
productType: naip
COP_DEM_GLO30_DGED:
productType: cop-dem-glo-30
COP_DEM_GLO90_DGED:
productType: cop-dem-glo-90
GENERIC_PRODUCT_TYPE:
productType: '{productType}'
download: !plugin
Expand All @@ -1760,12 +1758,6 @@
complementary_url_key:
- productPath
- tilePath
S2_MSI_L2A:
default_bucket: 'sentinel-s2-l2a'
build_safe: true
complementary_url_key:
- productPath
- tilePath
auth: !plugin
type: AwsAuth

Expand All @@ -1779,7 +1771,7 @@
url: https://www.element84.com/earth-search/
search: !plugin
type: StacSearch
api_endpoint: https://earth-search.aws.element84.com/v0/search
api_endpoint: https://earth-search.aws.element84.com/v1/search
need_auth: false
discover_product_types:
fetch_url: null
Expand All @@ -1799,9 +1791,10 @@
metadata_mapping:
platformSerialIdentifier: '$.id.`split(_, 0, -1)`'
polarizationMode: '$.id.`sub(/.{14}([A-Z]{2}).*/, \\1)`'
title: '{$.properties."s2:product_uri"#remove_extension}'
products:
S2_MSI_L2A_COG:
productType: sentinel-s2-l2a-cogs
productType: sentinel-2-l2a
GENERIC_PRODUCT_TYPE:
productType: '{productType}'
download: !plugin
Expand Down