Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New template for user_input.json (CMOR input file) #1

Open
durack1 opened this issue Jul 12, 2022 · 1 comment
Open

New template for user_input.json (CMOR input file) #1

durack1 opened this issue Jul 12, 2022 · 1 comment

Comments

@durack1
Copy link
Member

durack1 commented Jul 12, 2022

The below is an example of what a new structure will look like once the changes suggested in PCMDI/cmor#628 are realized

  1. mip-cmor-tables
  2. project_CVs
  3. user_input.json
{
    # Data/source_id specific
    "institution_id":               "PCMDI",  # Gone, redundant with source_id
    "source_id":                    "PCMDI-AMIP-1-1-8",
    "grid_label":                   "gn", # Gone, redundant with source_id
    "calendar":                     "gregorian", # Gone, redundant with source_id
    "license":                      "AMIP boundary condition data produced by PCMDI is licensed under a Creative Commons Attribution 4.0 International (CC BY 4.0; https://creativecommons.org/licenses/by/4.0/) License. The data producers and data providers make no warranty, either express or implied, including but not limited to, warranties of merchantability and fitness for a particular purpose. All liabilities arising from the supply of the information (including any liability arising in negligence) are excluded to the fullest extent permitted by law.", # Gone, redundant with source_id
    "table_id":                     ""
    "variable_id":                  ""
    # CMIPx - additional entries (model specific, not relevant for input* obs*)
    "variant_label":                ""
    "*_index":                      ""
    "exp_id":                       ""
    # Runtime - data paths, user info
    "outpath":                      "/p/user_pub/climate_work/durack1",
    "table_prefix":                 "CMOR/input4MIPs-cmor-tables/Tables/",
    "CV_prefix":                    ""


    # Project - CVs repo - all obtained from the project CVs, not provided by the user
    "tracking_prefix":              "hdl:21.14100",    
    "_history_template":            "%s; CMOR rewrote data to be consistent with <activity_id>, CMIP6, and <Conventions> standards",   
    "output_path_template":         "<activity_id><mip_era><target_mip><institution_id><source_id><realm><frequency><variable_id><grid_label><version>",
    "output_file_template":         "<variable_id><activity_id><dataset_category><target_mip><source_id><grid_label>",
    "_controlled_vocabulary_file":  "CMOR/input4MIPs-cmor-tables/Tables/input4MIPs_CV.json",
    "_AXIS_ENTRY_FILE":             "CMOR/input4MIPs-cmor-tables/Tables/input4MIPs_coordinate.json",
    "_FORMULA_VAR_FILE":            "CMOR/input4MIPs-cmor-tables/Tables/input4MIPs_formula_terms.json",
    "activity_id":                  "input4MIPs"    
    
    # Gone - included in source_id registration
    "dataset_category":             "SSTsAndSeaIce",
    "nominal_resolution":           "1x1 degree",
    "region":                       "global_ocean",
    "source":                       "PCMDI-AMIP 1.1.8: Merged SST based on UK MetOffice HadISST and NCEP OI2",
    "contact ":                     "PCMDI ([email protected])",
    "further_info_url":             "https://pcmdi.llnl.gov/mips/amip",

}
@matthew-mizielinski
Copy link
Contributor

matthew-mizielinski commented Jul 12, 2022

The below is an example of what a new structure will look like once the changes suggested in PCMDI/cmor#628 are realized

  1. mip-cmor-tables
  • table files
  • coordinates
  • grids
  • formula terms
  • Additional metadata:
    • frequencies
    • calendar
    • src_type
    • institution_id
    • realm
    • realization_index
    • variant_label
    • forcing_index
    • physics_index
    • initialization_index
      New variables gain a flag "cf_name_pending": True, and do not have a standard_name.
      Once cf name approved, add to entry
  1. _project__CVs

Per Project CVs (single repo each)
e.g. CMIP6Plus_CVs, CMIP6_CVs, Input4mips_CVs, obs4mips_CVs, CORDEX, …

Contents:

  • DRS
  • mip_era
  • required_global_attributes
  • source_id
  • license
  • experiment_id
  • sub_experiment_id
  • further_info_url
  • tracing_id_prefix
  • any other required metadata (CORDEX has regions and forcing models)

Project to contain
CVs/
DRS.json
mip_era.json

_CVs.json

And our working schematic (updated here)
220714_mip-cmor-tables

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants