glamod / glamod-ingest

Database preparation and ingestion for GLAMOD
BSD 2-Clause "Simplified" License
2 stars 1 forks source link

Apply correct Data Citations to cdm lite data #33

Closed agstephens closed 3 years ago

agstephens commented 4 years ago

Simon has provided National Data Policy citations by country:

E.g.:

Country_ID | Country | Institute | Data_policy_link | Data_policy
FI | Finland | Finnish Met Institute | https://en.ilmatieteenlaitos.fi/open-data | 5

To be used when providing data citation information along with observations requested by a user.

  1. Include the citation by source.
  2. AND, include any country-specific citation links by the country code.

This is applied by the web-app that packages up the response.

We have been provided with a temporary table for the national data policies:

The first two letters of the observation_id in the CDM_lite relate to the country location of the station (e.g. NOI0000ENSR =NO for Norway). Using these first two letters of the observation_id look up the value in the National_data_policy.psv::Country_ID.

Get the corresponding Data_policy field information and write that to the CDM_Lite.

agstephens commented 3 years ago

Linked to #21

agstephens commented 3 years ago

Closing. Duplicate of: https://github.com/glamod/glamod-ingest/issues/13