Closed agstephens closed 3 years ago
Format:
For each source:
Source: <source_id> - <product_name>
Product references:
....
Product citations:
...
Then, for each country code:
National Data Policy Information: (<abbrev>) - <country>
<link>
Initial implementation is here:
https://github.com/glamod/cdm-lens/blob/master/cdm_interface/data_policies.py
Still requires:
full.source_configuration
table, or local version available as a file.views.py
and should be written to an output file.Linked to #21 and #39
Implemented in commit: https://github.com/glamod/cdm-lens/commit/8b82e84528d1a086784ae92ce8c01b3c81bafa8d
Take response DataFrame, get the
source_ids
(before we remove from the DataFrame).Take each unique
source_id
and extract the following fields from thesource_configuration
table, e.g.:For each
observation_id
, take the first two characters as the country code.Look up the "Data Policy Link" from the country code.
Compile that unique set into a text file and save it as part of the output zip file. Each item might include: