mom-utils
This is a collection of Python utilities for the MOM, a numerical model developed by GFDL/NOAA
Support and Documentation
Quick howto use
To install:
pip install mom-utils
Some uses:
The input.nml do not require any order, so it is usually not fun to compare two different input.nml. This command is different then a regular diff, since it doesn’t care about the order of the variables. The output show what is different, or what is defined in only one of the files.
mom_namelist compare input.nml input2.nml
Inside python, one can read an input.nml setup, change one parameter, and write into another input2.nml like this:
nml_text = open(‘input.nml’, ‘r’).read()
cfg = mom_utils.nml_decode(nml_text)
cfg[‘ocean_model_nml’][‘dt_ocean’] = 7200
output = open(‘input2.nml’, ‘w’)
output.write(mom_utils.yaml2nml(cfg))
Some namelists/parameters changed or disapear between MOM4 and MOM5. The task “check” evaluates if all namelists/parameters in the input.nml are declared in the code.
mom_namelist check –momsrc=mom/src myexperiments/exp1/input.nml
Task 4to5 converts a namelist for MOM4 to a namelist for MOM5
mom_namelist 4to5 input.nml > ./input.nml.new
License
mom-utils is offered under the PSFL.
News
1.2.4
Temporary solution to allow to handle input.nml for CM, which store some lists as parameters values.
1.2
mom4_namelist renamed to mom_namelist.
New task “check” for mom_namelist.
before 1.1.4
mom4_namelist: An application to parse and manipulate the input.nml
Including some documentation
First release was some point at 2011, I’m not sure when.
Metadata
Release files for mom-utils 1.2.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mom-utils-1.2.7.tar.gz | 15.0 kB | Without provenance | Details for mom-utils-1.2.7.tar.gz |
Release files / mom-utils-1.2.7.tar.gz
| Download URL | mom-utils-1.2.7.tar.gz |
|---|---|
| Size | 15.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bd8730b14afb8616a4211c5f50260f60b6bd91c83634feb99fc073719dafd788
|
|
BLAKE2b-256 checksum How to use checksums |
f6e35bf1c347f8fc35a1be3eb3540b922d33af3e764055ed4f206096e46d148c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for mom-utils 1.2.7
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.