Commit ba585d73 authored by BODERE's avatar BODERE
Browse files

feat: add metop_b dataset

Refs: #6
parent a15abca9
Pipeline #7539 passed with stage
in 1 minute and 44 seconds
......@@ -6,12 +6,8 @@ import importlib
from pydantic import BaseSettings, BaseModel, HttpUrl
from pydantic.tools import lru_cache
from starlette.config import Config
from starlette.templating import Jinja2Templates
from opensearx_ws.opensearch.engine import (IfremerOpensearchEngine,
JPLOpensearchEngine)
class OpensearhEngine(BaseModel):
name: str
......@@ -26,7 +22,9 @@ class Settings(BaseSettings):
context_path: str = ""
templates_path: str = "templates"
datasets: List[str] = [
"AVHRR_SST_METOP_A-OSISAF-L2P-v1.0"
"AVHRR_SST_METOP_A-OSISAF-L2P-v1.0",
"AVHRR_SST_METOP_C-OSISAF-L2P-v1.0",
"AVHRR_SST_METOP_C-OSISAF-L2P-v1.0"
]
opensearch_engines: List[OpensearhEngine] = [
OpensearhEngine(
......@@ -35,7 +33,10 @@ class Settings(BaseSettings):
root_path='https://opensearch.ifremer.fr/granules.atom',
timeout=30.0,
datasets_mapping={
"AVHRR_SST_METOP_A-OSISAF-L2P-v1.0": "avhrr_sst_metop_c-osisaf-l2p-v1.0"
"AVHRR_SST_METOP_A-OSISAF-L2P-v1.0": "avhrr_sst_metop_a-osisaf-l2p-v1.0",
"AVHRR_SST_METOP_B-OSISAF-L2P-v1.0": "avhrr_sst_metop_b-osisaf-l2p-v1.0",
"AVHRR_SST_METOP_C-OSISAF-L2P-v1.0": "avhrr_sst_metop_c-osisaf-l2p-v1.0"
}
),
OpensearhEngine(
......@@ -44,7 +45,8 @@ class Settings(BaseSettings):
root_path='https://cmr.earthdata.nasa.gov/opensearch/granules.atom',
timeout=30.0,
datasets_mapping={
"AVHRR_SST_METOP_A-OSISAF-L2P-v1.0": "C1664387028-PODAAC"
"AVHRR_SST_METOP_A-OSISAF-L2P-v1.0": "C1664387028-PODAAC",
"AVHRR_SST_METOP_B-OSISAF-L2P-v1.0": "C1664387108-PODAAC"
}
)
]
......
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