Skip to content

Instantly share code, notes, and snippets.

@brews
Created August 25, 2022 23:29
Show Gist options
  • Save brews/a74aee497497d6494555507e4fe48263 to your computer and use it in GitHub Desktop.
Save brews/a74aee497497d6494555507e4fe48263 to your computer and use it in GitHub Desktop.
Example metadata in a random CMIP6 simulation data file following CF-conventions.
# Example CF-convention attrs/metadata
{'Conventions': 'CF-1.7 CMIP-6.2',
'activity_id': 'CMIP',
'branch_method': 'standard',
'branch_time_in_child': 0.0,
'branch_time_in_parent': 0.0,
'cmor_version': '3.4.0',
'creation_date': '2019-11-09T02:07:38Z',
'data_specs_version': '01.00.30',
'experiment': 'all-forcing simulation of the recent past',
'experiment_id': 'historical',
'external_variables': 'areacella',
'forcing_index': 1,
'frequency': 'day',
'further_info_url': 'https://furtherinfo.es-doc.org/CMIP6.CSIRO-ARCCSS.ACCESS-CM2.historical.none.r1i1p1f1',
'grid': 'native atmosphere N96 grid (144x192 latxlon)',
'grid_label': 'gn',
'history': '2019-11-09T02:07:38Z ; CMOR rewrote data to be consistent with '
'CMIP6, CF-1.7 CMIP-6.2 and CF standards.',
'initialization_index': 1,
'institution': 'CSIRO (Commonwealth Scientific and Industrial Research '
'Organisation, Aspendale, Victoria 3195, Australia), ARCCSS '
'(Australian Research Council Centre of Excellence for Climate '
'System Science)',
'institution_id': 'CSIRO-ARCCSS',
'intake_esm_dataset_key': 'CMIP.CSIRO-ARCCSS.ACCESS-CM2.historical.day.gn',
'intake_esm_varname': ['tasmax'],
'license': 'CMIP6 model data produced by CSIRO 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). 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.',
'mip_era': 'CMIP6',
'netcdf_tracking_ids': 'hdl:21.14100/9273db06-8b75-4cd5-a2de-7d8dd6601bf7\n'
'hdl:21.14100/f9c55dde-cdff-490a-8aad-72ebc444a164\n'
'hdl:21.14100/c495fd71-9211-4548-848c-881271cbdc14\n'
'hdl:21.14100/4126e59d-77eb-446d-bf15-2617de97a4a5',
'nominal_resolution': '250 km',
'notes': 'Exp: CM2-historical; Local ID: bj594; Variable: tasmax '
"(['fld_s03i236_max'])",
'parent_activity_id': 'CMIP',
'parent_experiment_id': 'piControl',
'parent_mip_era': 'CMIP6',
'parent_source_id': 'ACCESS-CM2',
'parent_time_units': 'days since 0950-01-01',
'parent_variant_label': 'r1i1p1f1',
'physics_index': 1,
'product': 'model-output',
'realization_index': 1,
'realm': 'atmos',
'run_variant': 'forcing: GHG, Oz, SA, Sl, Vl, BC, OC, (GHG = CO2, N2O, CH4, '
'CFC11, CFC12, CFC113, HCFC22, HFC125, HFC134a)',
'source': 'ACCESS-CM2 (2019): \n'
'aerosol: UKCA-GLOMAP-mode\n'
'atmos: MetUM-HadGEM3-GA7.1 (N96; 192 x 144 longitude/latitude; 85 '
'levels; top level 85 km)\n'
'atmosChem: none\n'
'land: CABLE2.5\n'
'landIce: none\n'
'ocean: ACCESS-OM2 (GFDL-MOM5, tripolar primarily 1deg; 360 x 300 '
'longitude/latitude; 50 levels; top grid cell 0-10 m)\n'
'ocnBgchem: none\n'
'seaIce: CICE5.1.2 (same grid as ocean)',
'source_id': 'ACCESS-CM2',
'source_type': 'AOGCM',
'status': '2020-06-24;created; by gcs.cmip6.ldeo@gmail.com',
'sub_experiment': 'none',
'sub_experiment_id': 'none',
'table_id': 'day',
'table_info': 'Creation Date:(30 April 2019) '
'MD5:e14f55f257cceafb2523e41244962371',
'title': 'ACCESS-CM2 output prepared for CMIP6',
'tracking_id': 'hdl:21.14100/9273db06-8b75-4cd5-a2de-7d8dd6601bf7\n'
'hdl:21.14100/f9c55dde-cdff-490a-8aad-72ebc444a164\n'
'hdl:21.14100/c495fd71-9211-4548-848c-881271cbdc14\n'
'hdl:21.14100/4126e59d-77eb-446d-bf15-2617de97a4a5',
'variable_id': 'tasmax',
'variant_label': 'r1i1p1f1',
'version': 'v20191108',
'version_id': 'v20191108'}
'height'
{'axis': 'Z',
'long_name': 'height',
'positive': 'up',
'standard_name': 'height',
'units': 'm'}
'lat'
{'axis': 'Y',
'bounds': 'lat_bnds',
'long_name': 'Latitude',
'standard_name': 'latitude',
'units': 'degrees_north'}
'lat_bnds'
{}
'lon'
{'axis': 'X',
'bounds': 'lon_bnds',
'long_name': 'Longitude',
'standard_name': 'longitude',
'units': 'degrees_east'}
'lon_bnds'
{}
'member_id'
{}
'tasmax'
{'cell_measures': 'area: areacella',
'cell_methods': 'area: mean time: maximum',
'comment': 'maximum near-surface (usually, 2 meter) air temperature (add '
"cell_method attribute 'time: max')",
'history': '2019-11-09T02:07:38Z altered by CMOR: Treated scalar dimension: '
"'height'. 2019-11-09T02:07:38Z altered by CMOR: replaced missing "
'value flag (-1.07374e+09) with standard missing value (1e+20).',
'long_name': 'Daily Maximum Near-Surface Air Temperature',
'standard_name': 'air_temperature',
'units': 'K'}
'time'
{'axis': 'T',
'bounds': 'time_bnds',
'long_name': 'time',
'standard_name': 'time'}
'time_bnds'
{}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment