Draft: Reference period defined in Index_definition.yml and command line arg -reference_period (fixes #273)
The reference period is read from the index_definition.yml file as a parameter with 'kind' time_period, further information in #273 (closed). Can be specified from command line with e.g., -reference_period "['1971','2019']"
. The reference period is added as a global attribute reference_period: "1971 to 2019"
.
TODO:
- Update time format (see comments)
- See if there is a possibility to store the reference period using !200 (closed) and then remove self.extra_global_attr.
- Add some kind of check wheather the ref. period is outside of data timerange.
Edited by Carolina Nilsson