pycmor.scripts package#
Submodules#
pycmor.scripts.update_dimensionless_mappings module#
Script to automatically update dimensionless_mappings.yaml file from CMIP6 Tables.
This script scans all CMIP6 table JSON files for variables with dimensionless units or special unit conversions, and updates the dimensionless_mappings.yaml file with proper formatting including standard names as comments.
The script keeps any existing values defined in the YAML file and leaves new values empty, preserving human-defined special cases.
- pycmor.scripts.update_dimensionless_mappings.extract_variables_from_tables(tables_path)[source]#
Extract all variables with dimensionless units or special units from CMIP6 tables. Returns a dictionary of variable_name: {unit: unit, standard_name: standard_name}