Tools to support analysis of CESM/MOM6 model solutions. See documentation for more information.
Installation
Clone the repository from github:
git clone https://github.com/NCAR/mom6-tools.git
Install required packages and
mom6-toolsin a brand new conda environment:cd mom6-tools conda env create --file environment.yml
Register
mom6-toolsinipykernel:conda run -n mom6-tools python -m ipykernel install --user --name mom6-tools
Notes
get_cluster(n_workers)runs adask.distributed.LocalClusteron the node it is called from. Batch workers are opt-in: to submit them you must name the class, either withparallel, cluster, client = get_cluster(n_workers, cluster_class='PBSCluster'), with--cluster-class PBSClusteron the command line, or withcluster_class: PBSClusterin theJobqueue:block ofdiag_config.yml. Resource settings on their own (--queue, aJobqueue:block withoutcluster_class, …) will not do it – they are ignored, with a warning naming them.If running on HPC, make sure the project account is added to
~/.config/dask/jobqueue.yaml. Or set a default account as an environment variable that your scheduler can access. Anything not set in theJobqueue:block or on the command line falls back to that dask configuration.
User guide
Reference