Commit dbeb90dc authored by Lozac'h Loic's avatar Lozac'h Loic
Browse files

del prov

parent 65c7d294
# -*- coding: utf-8 -*-
# Copyright 2021, CS GROUP - France, https://www.csgroup.eu/
#
# This file is part of EODAG project
# https://www.github.com/CS-SI/EODAG
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
provider:
name: scihub
priority: 2
api: !plugin
type: SentinelsatAPI
endpoint: 'https://apihub.copernicus.eu/apihub/'
dont_quote:
- '['
- ']'
- '$'
- '='
- '&'
- ':'
pagination:
next_page_query_obj: '{{"limit":{items_per_page},"offset":{skip}}}'
next_page_url_tpl: '{url}/odata/v1/Products?{search}&$top={items_per_page}&$skip={skip}'
total_items_nb_key_path: 'https://apihub.copernicus.eu/apihub//odata/v1/Products/$count'
# 2021/04/21: 100, as set by sentinelsat https://sentinelsat.readthedocs.io/en/stable/api_reference.html#sentinelsat.products.SentinelProductsAPI.page_size
max_items_per_page: 100
results_entry: 'value'
discover_metadata:
auto_discovery: true
metadata_pattern: '^[a-zA-Z0-9]+$'
search_param:
free_text_search_operations:
$search:
operations:
AND:
- '({metadata}:{{{metadata}}})'
metadata_path: '$.*'
metadata_mapping:
acquisitionType: '$.acquisitiontype'
id:
- filename
- '$.identifier'
uuid:
- uuid
- '$.uuid'
geometry:
- 'area={geometry#to_rounded_wkt}'
- '$.footprint'
productType:
- producttype
- '$.producttype'
platform:
- platformname
- '$.platformname'
platformSerialIdentifier: '$.platformserialidentifier'
instrument: '$.instrumentname'
processingLevel: '$.processinglevel'
title: '$.title'
abstract: '$.summary'
orbitNumber:
- orbitnumber
- '$.orbitnumber'
orbitDirection:
- orbitdirection
- '$.orbitdirection'
swathIdentifier:
- swathIdentifier
- '$.swathIdentifier'
cloudCover:
- cloudcoverpercentage
- '$.cloudcoverpercentage'
startTimeFromAscendingNode:
- start
- '$.beginposition'
completionTimeFromAscendingNode:
- end
- '$.endposition'
downloadLink: '$.link'
polarizationChannels:
- polarisationmode
- '$.polarisationmode'
sensorMode:
- sensoroperationalmode
- '$.sensoroperationalmode'
# Additional metadata provided by the providers but that don't appear in the reference spec
linkAlternative: '$.link_alternative'
ingestionDate: '$.ingestiondate'
relativeOrbitNumber:
- relativeorbitnumber
- '$.relativeorbitnumber'
gmlFootprint:
- gmlfootprint
- '$.gmlfootprint'
format:
- format
- '$.format'
processingBaseline: '$.processingbaseline'
filename:
- filename
- '$.filename'
instrumentShortname: '$.instrumentshortname'
size: '$.size'
s2DatatakeId: '$.s2datatakeid'
platformIdentifier: '$.platformidentifier'
identifier:
- identifier
- '$.identifier'
raw:
- raw
- '$.raw'
# storageStatus: must be one of ONLINE, STAGING, OFFLINE
storageStatus: '{$.storage_status#get_group_name((?P<ONLINE>True)|(?P<OFFLINE>False))}'
extract: True
archive_depth: 2
products:
S1_SAR_OCN:
productType: OCN
platform: Sentinel-1
S1_SAR_GRD:
productType: GRD
platform: Sentinel-1
S1_SAR_SLC:
productType: SLC
platform: Sentinel-1
S2_MSI_L1C:
productType: S2MSI1C
platform: Sentinel-2
S2_MSI_L2A:
productType: S2MSI2A
platform: Sentinel-2
S3_EFR:
productType: OL_1_EFR___
platform: Sentinel-3
S3_ERR:
productType: OL_1_ERR___
platform: Sentinel-3
S3_OLCI_L2LFR:
productType: OL_2_LFR___
platform: Sentinel-3
S3_OLCI_L2LRR:
productType: OL_2_LRR___
platform: Sentinel-3
S3_SLSTR_L1RBT:
productType: SL_1_RBT___
platform: Sentinel-3
S3_SLSTR_L2LST:
productType: SL_2_LST___
platform: Sentinel-3
S3_LAN:
productType: SR_2_LAN___
platform: Sentinel-3
# --- Available keywords: ---
#'acquisitiontype': 'NOMINAL',
#'beginposition': datetime.datetime(2017, 4, 25, 15, 56, 12, 814000), ===> replaced by date
#'endposition': datetime.datetime(2017, 4, 25, 15, 56, 39, 758000), ===> replaced by date
#'filename': 'S1A_IW_SLC__1SDV_20170425T155612_20170425T155639_016302_01AF91_46FF.SAFE',
#'footprint': 'POLYGON ((34.322010 0.401648,36.540989 0.876987,36.884121 -0.747357,34.664474 -1.227940,34.322010 0.401648))', ===> replaced by area
#'format': 'SAFE',
#'gmlfootprint': '<gml:Polygon ... >'
#'identifier': 'S1A_IW_SLC__1SDV_20170425T155612_20170425T155639_016302_01AF91_46FF',
#'ingestiondate': datetime.datetime(2017, 4, 25, 19, 23, 45, 956000),
#'instrumentname': 'Synthetic Aperture Radar (C-band)',
#'instrumentshortname': 'SAR-C SAR',
#'lastorbitnumber': 16302,
#'lastrelativeorbitnumber': 130,
#'link': "https://apihub.copernicus.eu/apihub/odata/v1/Products('04548172-c64a-418f-8e83-7a4d148adf1e')/$value",
#'link_alternative': "https://apihub.copernicus.eu/apihub/odata/v1/Products('04548172-c64a-418f-8e83-7a4d148adf1e')/",
#'link_icon': "https://apihub.copernicus.eu/apihub/odata/v1/Products('04548172-c64a-418f-8e83-7a4d148adf1e')/Products('Quicklook')/$value",
#'missiondatatakeid': 110481,
#'orbitdirection': 'ASCENDING',
#'orbitnumber': 16302,
#'platformidentifier': '2014-016A',
#'platformname': 'Sentinel-1',
#'polarisationmode': 'VV VH',
#'productclass': 'S',
#'producttype': 'SLC',
#'relativeorbitnumber': 130,
#'sensoroperationalmode': 'IW',
#'size': '7.1 GB',
#'slicenumber': 8,
#'status': 'ARCHIVED',
#'summary': 'Date: 2017-04-25T15:56:12.814Z, Instrument: SAR-C SAR, Mode: VV VH, Satellite: Sentinel-1, Size: 7.1 GB',
#'swathidentifier': 'IW1 IW2 IW3',
#'title': 'S1A_IW_SLC__1SDV_20170425T155612_20170425T155639_016302_01AF91_46FF',
#'uuid': '04548172-c64a-418f-8e83-7a4d148adf1e'
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment