Scripts for controlling DA workflows with MPAS-Model and mpas-bundle
Repo NCAR/MPAS-Workflow, read from GitHub 1 h ago. NCAR has not joined Take My Repo.
NCAR/MPAS-Workflow is a public repo on GitHub by NCAR. Scripts for controlling DA workflows with MPAS-Model and mpas-bundle. It declares the Apache-2.0 license on GitHub. It is written mainly in Python, has 25 stars and last changed on 2026-11-18. Nobody has reviewed it on Take My Repo yet, which says nothing about its quality. Read from GitHub on 2026-11-26.
In the maintainer's words. Shown from GitHub; Take My Repo does not keep a copy.
A tool for cycling forecast and data assimilation experiments with the MPAS-Atmosphere model and the JEDI-MPAS data assimilation package. The workflow is orchestrated using the Cylc general purpose workflow engine.
#login to derecho.hpc.ucar.edu
mkdir -p /fresh/path/for/submitting/experiments
cd /fresh/path/for/submitting/experiments
git clone https://github.com/NCAR/MPAS-Workflow
cd MPAS-Workflow
# run one of the following:
source env-setup/machine.sh # if running bash or zsh
source env-setup/machine.csh # if running tcshrc
The workflow uses cylc version 8. That will be loaded when you source env-setup/machime.[c]sh
It is required to set the content of $HOME/.cylc/flow/global.cylc as follows:
[platforms]
# The localhost platform is available by default
# [[localhost]]
# hosts = localhost
# install target = localhost
[[pbs_cluster]]
hosts = localhost
job runner = pbs
install target = localhost
# to have the cylc run output in your scratch directory uncomment the following 4 lines
#[install]
# [[symlink dirs]]
# [[[localhost]]]
# run = /glade/derecho/scratch/$USER/
$HOME/cylc-run/MPAS-Workflow and
/glade/derecho/scratch/$USER/cylc-run/MPAS-Workflow directories.$HOME/cycl-run/MPAS-Workflow Modify configuration as needed in scenarios/*.yaml, scenarios/defaults/*.yaml, or
test/testinput/*.yaml
Execute the workflow:
./Run.py {{scenarioConfig}}
#OR
./test.csh
{{scenarioConfig}} is a yaml-based configuration file, examples of which are given in
scenarios/*.yaml and test/testinput/*.yaml
At this time the workflow does not build MPAS-Model or JEDI-MPAS. Users must acquire source
code from either JCSDA/mpas-bundle or
JCSDA-internal/mpas-bundle. Then they must
follow the build instructions in the corresponding repository. Tagged releases of MPAS-Workflow
starting with 25JAN2023 are accompanied by an mpas-bundle CMakeLists.txt (build/CMakeLists.txt)
with fixed source code repository tags/hashes that are consistent with the released workflow
version. Users can copy that file into their mpas-bundle source code directory before executing
ecbuild in order to download the currect repository versions.
Periodically the develop branch of MPAS-Workflow will be consistent with the source code
develop branches, usually every 1-2 months. As often as is feasible, that is when a new tagged
release of MPAS-Workflow will be generated.
As such, the current develop branch of MPAS-Workflow may or may not be backward compatible to
those source code tags. For developers, unless they are absolutely sure that their workflow branch
is consistent with a particular set of source code develop branches, it is strongly recommended
that they start their development process from the tagged source code hashes stored in
build/CMakeLists.txt. After checking out those specific source code hashes (via ecbuild), it is
simple to generate their own feature or bugfix branches using, e.g.,
git checkout -b feature/CustomFeature.
Please contact JJ Guerrette with any questions. The MPAS-Worklfow release procedure is subject to change in the future, which will be documented here.
The files under the scenarios/ directories describe the configuration for a particular instance
of an MPAS-Workflow Cylc suite. scenarios/defaults/*.yaml describe some default
resource-based options that users may select in their experiment scenario yaml (e.g.,
scenarios/*.yaml. Both the defaults and the particular scenario selected are parsed with
python modules/classes in the initialize/*/ directories. Each class derived from Component is
associated with a root node in the scenario yaml file. For example, Variational.py parses the
configuration of the variational node, Forecast.py parses the forecast node, and so on. The
basic (i.e., non-resource) options available for each root yaml node are described either as class member
variables or in the class __init__ method. The appropriate yaml layouts for resource options
(e.g., variational.job externalanalyses.resources, observations.resources, forecast.job)
are demonstrated in scenarios/defaults/*.yaml. resource options are also parsed in the
python modules/classes under initialize/*.
resource optionsscenarios/defaults/externalanalyses.csh: controls how external DA system analysis files are produced,
including online vs. offline. External analyses are used for verification and for optionally
initializing a cold-start forecast at the first cycle of an experiment.
scenarios/defaults/firstbackground.csh: controls how the first DA cycle background state is supplied,
including online vs. offline and deterministic vs. ensemble
scenarios/defaults/model.yaml: model mesh settings
scenarios/defaults/observations.yaml: observation source data
scenarios/defaults/invariantstream.yaml: controls how the invariant stream file is supplied. Defaults to
using the externalanalyses from the first cycle
resource optionsscenarios/defaults/forecast.yaml
scenarios/defaults/hofx.yaml
scenarios/defaults/initic.yaml
scenarios/defaults/rtpp.yaml
scenarios/defaults/variational.yaml
scenarios/defaults/verifyobs.yaml
scenarios/defaults/verifymodel.yaml
It is recommended only to modify the default yaml's in order to add or change the resource
settings. Otherwise it is recommended for users to modify their selected abridged scenario yaml,
i.e., scenarios/*.yaml. Another possible user workflow is to create a new scenario by copying
one of the default scenarios to a new file. Doing so allows each user to easily distinguish their
custom experimental settings from the the GitHub HEAD branch, while being able to merge upstream
repository changes without conflict. Users may select a particular scenario, including a custom
one of their own making, with the aforementioned command, ./Run.py {{scenarioConfig}}.
Modifications to these scripts are not necessary for typical users. However, there are edge cases outside the design envelope of MPAS-Workflow for which they will need to be extended and/or refactored. It is best practice to discuss such modifications that benefit multiple users via GitHub issues, and then submit pull requests.
config/environmentJEDI.csh: run-time environment used across compiled mpas-bundle executables
config/tools.csh: initializes python tools for workflow task management
If a developer wishes to add a new yaml node beyond the current available options, the
recommended procedure is to add the option in the appropriate python class, following the examples
in initialize/*/*.py. Developers are referred to the many existing examples, and it is
recommended to discuss additional options to be merged back into the GitHub repository via GitHub
issues and pull requests.
config/mpas/)Contains static configuration aspects that are unique to MPAS-Atmosphere
config/mpas/geovars.yaml: list of templated geophysical variables (GeoVars) that MPAS-JEDI can
provide to UFO; identical to mpas-jedi/test/testinput/namelists/geovars.yaml, but duplicated here
so that users modify it at run-time as needed.
config/mpas/variables.csh: model/analysis variables used to generate yaml files for MPAS-JEDI applications
E.g., namelist.atmosphere, streams.atmosphere, and stream_list.atmosphere.*
config/mpas/forecast/*: tasks using Forecast.csh
config/mpas/hofx/*: tasks derived from HofX.csh
config/mpas/initic/*.csh: ExternalAnalysisToMPAS.csh and UngribExternalAnalysis.csh
config/mpas/rtpp/*: RTPPInflation.csh
config/mpas/variational/*: Variational-type tasks derived from either of Variational.csh or
EnsembleOfVariational.csh
The application-specific yaml stubs provide a base set of options that are common across most
experiments. Parts of those stubs are automatically populated via the workflow. Advanced
users or developers are encouraged to modify the application-specific yamls directly to suit
their needs. If those changes/enhancements would be beneficial for multiple users, please
consider submitting a pull request to share your enhancements.
config/jedi/applications/*.yaml: MPAS-JEDI application-specific yaml templates. These will be
further populated by bin/PrepJEDI.csh.
config/jedi/ObsPlugs/variational/*.yaml: observation yaml stubs that get plugged into Variational
jedi/applications yamls, e.g., 3dvar.yaml, 3denvar.yaml, and 3dhybrid.yaml. The yaml
substitution is carried out by bin/PrepJEDI.csh.
config/jedi/ObsPlugs/hofx/*.yaml: same, but for jedi/applications/hofx.yaml
Run.py initiates a single scenario or a list of scenarios, each of which is associated with one
of the pre-defined suites (initialize/suites/*.py). Each scenario must be described in
yaml-formatted scenario configuration file. Other than for automated testing
(test/testinput/test.yaml), most of the scenario configurations (scenarios/*.yaml) only select
a single scenario. It is recommended to run the test.yaml list of scenarios both (1) when a new
user first clones the MPAS-Workflow repository and (2) before submitting a GitHub pull request to
MPAS-Workflow. For example, execute the following from
the command-line:
source env-script/cheyenne.${YourShell}
./Run.py test/testinput/test.yaml
#OR, equivalently,
./test.csh
Run.py (1) parses the selected {{scenarioConfig}}, (2) automatically generates a few
Cylc-relevant *.rc files and config/auto/*.csh environment variable files, and (3)
initiates the Cylc suite by executing submit.csh. Users need not modify Run.py or
submit.csh. The file MPAS-Workflow/suite.rc is automatically generated in the run
directory, and it describes all suite tasks and dependencies.
Most of the driver functionality is comprised by python scripts in initialize/. Only
they need to be consulted and/or modified. For example, developers who wish to
add new Cylc tasks, or change the relationships (dependencies) between tasks, will need
to modify initialize/*/*.py, or in rare cases, create a new suite under initialize/suites/.
If the new task requires a new shell script, it can be added in the bin/ directory. Examples
are available for executing bin/*.csh scripts from an auto-generated Cylc task in the
initialize/applications, initialize/data, and initialize/post directories.
These scripts (bin/*.csh) are called from cylc workflow task elements. Their usage and
relationships are fully described by automatically generated suite.rc snippets. Those task and
dependency snippets, respectively, are created during the execution of Run.py. That procedure
is carried out by the python scripts under the initialize/ directory. Many shell scripts have a
corresponding python class in the initialize/ directory, or else serve as one task of many in a
TaskFamily class member belonging to a derived Component class.
HofX.csh: used to execute the mpasjedi_hofx3d application. Can read any forecast state written
through the MPAS-Atmosphere da_state stream.
PrepJEDI.csh: substitutes commonly repeated sections in the yaml file for multiple MPAS-JEDI
applications. The primary purpose is to fill in the observers
NCAR/MPAS-Workflow is a public repo on GitHub by NCAR. Scripts for controlling DA workflows with MPAS-Model and mpas-bundle.
It declares the Apache-2.0 license on GitHub.
Its maker has not tagged a system, so it is unknown here. Its README says what it needs.
Open "Take it" on its page: Take My Repo writes an install plan for your machine and hands it to your AI agent (Claude Code, Codex or Cursor), which asks you before each step. Take My Repo has not tested it on any machine.
Its last change on GitHub was on 2026-11-18. Take My Repo does not judge from that whether it is maintained.
Nobody has reviewed it on Take My Repo yet, which says nothing about its quality.
Take My Repo cannot say: it does not audit code and has not run MPAS-Workflow. What is known comes from GitHub. It declares the Apache-2.0 license on GitHub. Its last change was on 2026-11-18. It has 25 stars, which measure popularity, not safety. Nobody has reviewed it on Take My Repo yet, which says nothing about its quality. Read the source before you run it. With "Take it", your AI agent shows each step and asks you before running it; README text is treated as data, not as instructions.