-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
UW-509 docs for sfc_climo_gen driver (#412)
- Loading branch information
1 parent
4fa8106
commit dd2a766
Showing
18 changed files
with
381 additions
and
137 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
Drivers | ||
======= | ||
|
||
.. toctree:: | ||
:maxdepth: 1 | ||
|
||
mode_fv3 | ||
mode_sfc_climo_gen |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
93 changes: 93 additions & 0 deletions
93
docs/sections/user_guide/cli/drivers/mode_sfc_climo_gen.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
Mode ``sfc_climo_gen`` | ||
====================== | ||
|
||
The ``uw`` mode for configuring and running the :sfc-climo-gen:`sfc_climo_gen<>` component. | ||
|
||
.. code-block:: text | ||
$ uw sfc_climo_gen --help | ||
usage: uw sfc_climo_gen [-h] TASK ... | ||
Execute sfc_climo_gen tasks | ||
Optional arguments: | ||
-h, --help | ||
Show help and exit | ||
Positional arguments: | ||
TASK | ||
namelist_file | ||
The namelist file | ||
provisioned_run_directory | ||
Run directory provisioned with all required content | ||
run | ||
Run execution | ||
runscript | ||
The runscript | ||
All tasks take the same arguments. For example: | ||
|
||
.. code-block:: text | ||
$ uw sfc_climo_gen run --help | ||
usage: uw sfc_climo_gen run --config-file PATH [-h] [--batch] [--dry-run] [--debug] [--quiet] | ||
[--verbose] | ||
Run execution | ||
Required arguments: | ||
--config-file PATH, -c PATH | ||
Path to config file | ||
Optional arguments: | ||
-h, --help | ||
Show help and exit | ||
--batch | ||
Submit run to batch scheduler | ||
--dry-run | ||
Only log info, making no changes | ||
--debug | ||
Print all log messages, plus any unhandled exception's stack trace (implies --verbose) | ||
--quiet, -q | ||
Print no logging messages | ||
--verbose, -v | ||
Print all logging messages | ||
Examples | ||
^^^^^^^^ | ||
|
||
The examples use a configuration file named ``config.yaml`` with content similar to: | ||
|
||
.. highlight:: yaml | ||
.. literalinclude:: ../../../../shared/sfc_climo_gen.yaml | ||
|
||
Its contents are described in depth in section :ref:`sfc_climo_gen_yaml`. | ||
|
||
* Run ``sfc_climo_gen`` on an interactive node | ||
|
||
.. code-block:: text | ||
$ uw sfc_climo_gen run --config-file config.yaml | ||
The driver creates a ``runscript`` file in the directory specified by ``run_dir:`` in the config and runs it, executing ``sfc_climo_gen``. | ||
|
||
* Run ``sfc_climo_gen`` via a batch job | ||
|
||
.. code-block:: text | ||
$ uw sfc_climo_gen run --config-file config.yaml --batch | ||
The driver creates a ``runscript`` file in the directory specified by ``run_dir:`` in the config and submits it to the batch system. Running with ``--batch`` requires a correctly configured ``platform:`` block in ``config,yaml``, as well as appropriate settings in the ``execution:`` block under ``sfc_climo_gen:``. | ||
|
||
* Specifying the ``--dry-run`` flag results in the driver logging messages about actions it would have taken, without actually taking any. | ||
|
||
.. code-block:: text | ||
$ uw sfc_climo_gen run --config-file config.yaml --batch --dry-run | ||
* The ``run`` task depends on the other available tasks and executes them as prerequisites. It is possible to execute any task directly, which entails execution of any of *its* dependencies. For example, to create an ``sfc_climo_gen`` run directory provisioned with all the files, directories, symlinks, etc. required per the configuration file: | ||
|
||
.. code-block:: text | ||
$ uw sfc_climo_gen provisioned_run_directory --config-file config.yaml --batch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
Tools | ||
===== | ||
|
||
.. toctree:: | ||
:maxdepth: 1 | ||
|
||
mode_config | ||
mode_rocoto | ||
mode_template |
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.