PCMDI / cmor

Climate Model Output Rewriter
BSD 3-Clause "New" or "Revised" License
53 stars 32 forks source link

reordered user json input file #342

Closed taylor13 closed 5 years ago

taylor13 commented 6 years ago
{
   "source_type":            "AOGCM AER BGC”,

   “#note”:                  "CMIP6 valid experiment_ids are found in CMIP6_CV.json",
   "experiment_id":          “ssp245”,
   "activity_id":            “ScenarioMIP”,
   "sub_experiment_id":      "none",

   "realization_index":      “3”,
   "initialization_index":   "1",
   "physics_index":          "1",
   "forcing_index":          "1",

   “#note”:                  "Description of run variant (recommended; not required).”,
   "run_variant":            “3rd realization",

   "parent_experiment_id":   “historical”,
   "parent_activity_id":     “CMIP”,
   "parent_source_id":       "PCMDI-test-1-0",
   "parent_variant_label":   “r3i1p1f1”,

   "parent_time_units":      "days since 1850-01-01",
   "branch_method":          “standard”,
   "branch_time_in_child":   59400.0,
   "branch_time_in_parent":  59400.0,

   “#note”:                  “institution_id must be registered at https://github.com/WCRP-CMIP/CMIP6_CVs/issues/new ”,
   "institution_id":         "PCMDI",

   “#note”:                  “source_id (model name) must be registered at https://github.com/WCRP-CMIP/CMIP6_CVs/issues/new ”,
   "source_id":              "PCMDI-test-1-0",

   "calendar":               "360_day",

   "grid":                   "native atmosphere T63 gaussian grid (64x128 latxlon)”
   "grid_label":             "gn”,
   "nominal_resolution":     "500 km",

   "license":                 "CMIP6 model data produced by Lawrence Livermore PCMDI is licensed under a Creative Commons Attribution ShareAlike 4.0 International License (https://creativecommons.org/licenses). Consult https://pcmdi.llnl.gov/CMIP6/TermsOfUse for terms of use governing CMIP6 output, including citation requirements and proper acknowledgment. Further information about this data, including some limitations, can be found via the further_info_url (recorded as a global attribute in this file) and at https:///pcmdi.llnl.gov/. 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."

   "#output":                “Root directory for output”,
   "outpath":                "CMIP6",

   “#note”:                  “ **** The following descriptors are optional and may be set to an empty string ”,  

   "contact ":               "Python Coder (coder@a.b.c.com)",
   "history":                "Output from archivcl_A1.nce/giccm_03_std_2xCO2_2256.",
   "comment":                "",
   "references":             "Model described by Koder and Tolkien (J. Geophys. Res., 2001, 576-591).  Also see http://www.GICC.su/giccm/doc/index.html.  The ssp245 simulation is described in Dorkey et al. '(Clim. Dyn., 2003, 323-357.)'",

   “#note”:                  “ **** The following will be obtained from the CV and do not need to be defined here”, 

   "sub_experiment":         "",
   "institution":            "",
   "source":                 "",

   “#note”:                  “ **** The following are set correctly for CMIP6 and should not normally need editing”,  

   "_control_vocabulary_file": "CMIP6_CV.json",
   "_AXIS_ENTRY_FILE":         "CMIP6_coordinate.json",
   "_FORMULA_VAR_FILE":        "CMIP6_formula_terms.json",
   "_cmip6_option":           "CMIP6",

   "mip_era":                "CMIP6",
   "parent_mip_era":         “CMIP6”,

   "tracking_prefix":        "hdl:21.14100",
   "_history_template":       "%s ;rewrote data to be consistent with <activity_id> for variable <variable_id> found in table <table_id>.",

   "#output_path_template":   "Template for output path directory using tables keys or global attributes",
   "output_path_template":    "<mip_era><activity_id><institution_id><source_id><experiment_id><_member_id><table><variable_id><grid_label><version>",
   "output_file_template":    "<variable_id><table><source_id><experiment_id><_member_id><grid_label>",
}
durack1 commented 6 years ago

@taylor13 your word edits have caused those same rogue entries to be added, you'll need to edit these in a real editor to fix (and to allow the json module to read it)

durack1 commented 6 years ago

@taylor13 also, your date is likely wrong, as Tolkien passed away in 1973, so if 2001 is accurate above, then I fear your model documentation may have be infiltrated by an impersonator

taylor13 commented 6 years ago

Didn't you know, some extraordinary souls have the ability to communicate with the dead.

I think Denis has already successfully read some version of the file, and that's how he discovered a bug in CMOR. (Maybe he corected all the rogue symbols.

dnadeau4 commented 6 years ago

Is the reference good? What else should it be?

durack1 commented 6 years ago

@dnadeau4 it's all good, I was just teasing @taylor13 - just ignore my ranting above

taylor13 commented 6 years ago

@doutriaux1 I think the above common_user_input.json file should be pointed to as an example from any CMOR3 documentation. Also, shouldn't it replace what's in https://github.com/PCMDI/cmor/blob/master/Test/common_user_input.json ? Or will that mess up some of the test codes? In any case we should make it easy for users to see what they might have to modify and what they should not modify.

taylor13 commented 6 years ago

Is there any reason not to do now what I suggested in my previous comment (https://github.com/PCMDI/cmor/issues/342#issuecomment-420086825)?

taylor13 commented 5 years ago

I think this has finally been done. If so, we can close this issue.