Skip to content
Snippets Groups Projects
weather_datasources.yaml 10.97 KiB
# Weather datasource meta data to be used by the plaform
# (c) 2021 Tor-Einar Skog <tor-einar.skog@nibio.no>
---
datasources:
  -
    id: no.met.locationforecast
    name: "Met Norway Locationforecast"
    description: "9-day forecasts for the entire planet. 2.5 km resolution in the Nordic-Baltic region, 9km elsewhere"
    public_URL: "https://api.met.no/weatherapi/locationforecast/1.9/documentation"
    priority: 0 # From 0 (lowest) - 10 (highest) When more than one datasource relevant, use this value for prioritization
    organization:
      name: The Norwegian Meteorological Institute
      country: Norway
      address: Postboks 43 Blindern
      postal_code: "0371"
      city: Oslo
      email: david.melchior@met.no
      url: https://www.met.no/en
    endpoint: "{WEATHER_API_URL}/weatheradapter/metnorwaylocationforecast/"
    authentication_type: NONE
    needs_data_control: false
    temporal:
      historic: #  
        start: null # Start == null => No measured/historic/observational data
        end: null #null => Recent data available (continuously updated) UNLESS OF COURSE start == null
      forecast: 9 # 0 = no forecast. All other positive integers indicate the number of days ahead
      intervals: # Array of accepted interval requests
        - 3600
    access_type: location
    spatial:
      # Using country codes to get GeoJSON. Saves a lot of duplication.
      # ISO-3166-1 Three-letter country codes https://en.wikipedia.org/wiki/ISO_3166-1#Current_codes
      # e.g.
      # - NOR
      # - SWE
      countries: null
      # "Sphere" simply means the whole globe (NOT part of GEOJson spec!)
      geoJSON: |-
        {"type": "Sphere"}
    parameters:
      common:
        - 1001 # Instantaneous temperature at 2m (Celcius)
        - 3001 # Instantaneous RH at 2m (%)
        - 2001 # Precipitation (mm)
        - 4002 # Instantaneous wind speed at 2m
  -
    id: no.nibio.mockweatherdatasource
    name: "Mock Weather Data Source"
    description: "Placeholder datasource providing same data for all locations and periods"
    public_URL: https://test.madiphs.org/mwds/
    priority: 0 # From 0 (lowest) - 10 (highest) When more than one datasource relevant, use this value for prioritization
    organization:
      name: NIBIO
      country: Norway
      address: Høgskoleveien 7
      postal_code: "1431"
      city: Ås
      email: tor-einar.skog@nibio.no
      url: https://nibio.no
    endpoint: https://test.madiphs.org/mwds/weather_data
    authentication_type: NONE
    needs_data_control: false
    temporal:
      historic:
        start: 2021-01-01
        end: 2021-12-31
      forecast: 0
      intervals:
        - 3600
        - 86400