ukcp-data / UKCP18_CVs

UKCP18 Controlled Vocabularies
BSD 2-Clause "Simplified" License
4 stars 2 forks source link

Create "UKCP18_variables.json" vocabulary file #23

Closed agstephens closed 6 years ago

agstephens commented 7 years ago

Base the file on content here:

https://docs.google.com/spreadsheets/d/1Ij3R3skvYhKnMSqXB6KHaxH0BSST5R0DI8zp2Qi82vw/edit#gid=762056270

Use structure along the lines of:

{
    "variables": {
        "annual_airfrost_climatology": {
            "bounds_duration": "",
            "bounds_start_offset": "",
            "bounds_type": "",
            "cell_methods": "",
            "historic_name": "daf",
            "long_name": "",
            "scalar_coordinate_variables": "",
            "short_name": "annual_airfrost_climatology",
            "standard_name": "",
            "temporal_resolution": "annual",
            "time_point_offset": "",
            "units": "",
            "variable_name": "_airfrost"
        },
  },
...lots more variables...
    "version_metadata": {
        "author": "Ag Stephens <ag.stephens@stfc.ac.uk>",
        "creation_date": "Tue Jun 06 07:45:06 2017 -0100",
        "institution_id": "STFC",
        "previous_commit": ""
    }
}

Things to be aware of:

Useful references:

  1. CMIP6 MIP Tables: https://github.com/PCMDI/cmip6-cmor-tables/blob/master/Tables/CMIP6_3hr.json
  2. UKCP18 obs variables: https://github.com/ukcp-data/UKCP18_CVs/blob/master/UKCP18_obs_variables.json
agstephens commented 7 years ago

Re-assigning to @agstephens because I have some code to generate these.

agstephens commented 7 years ago

Details and code here that explain reading a Google doc directly into python:

https://github.com/cedadev/ukcp18-data/tree/master/code/gdoc_lib

agstephens commented 6 years ago

Needs updating after recent review of the Variables Google spreadsheet.

agstephens commented 6 years ago

Done.