fre.pp package
Subpackages
- fre.pp.tests package
- Submodules
- fre.pp.tests.test_configure_script_yaml module
- fre.pp.tests.test_fre_pp_init module
- fre.pp.tests.test_histval_script module
- fre.pp.tests.test_nccheck_script module
- fre.pp.tests.test_ppval_script module
- fre.pp.tests.test_rose_quoting module
- fre.pp.tests.test_split_netcdf module
- fre.pp.tests.test_split_netcdf_regex module
- Module contents
- Submodules
Submodules
- fre.pp.checkout_script module
- fre.pp.configure_script_yaml module
- fre.pp.frepp module
- fre.pp.histval_script module
- fre.pp.install_script module
- fre.pp.nccheck_script module
- fre.pp.ppval_script module
- fre.pp.run_script module
- fre.pp.split_netcdf_script module
- fre.pp.status_script module
- fre.pp.trigger_script module
- fre.pp.validate_script module
- fre.pp.wrapper_script module
Module contents
- fre.pp.make_workflow_name(experiment: str | None = None, platform: str | None = None, target: str | None = None) str
Function that takes in a triplet of tags for a model experiment, platform, and target, and returns a directory name for the corresponding pp workflow. Because this is often given by user to the shell being used by python, we split/reform the string to remove semi-colons or spaces that may be used to execute an arbitrary command with elevated privileges.
- Parameters:
experiment (str) – One of the postprocessing experiment names from the yaml displayed by fre list exps -y $yamlfile (e.g. c96L65_am5f4b4r0_amip), default None
platform (str) – The location + compiler that was used to run the model (e.g. gfdl.ncrc5-deploy), default None
target (str) – Options used for the model compiler (e.g. prod-openmp), default None
- Returns:
string created in specific format from the input strings
- Return type:
str
Note
if any arguments are None, then “None” will appear in the workflow name