{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "\n# UserScript: Make zonal and meridonial means \n\nmodel_applications/\ns2s/\nUserScript_obsERA_obsOnly_Stratosphere.py\n" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Scientific Objective\n\nThis use case calls functions in METcalcpy to create zonal and meridonial \nmeans \n\n\n" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Datasets\n\nSSWC_v1.0_varFull_ERAi_d20130106_s20121107_e20130307_c20160701.nc\n\n" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## METplus Components\n\nThis use case runs the UserScript wrapper tool to run a user provided script,\nin this case, meridonial.py.\n\n\n" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## METplus Workflow\n\nThis use case does not loop but plots the entire time period of data\n\nUserScript\nThis uses data from 20130106,20121107,20130307,20160701 \n\n\n\n" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## METplus Configuration\n\nMETplus first loads all of the configuration files found in parm/metplus_config,\nthen it loads any configuration files passed to METplus via the command line\nwith the -c option, i.e. -c parm/use_cases/model_applications/s2s/UserScript_obsERA_obsOnly_Stratosphere.conf\n\n.. highlight:: bash\n.. literalinclude:: ../../../../parm/use_cases/model_applications/s2s/UserScript_obsERA_obsOnly_Stratosphere.conf\n\n\n" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## MET Configuration\n\nThere are no MET tools used in this use case.\n\n\n" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Python Embedding\n\nThere is no python embedding in this use case\n\n\n" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Running METplus\n\nThis use case can be run two ways:\n\n1) Passing in meridonial_means.conf, \nthen a user-specific system configuration file::\n\n run_metplus.py -c /path/to/METplus/parm/use_cases/model_applications/s2s/UserScript_obsERA_obsOnly_Stratosphere.conf -c /path/to/user_system.conf\n\n2) Modifying the configurations in parm/metplus_config, then passing in meridonial.conf::\n\n run_metplus.py -c /path/to/METplus/parm/use_cases/model_applications/s2s/UserScript_obsERA_obsOnly_Stratosphere.conf\n\nThe former method is recommended. Whether you add them to a user-specific configuration file or modify the metplus_config files, the following variables must be set correctly:\n\n* **INPUT_BASE** - Path to directory where sample data tarballs are unpacked (See Datasets section to obtain tarballs). This is not required to run METplus, but it is required to run the examples in parm/use_cases\n* **OUTPUT_BASE** - Path where METplus output will be written. This must be in a location where you have write permissions\n* **MET_INSTALL_DIR** - Path to location where MET is installed locally\n\n and for the [exe] section, you will need to define the location of NON-MET executables.\n If the executable is in the user's path, METplus will find it from the name. \n If the executable is not in the path, specify the full path to the executable here (i.e. RM = /bin/rm) \n The following executables are required for performing series analysis use cases:\n\nExample User Configuration File::\n\n [dir]\n INPUT_BASE = /path/to/sample/input/data\n OUTPUT_BASE = /path/to/output/dir\n MET_INSTALL_DIR = /path/to/met-X.Y\n\n [exe]\n RM = /path/to/rm\n CUT = /path/to/cut\n TR = /path/to/tr\n NCAP2 = /path/to/ncap2\n CONVERT = /path/to/convert\n NCDUMP = /path/to/ncdump\n\n\n" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Expected Output\n\nA successful run will output the following both to the screen and to the logfile::\n\n INFO: METplus has successfully finished running.\n\n\n" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Keywords\n\n
* UserScriptUseCase\n * S2SAppUseCase\n * METcalcpyUseCase\n\n Navigate to the `quick-search` page to discover other similar use cases.