Python package for preprocessing the met forcings for land models.
- Free software: Apache Software License 2.0
- Documentation: https://metplan.readthedocs.io
See config.yaml for an example configuration
directories= A list of directories from which every.ncfile would be picked, or filename is provided, use invidual file. Recommended to use absolute pathsoutput_file= Output file_name for combined outputs
See param_map.yaml for an example configuration
The top level keys are the names of all possible output preprocessor parameters. For example:
Qair:
type: standard
input_param:
- Qair
calc:
- deps:
vp,vpd,Tair
func:
vp_vpd_tair_sh
unit:
kg kg-1
Here, Qair represents specific humidity as the output.
type(required) =standard/optional/conversion= Standard/Optional types correspond to mandatory/optional parameters used in the model. Conversion inputs are only used during calculations but not present in the final output.input_param(optional) = The input datasets would have different parameter names, they are to be renamed. Not supported for naming conflicts.calc(optional) = In case the input parameters are not provided but can be calculated with some other dependencies. Not supported for Cyclic dependencies. As of now, also not supported for ordered priority of dependencies.unit(required for optional/standard types) = Should be compatible with
- On Gadi, load
analysis3environment pip install -e .to have editable changes for testing
From the project root folder
python src/met_preprocessor/met_preprocessing.py
In case running from another directory, change the following variables to their absolute file name paths in src/met_preprocessor/met_preprocesssing.py
CONFIG_FILE_NAME = "/path/to/config.yaml"
PARAM_MAP_FILE_NAME = "/path/to/param_map.yaml"pytest
© 2026 ACCESS-NRI and contributors. See the top-level COPYRIGHT file for details.
SPDX-License-Identifier: Apache-2.0
This package was created with Cookiecutter and the ACCESS-NRI/cookiecutter-pypackage-access project template.