Skip to content

Commit

Permalink
Per #50, update instructions to use I-WRF METplus Docker container th…
Browse files Browse the repository at this point in the history
…at includes METplotpy, METcalcpy, METdataio, and wrf python packages. Mount the Hurricane Matthew Visualization directory so the plotting scripts can be found. The WRF plotting script is called from the METplus use case run
  • Loading branch information
georgemccabe committed Oct 11, 2024
1 parent 1d95724 commit c27b833
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 9 deletions.
12 changes: 9 additions & 3 deletions docs/Users_Guide/matthewjetstream.rst
Original file line number Diff line number Diff line change
Expand Up @@ -181,12 +181,13 @@ make sure that we refer to the same resource names and file paths wherever they
Copy and paste the definitions below into your shell to define the variables before proceeding::

WRF_IMAGE=ncar/iwrf:latest
METPLUS_IMAGE=dtcenter/metplus-dev:develop
METPLUS_IMAGE=ncar/iwrf:metplus-latest
WORKING_DIR=/home/exouser
WRF_DIR=${WORKING_DIR}/wrf/20161006_00
METPLUS_DIR=${WORKING_DIR}/metplus
WRF_CONFIG_DIR=${WORKING_DIR}/i-wrf/use_cases/Hurricane_Matthew/WRF
METPLUS_CONFIG_DIR=${WORKING_DIR}/i-wrf/use_cases/Hurricane_Matthew/METplus
PLOT_SCRIPT_DIR=${WORKING_DIR}/i-wrf/use_cases/Hurricane_Matthew/Visualization
OBS_DATA_VOL=data-matthew-input-obs

Any time you open a new shell on your instance, you will need to perform this action
Expand Down Expand Up @@ -351,12 +352,17 @@ Run METplus
After the WRF simulation has finished, you can run the METplus verification to compare the simulated results
to the actual weather observations during the hurricane.
The verification takes about five minutes to complete.
We use command line options to tell the METplus container several things, including where the observed data is located,
where the METplus configuration can be found, where the WRF output data is located, and where it should create its output files::
We use command line options to tell the METplus container several things,
including where the observed data is located,
where the METplus configuration can be found,
where the plotting scripts can be found,
where the WRF output data is located,
and where it should create its output files::

docker run --rm -it \
--volumes-from ${OBS_DATA_VOL} \
-v ${METPLUS_CONFIG_DIR}:/config \
-v ${PLOT_SCRIPT_DIR}:/plot_scripts \
-v ${WORKING_DIR}/wrf:/data/input/wrf \
-v ${METPLUS_DIR}:/data/output ${METPLUS_IMAGE} \
/metplus/METplus/ush/run_metplus.py /config/PointStat_matthew.conf
Expand Down
12 changes: 9 additions & 3 deletions docs/Users_Guide/matthewredcloud.rst
Original file line number Diff line number Diff line change
Expand Up @@ -187,12 +187,13 @@ make sure that we refer to the same resource names and file paths wherever they
Copy and paste the definitions below into your shell to define the variables before proceeding::

WRF_IMAGE=ncar/iwrf:latest
METPLUS_IMAGE=dtcenter/metplus-dev:develop
METPLUS_IMAGE=ncar/iwrf:metplus-latest
WORKING_DIR=/home/ubuntu
WRF_DIR=${WORKING_DIR}/wrf/20161006_00
METPLUS_DIR=${WORKING_DIR}/metplus
WRF_CONFIG_DIR=${WORKING_DIR}/i-wrf/use_cases/Hurricane_Matthew/WRF
METPLUS_CONFIG_DIR=${WORKING_DIR}/i-wrf/use_cases/Hurricane_Matthew/METplus
PLOT_SCRIPT_DIR=${WORKING_DIR}/i-wrf/use_cases/Hurricane_Matthew/Visualization
OBS_DATA_VOL=data-matthew-input-obs

Any time you open a new shell on your instance, you will need to perform this action
Expand Down Expand Up @@ -357,12 +358,17 @@ Run METplus
After the WRF simulation has finished, you can run the METplus verification to compare the simulated results
to the actual weather observations during the hurricane.
The verification takes about five minutes to complete.
We use command line options to tell the METplus container several things, including where the observed data is located,
where the METplus configuration can be found, where the WRF output data is located, and where it should create its output files::
We use command line options to tell the METplus container several things,
including where the observed data is located,
where the METplus configuration can be found,
where the plotting scripts can be found,
where the WRF output data is located,
and where it should create its output files::

sudo docker run --rm -it \
--volumes-from ${OBS_DATA_VOL} \
-v ${METPLUS_CONFIG_DIR}:/config \
-v ${PLOT_SCRIPT_DIR}:/plot_scripts \
-v ${WORKING_DIR}/wrf:/data/input/wrf \
-v ${METPLUS_DIR}:/data/output ${METPLUS_IMAGE} \
/metplus/METplus/ush/run_metplus.py /config/PointStat_matthew.conf
Expand Down
12 changes: 9 additions & 3 deletions docs/Users_Guide/matthewwindows.rst
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,12 @@ or changes the path entirely to use a different location on your computer::
Now you can copy and paste the definitions below into your shell to define the other variables before proceeding::

set WRF_IMAGE=ncar/iwrf:latest
set METPLUS_IMAGE=dtcenter/metplus-dev:develop
set METPLUS_IMAGE=ncar/iwrf:metplus-latest
set WRF_DIR=%WORKING_DIR%\wrf\20161006_00
set METPLUS_DIR=%WORKING_DIR%\metplus
set WRF_CONFIG_DIR=%WORKING_DIR%\i-wrf-main\use_cases\Hurricane_Matthew\WRF
set METPLUS_CONFIG_DIR=%WORKING_DIR%\i-wrf-main\use_cases\Hurricane_Matthew\METplus
set PLOT_SCRIPT_DIR=%WORKING_DIR%\i-wrf-main\use_cases\Hurricane_Matthew\Visualization
set OBS_DATA_VOL=data-matthew-input-obs

Any time you open a new shell on your instance, you will need to perform this action
Expand Down Expand Up @@ -240,12 +241,17 @@ Run METplus
After the WRF simulation has finished, you can run the METplus verification to compare the simulated results
to the actual weather observations during the hurricane.
The verification takes about five minutes to complete.
We use command line options to tell the METplus container several things, including where the observed data is located,
where the METplus configuration can be found, where the WRF output data is located, and where it should create its output files::
We use command line options to tell the METplus container several things,
including where the observed data is located,
where the METplus configuration can be found,
where the plotting scripts can be found,
where the WRF output data is located,
and where it should create its output files::

docker run --rm -it ^
--volumes-from %OBS_DATA_VOL% ^
-v %METPLUS_CONFIG_DIR%:/config ^
-v %PLOT_SCRIPT_DIR%:/plot_scripts ^
-v %WORKING_DIR%\wrf:/data/input/wrf ^
-v %METPLUS_DIR%:/data/output %METPLUS_IMAGE% ^
/metplus/METplus/ush/run_metplus.py /config/PointStat_matthew.conf
Expand Down

0 comments on commit c27b833

Please sign in to comment.