|
| 1 | +--- |
| 2 | +title: "Quickstart guide" |
| 3 | +teaching: 2 |
| 4 | +exercises: 8 |
| 5 | +questions: |
| 6 | + |
| 7 | +- "What is the purpose of the quickstart guide?" |
| 8 | +- "How do I load and check the ESMValTool environment?" |
| 9 | +- "How do I configure ESMValTool?" |
| 10 | +- "How do I run a recipe?" |
| 11 | + |
| 12 | +objectives: |
| 13 | + |
| 14 | +- "Understand the purpose of the quickstart guide" |
| 15 | +- "Load and check the ESMValTool environment" |
| 16 | +- "Configure ESMValTool" |
| 17 | +- "Run a recipe" |
| 18 | + |
| 19 | +keypoints: |
| 20 | + |
| 21 | +- "The purpose of the quickstart guide is to enable a user of ESMValTool |
| 22 | + to run ESMValTool as quickly as possible without having to go through the |
| 23 | + whole tutorial" |
| 24 | +- "Use the `module load` command to load the ESMValTool environment, |
| 25 | + see the [installation]({{ page.root }}{% link _episodes/02-installation.md %}) |
| 26 | + episode for more details and use `esmvaltool --help` to check the ESMValTool |
| 27 | + environment" |
| 28 | +- "Use `esmvaltool config get_config_user` to create the ESMValTool user |
| 29 | + configuration file" |
| 30 | +- "Use `esmvaltool run <recipe>.yml` to run a recipe" |
| 31 | +--- |
| 32 | +> |
| 33 | +> This quickstart guide is compatible with ESMValTool v2.6.0. |
| 34 | + {: .callout} |
| 35 | + |
| 36 | +> ## What is the purpose of the quickstart guide? |
| 37 | +> |
| 38 | +> - The purpose of the quickstart guide is to enable a user of ESMValTool to |
| 39 | +> run ESMValTool as quickly as possible by making the bare minimum number of |
| 40 | +> changes. |
| 41 | +{: .discussion} |
| 42 | + |
| 43 | +> ## How do I load and check the ESMValTool environment? |
| 44 | +> |
| 45 | +> - For this quickstart guide, an assumption is made that ESMValTool has |
| 46 | +> already been installed at the site where ESMValTool will be run. If this is |
| 47 | +> not the case, see the [Installation][lesson-installation] episode in this |
| 48 | +> tutorial. |
| 49 | +> |
| 50 | +> - Load the ESMValTool environment by following the instructions at |
| 51 | +> [ESMValTool: Pre-installed versions on HPC clusters / other |
| 52 | +> servers][activate-environment]. |
| 53 | +> |
| 54 | +> - Check the ESMValTool environment by accessing the help for ESMValTool: |
| 55 | +> |
| 56 | +> ~~~ |
| 57 | +> esmvaltool --help |
| 58 | +> ~~~ |
| 59 | +> {: .language-bash} |
| 60 | +{: .challenge} |
| 61 | + |
| 62 | +> ## How do I configure ESMValTool? |
| 63 | +> |
| 64 | +> - Create the ESMValTool user configuration file (the file is written by |
| 65 | +> default to `~/.esmvaltool/config-user.yml`): |
| 66 | +> |
| 67 | +> ~~~ |
| 68 | +> esmvaltool config get_config_user |
| 69 | +> ~~~ |
| 70 | +> {: .language-bash} |
| 71 | +> |
| 72 | +> - Edit the ESMValTool user configuration file using your favourite text editor |
| 73 | +> to uncomment the lines relating to the site where ESMValTool will be run. |
| 74 | +> |
| 75 | +> - For more details about the ESMValTool user configuration file see the |
| 76 | +> [Configuration][lesson-configuration] episode in this tutorial. |
| 77 | +{: .challenge} |
| 78 | + |
| 79 | +> ## How do I run a recipe? |
| 80 | +> |
| 81 | +> - Run the example Python recipe: |
| 82 | +> |
| 83 | +> ~~~ |
| 84 | +> esmvaltool run examples/recipe_python.yml |
| 85 | +> ~~~ |
| 86 | +> {: .language-bash} |
| 87 | +> |
| 88 | +> - Wait for the recipe to complete. If the recipe completes successfully, the |
| 89 | +> last line printed to screen at the end of the log will look something like: |
| 90 | +> |
| 91 | +> ~~~ |
| 92 | +> YYYY-MM-DD HH:mm:SS, NNN UTC [NNNNN] INFO Run was successful |
| 93 | +> ~~~ |
| 94 | +> {: .language-bash} |
| 95 | +> |
| 96 | +> - View the output of the recipe by opening the HTML file produced by |
| 97 | +> ESMValTool (the location of this file is printed to screen near the end of |
| 98 | +> the log): |
| 99 | +> |
| 100 | +> ~~~ |
| 101 | +> YYYY-MM-DD HH:mm:SS, NNN UTC [NNNNN] INFO Wrote recipe output to: |
| 102 | +> file:///$HOME/esmvaltool_output/recipe_python_<date>_<time>/index.html |
| 103 | +> ~~~ |
| 104 | +> {: .language-bash} |
| 105 | +> |
| 106 | +> - For more details about running recipes see the |
| 107 | +> [Running your first recipe][lesson-recipe] episode in this tutorial. |
| 108 | +{: .challenge} |
| 109 | +
|
| 110 | +{% include links.md %} |
0 commit comments