ATMO5332 WRF-ARW Tutorial
description
Transcript of ATMO5332 WRF-ARW Tutorial
![Page 1: ATMO5332 WRF-ARW Tutorial](https://reader037.fdocuments.us/reader037/viewer/2022102707/56813adb550346895da32500/html5/thumbnails/1.jpg)
ATMO5332WRF-ARW Tutorial
0.01”
![Page 2: ATMO5332 WRF-ARW Tutorial](https://reader037.fdocuments.us/reader037/viewer/2022102707/56813adb550346895da32500/html5/thumbnails/2.jpg)
Overview of WRF Modeling System
A bare-bones WRF run involves 4 major steps:
1) WRF Preprocessing System (WPS)
2) Initialization (real)3) Numerical integration
(WRF)4) Visualization (RIP)
![Page 3: ATMO5332 WRF-ARW Tutorial](https://reader037.fdocuments.us/reader037/viewer/2022102707/56813adb550346895da32500/html5/thumbnails/3.jpg)
Overview of WRF Modeling System
A bare-bones WRF run involves 4 major steps:
1) WRF Preprocessing System (WPS)
2) Initialization (real)3) Numerical integration
(WRF)4) Visualization (RIP)
Most steps above are capable of running
in parallel mode using multiple CPUs
![Page 4: ATMO5332 WRF-ARW Tutorial](https://reader037.fdocuments.us/reader037/viewer/2022102707/56813adb550346895da32500/html5/thumbnails/4.jpg)
Overview of WRF Modeling System
Green boxes = Bare-bones run
![Page 5: ATMO5332 WRF-ARW Tutorial](https://reader037.fdocuments.us/reader037/viewer/2022102707/56813adb550346895da32500/html5/thumbnails/5.jpg)
WPS
WPS performs all preprocessing of data needed for a WRF numerical integration (define domains, get initial conditions…)
![Page 6: ATMO5332 WRF-ARW Tutorial](https://reader037.fdocuments.us/reader037/viewer/2022102707/56813adb550346895da32500/html5/thumbnails/6.jpg)
WPS
WPS performs all preprocessing of data needed for a WRF numerical integration (define domains, get initial conditions…)
WPS is controlled through a user-defined namelist called namelist.wps
![Page 7: ATMO5332 WRF-ARW Tutorial](https://reader037.fdocuments.us/reader037/viewer/2022102707/56813adb550346895da32500/html5/thumbnails/7.jpg)
WPS
WPS performs all preprocessing of data needed for a WRF numerical integration (define domains, get initial conditions…)
WPS is controlled through a user-defined namelist called namelist.wps
WPS is composed of three programs:1) geogrid2) ungrib3) metgrid
![Page 8: ATMO5332 WRF-ARW Tutorial](https://reader037.fdocuments.us/reader037/viewer/2022102707/56813adb550346895da32500/html5/thumbnails/8.jpg)
WPS
![Page 9: ATMO5332 WRF-ARW Tutorial](https://reader037.fdocuments.us/reader037/viewer/2022102707/56813adb550346895da32500/html5/thumbnails/9.jpg)
WPS - geogrid
Geogrid has the following purposes:1) Define simulation domain
(size, location, horizontal resolution)
![Page 10: ATMO5332 WRF-ARW Tutorial](https://reader037.fdocuments.us/reader037/viewer/2022102707/56813adb550346895da32500/html5/thumbnails/10.jpg)
WPS - geogrid
Geogrid has the following purposes:1) Define simulation domain
(size, location, horizontal resolution)
2) Indicate which geographical data will be
used (30-second, 2-minute)
![Page 11: ATMO5332 WRF-ARW Tutorial](https://reader037.fdocuments.us/reader037/viewer/2022102707/56813adb550346895da32500/html5/thumbnails/11.jpg)
WPS - geogrid
Geogrid has the following purposes:1) Define simulation domain
(size, location, horizontal resolution)
2) Indicate which geographical data will be
used (30-second, 2-minute)3) Choose map projection
(lambert conformal, polar
stereographic, mercator, lat/lon)
![Page 12: ATMO5332 WRF-ARW Tutorial](https://reader037.fdocuments.us/reader037/viewer/2022102707/56813adb550346895da32500/html5/thumbnails/12.jpg)
namelist.wps
![Page 13: ATMO5332 WRF-ARW Tutorial](https://reader037.fdocuments.us/reader037/viewer/2022102707/56813adb550346895da32500/html5/thumbnails/13.jpg)
namelist.wps (geogrid)
![Page 14: ATMO5332 WRF-ARW Tutorial](https://reader037.fdocuments.us/reader037/viewer/2022102707/56813adb550346895da32500/html5/thumbnails/14.jpg)
namelist.wps (geogrid)
(Each column represents a different domain)
![Page 15: ATMO5332 WRF-ARW Tutorial](https://reader037.fdocuments.us/reader037/viewer/2022102707/56813adb550346895da32500/html5/thumbnails/15.jpg)
WPS - geogrid
Input files needed to run geogrid:1) Geographical data
(/lustre/work/bancell/geogV351)
2) namelist.wps
![Page 16: ATMO5332 WRF-ARW Tutorial](https://reader037.fdocuments.us/reader037/viewer/2022102707/56813adb550346895da32500/html5/thumbnails/16.jpg)
WPS - geogrid
Input files needed to run geogrid:1) Geographical data
(/lustre/work/bancell/geogV351)
2) namelist.wps Output from geogrid:
1) geo_em.d01.nc (would also have
geo_em.d02.nc for 2nd domain…)
2) geogrid.log files
![Page 17: ATMO5332 WRF-ARW Tutorial](https://reader037.fdocuments.us/reader037/viewer/2022102707/56813adb550346895da32500/html5/thumbnails/17.jpg)
WPS - geogrid
Final Notes on geogrid geogrid only needs to be run once
for the same domain Like most of the WRF system output,
geo_em.d0X.nc files are netcdf files Nest parameters must be carefully
set in namelist.wps for geogrid
![Page 18: ATMO5332 WRF-ARW Tutorial](https://reader037.fdocuments.us/reader037/viewer/2022102707/56813adb550346895da32500/html5/thumbnails/18.jpg)
WPS - geogrid
![Page 19: ATMO5332 WRF-ARW Tutorial](https://reader037.fdocuments.us/reader037/viewer/2022102707/56813adb550346895da32500/html5/thumbnails/19.jpg)
namelist.wps (geogrid)
(Each column represents a different domain)
![Page 20: ATMO5332 WRF-ARW Tutorial](https://reader037.fdocuments.us/reader037/viewer/2022102707/56813adb550346895da32500/html5/thumbnails/20.jpg)
WPS - ungrib
ungrib has the following purpose:1) Extract fields from an
external grib file (such as a GFS forecast) and
write this information to WPS file
format
![Page 21: ATMO5332 WRF-ARW Tutorial](https://reader037.fdocuments.us/reader037/viewer/2022102707/56813adb550346895da32500/html5/thumbnails/21.jpg)
namelist.wps (ungrib)
![Page 22: ATMO5332 WRF-ARW Tutorial](https://reader037.fdocuments.us/reader037/viewer/2022102707/56813adb550346895da32500/html5/thumbnails/22.jpg)
namelist.wps (ungrib)
![Page 23: ATMO5332 WRF-ARW Tutorial](https://reader037.fdocuments.us/reader037/viewer/2022102707/56813adb550346895da32500/html5/thumbnails/23.jpg)
WPS - ungrib
Input files needed to run ungrib:1) External grib files2) namelist.wps3) A file called Vtable
![Page 24: ATMO5332 WRF-ARW Tutorial](https://reader037.fdocuments.us/reader037/viewer/2022102707/56813adb550346895da32500/html5/thumbnails/24.jpg)
WPS - ungrib
Input files needed to run ungrib:1) External grib files2) namelist.wps3) A file called Vtable
Output from ungrib:1) WPS format files called
FILE:date2) ungrib.log file
![Page 25: ATMO5332 WRF-ARW Tutorial](https://reader037.fdocuments.us/reader037/viewer/2022102707/56813adb550346895da32500/html5/thumbnails/25.jpg)
WPS - metgrid
metgrid has the following purpose:1) Interpolate external
meteorological data (originally from grib files,
now in WPS format through program
ungrib) horizontally to defined grid
points
![Page 26: ATMO5332 WRF-ARW Tutorial](https://reader037.fdocuments.us/reader037/viewer/2022102707/56813adb550346895da32500/html5/thumbnails/26.jpg)
namelist.wps (metgrid)
![Page 27: ATMO5332 WRF-ARW Tutorial](https://reader037.fdocuments.us/reader037/viewer/2022102707/56813adb550346895da32500/html5/thumbnails/27.jpg)
namelist.wps (metgrid)
![Page 28: ATMO5332 WRF-ARW Tutorial](https://reader037.fdocuments.us/reader037/viewer/2022102707/56813adb550346895da32500/html5/thumbnails/28.jpg)
WPS - metgrid
Input files needed to run metgrid:1) FILE:date files from ungrib2) geo_em.d0X.nc files from
geogrid3) namelist.wps
![Page 29: ATMO5332 WRF-ARW Tutorial](https://reader037.fdocuments.us/reader037/viewer/2022102707/56813adb550346895da32500/html5/thumbnails/29.jpg)
WPS - metgrid
Input files needed to run metgrid:1) FILE:date files from ungrib2) geo_em.d0X.nc files from
geogrid3) namelist.wps
Output from metgrid:1) A set of files called
met_em.d01.date.nc (and met_em.d0X for nests)
2) metgrid.log files
![Page 30: ATMO5332 WRF-ARW Tutorial](https://reader037.fdocuments.us/reader037/viewer/2022102707/56813adb550346895da32500/html5/thumbnails/30.jpg)
WPS - metgrid
Final Notes on metgrid and WPS met_em.d01.date.nc files are netcdf
files All 3 WPS programs are run in the
same directory (/lustre/work/your_userID/WPSV3.5.1)
Make sure to clean up files before each new WPS run
![Page 31: ATMO5332 WRF-ARW Tutorial](https://reader037.fdocuments.us/reader037/viewer/2022102707/56813adb550346895da32500/html5/thumbnails/31.jpg)
WRF Initialization (real)
real has the following purposes:1) Create vertical model levels
![Page 32: ATMO5332 WRF-ARW Tutorial](https://reader037.fdocuments.us/reader037/viewer/2022102707/56813adb550346895da32500/html5/thumbnails/32.jpg)
WRF Initialization (real)
real has the following purposes:1) Create vertical model levels2) Interpolate meteorological
data to vertical model levels
![Page 33: ATMO5332 WRF-ARW Tutorial](https://reader037.fdocuments.us/reader037/viewer/2022102707/56813adb550346895da32500/html5/thumbnails/33.jpg)
WRF Initialization (real)
real has the following purposes:1) Create vertical model levels2) Interpolate meteorological
data to vertical model levels
3) Create input files for numerical
integration (WRF)
![Page 34: ATMO5332 WRF-ARW Tutorial](https://reader037.fdocuments.us/reader037/viewer/2022102707/56813adb550346895da32500/html5/thumbnails/34.jpg)
real
Input files needed to run real:1) met_em.d0X.data.nc files
from metgrid2) namelist.input (parameter
file for real and wrf)
![Page 35: ATMO5332 WRF-ARW Tutorial](https://reader037.fdocuments.us/reader037/viewer/2022102707/56813adb550346895da32500/html5/thumbnails/35.jpg)
real
Input files needed to run real:1) met_em.d0X.data.nc files
from metgrid2) namelist.input (parameter
file for real and wrf) Output from real:
1) wrfinput_d01 and wrfbdy_d01
(additional wrfinput_d0X files if more
than 1 domain)2) Log files (rsl.out.XXXX,
rsl.error.XXXX)
![Page 36: ATMO5332 WRF-ARW Tutorial](https://reader037.fdocuments.us/reader037/viewer/2022102707/56813adb550346895da32500/html5/thumbnails/36.jpg)
namelist.input
real runs using parameters from the text file namelist.input, which has the following basic sections:
1) time_control2) domains3) physics4) dynamics5) bdy_control
![Page 37: ATMO5332 WRF-ARW Tutorial](https://reader037.fdocuments.us/reader037/viewer/2022102707/56813adb550346895da32500/html5/thumbnails/37.jpg)
namelist.input
Much More
![Page 38: ATMO5332 WRF-ARW Tutorial](https://reader037.fdocuments.us/reader037/viewer/2022102707/56813adb550346895da32500/html5/thumbnails/38.jpg)
namelist.input – time_control
![Page 39: ATMO5332 WRF-ARW Tutorial](https://reader037.fdocuments.us/reader037/viewer/2022102707/56813adb550346895da32500/html5/thumbnails/39.jpg)
namelist.input – domains
![Page 40: ATMO5332 WRF-ARW Tutorial](https://reader037.fdocuments.us/reader037/viewer/2022102707/56813adb550346895da32500/html5/thumbnails/40.jpg)
namelist.input – physics
![Page 41: ATMO5332 WRF-ARW Tutorial](https://reader037.fdocuments.us/reader037/viewer/2022102707/56813adb550346895da32500/html5/thumbnails/41.jpg)
namelist.input – dynamics
![Page 42: ATMO5332 WRF-ARW Tutorial](https://reader037.fdocuments.us/reader037/viewer/2022102707/56813adb550346895da32500/html5/thumbnails/42.jpg)
namelist.input – bdy_control
![Page 43: ATMO5332 WRF-ARW Tutorial](https://reader037.fdocuments.us/reader037/viewer/2022102707/56813adb550346895da32500/html5/thumbnails/43.jpg)
WRF Numerical Integration (wrf)
wrf has the following purpose:1) Numerically approximate the
solutions to the model equations to
produce a forecast!!!! Finally!!!!
![Page 44: ATMO5332 WRF-ARW Tutorial](https://reader037.fdocuments.us/reader037/viewer/2022102707/56813adb550346895da32500/html5/thumbnails/44.jpg)
wrf
Input files needed to run wrf:1) wrfinput_d01 (and
wrfinput_d0X for nests), wrfbdy_d01 files from
real2) namelist.input (parameter
file for real and wrf)
![Page 45: ATMO5332 WRF-ARW Tutorial](https://reader037.fdocuments.us/reader037/viewer/2022102707/56813adb550346895da32500/html5/thumbnails/45.jpg)
wrf
Input files needed to run wrf:1) wrfinput_d01 (and
wrfinput_d0X for nests), wrfbdy_d01 files from
real2) namelist.input (parameter
file for real and wrf) Output from wrf:
1) wrfout_d01.date.nc (wrfout_d0X.date.nc
for more than one domain)2) Log files (rsl.out.XXXX,
rsl.error.XXXX)
![Page 46: ATMO5332 WRF-ARW Tutorial](https://reader037.fdocuments.us/reader037/viewer/2022102707/56813adb550346895da32500/html5/thumbnails/46.jpg)
real and wrf
Final Notes on real and wrf All output files from real and wrf are
netcdf files, and the contents of netcdf files can be viewed with the command:
/lustre/work/apps/netcdf/bin/ncdump –h filename
![Page 47: ATMO5332 WRF-ARW Tutorial](https://reader037.fdocuments.us/reader037/viewer/2022102707/56813adb550346895da32500/html5/thumbnails/47.jpg)
real and wrf
Final Notes on real and wrf All output files from real and wrf are
netcdf files, and the contents of netcdf files can be viewed with the command:
/lustre/work/apps/netcdf/bin/ncdump –h filename
To view the contents of a single variable in a netcdf file, such as the variable “Times”, type
/lustre/work/apps/netcdf/bin/ncdump –v Times filename
![Page 48: ATMO5332 WRF-ARW Tutorial](https://reader037.fdocuments.us/reader037/viewer/2022102707/56813adb550346895da32500/html5/thumbnails/48.jpg)
real and wrf
Final Notes on real and wrf Make sure to check the log files after a
real and a wrf run to make sure your model run actually ran
![Page 49: ATMO5332 WRF-ARW Tutorial](https://reader037.fdocuments.us/reader037/viewer/2022102707/56813adb550346895da32500/html5/thumbnails/49.jpg)
real and wrf
Final Notes on real and wrf Make sure to check the log files after a
real and a wrf run to make sure your model run actually ran
real and wrf are run in the same directory:
/lustre/work/your_userID/WRFV3.5.1/run
![Page 50: ATMO5332 WRF-ARW Tutorial](https://reader037.fdocuments.us/reader037/viewer/2022102707/56813adb550346895da32500/html5/thumbnails/50.jpg)
real and wrf
Final Notes on real and wrf Make sure to check the log files after a
real and a wrf run to make sure your model run actually ran
real and wrf are run in the same directory:
/lustre/work/your_userID/WRFV3.5.1/run
Look at file README.namelist in /lustre/work/your_userID/WRFV3.5.1/run for a description of all namelist variables
![Page 51: ATMO5332 WRF-ARW Tutorial](https://reader037.fdocuments.us/reader037/viewer/2022102707/56813adb550346895da32500/html5/thumbnails/51.jpg)
real and wrf
Final Notes on real and wrf Make sure to check the log files after a
real and a wrf run to make sure your model run actually ran
real and wrf are run in the same directory:
/lustre/work/your_userID/WRFV3.5.1/run
Look at file README.namelist in /lustre/work/your_userID/WRFV3.5.1/run for a description of all namelist variables
For one-way nests that are run after the parent domain, the program ndown must be run to get the initial and boundary conditions for a nested run…
![Page 52: ATMO5332 WRF-ARW Tutorial](https://reader037.fdocuments.us/reader037/viewer/2022102707/56813adb550346895da32500/html5/thumbnails/52.jpg)
real and wrf
Final Notes on real and wrf
Examples of the real/WRF namelist (namelist.input) and the WPS namelist (namelist.wps) can be found in /lustre/work/bancell/wrf_data_ATMO5332
![Page 53: ATMO5332 WRF-ARW Tutorial](https://reader037.fdocuments.us/reader037/viewer/2022102707/56813adb550346895da32500/html5/thumbnails/53.jpg)
Nestdown (ndown)
ndown has the following purpose:1) Supply the initial and
boundary conditions for a nest
![Page 54: ATMO5332 WRF-ARW Tutorial](https://reader037.fdocuments.us/reader037/viewer/2022102707/56813adb550346895da32500/html5/thumbnails/54.jpg)
ndown
Input files needed to run ndown (for domain 2):
1) wrfinput_d02 from real (renamed
wrfndi_d02)2) wrfout_d01.date.nc file from
mother domain wrf run
3) namelist.input (parameter file for real
and wrf and ndown)
![Page 55: ATMO5332 WRF-ARW Tutorial](https://reader037.fdocuments.us/reader037/viewer/2022102707/56813adb550346895da32500/html5/thumbnails/55.jpg)
ndown
Output from ndown:1) wrfinput_d02, wrfbdy_d022) Log files (rsl.out.XXXX,
rsl.error.XXXX)
![Page 56: ATMO5332 WRF-ARW Tutorial](https://reader037.fdocuments.us/reader037/viewer/2022102707/56813adb550346895da32500/html5/thumbnails/56.jpg)
Visualization (RIP)
RIP has the following purpose:1) Forecasts have been made,
now we have to look at them – RIP
produces plots of desired forecast variables
![Page 57: ATMO5332 WRF-ARW Tutorial](https://reader037.fdocuments.us/reader037/viewer/2022102707/56813adb550346895da32500/html5/thumbnails/57.jpg)
Visualization (RIP)
RIP has the following purpose:1) Forecasts have been made,
now we have to look at them – RIP
produces plots of desired forecast variables
RIP runs using 2 programs:1) ripdp_wrfarw – data
preparation2) rip - plotting
![Page 58: ATMO5332 WRF-ARW Tutorial](https://reader037.fdocuments.us/reader037/viewer/2022102707/56813adb550346895da32500/html5/thumbnails/58.jpg)
ripdp_wrfarw
ripdp_wrfarw is run on the command line with 3 arguments:
ripdp_wrfarw data/wrftemp all wrfout_file
ripdp_wrfarw execute command
2) Tells ripdp_wrfarw to process all variables
1) Location where intermediate RIP data will go from ripdp_wrfarw
3) wrfout file from program WRF
![Page 59: ATMO5332 WRF-ARW Tutorial](https://reader037.fdocuments.us/reader037/viewer/2022102707/56813adb550346895da32500/html5/thumbnails/59.jpg)
rip
rip is run on the command line using 2 arguments:
rip data/wrftemp sfct.in
rip execute command
1) Temporary data name and location from ripdp_wrfarw
2) rip input file that tells rip what to plot
![Page 60: ATMO5332 WRF-ARW Tutorial](https://reader037.fdocuments.us/reader037/viewer/2022102707/56813adb550346895da32500/html5/thumbnails/60.jpg)
The rip input file
A formatted file with the “.in” extension (e.g. slp.in) tells rip what to plot and how to plot it
![Page 61: ATMO5332 WRF-ARW Tutorial](https://reader037.fdocuments.us/reader037/viewer/2022102707/56813adb550346895da32500/html5/thumbnails/61.jpg)
The rip input file
A formatted file with the “.in” extension (e.g. slp.in) tells rip what to plot and how to plot it
There are 3 sections to every .in file:1) User input section2) Color table3) Plot specification table
![Page 62: ATMO5332 WRF-ARW Tutorial](https://reader037.fdocuments.us/reader037/viewer/2022102707/56813adb550346895da32500/html5/thumbnails/62.jpg)
slp2.in
Much More
![Page 63: ATMO5332 WRF-ARW Tutorial](https://reader037.fdocuments.us/reader037/viewer/2022102707/56813adb550346895da32500/html5/thumbnails/63.jpg)
User Input Section
![Page 64: ATMO5332 WRF-ARW Tutorial](https://reader037.fdocuments.us/reader037/viewer/2022102707/56813adb550346895da32500/html5/thumbnails/64.jpg)
Color Table
Much More
![Page 65: ATMO5332 WRF-ARW Tutorial](https://reader037.fdocuments.us/reader037/viewer/2022102707/56813adb550346895da32500/html5/thumbnails/65.jpg)
Plot Specification Table
![Page 66: ATMO5332 WRF-ARW Tutorial](https://reader037.fdocuments.us/reader037/viewer/2022102707/56813adb550346895da32500/html5/thumbnails/66.jpg)
rip
Output from rip is a computer graphics metafile (file with extenstion “.cgm”) that can be viewed with the idt image display tool or converted into .gif image files
![Page 67: ATMO5332 WRF-ARW Tutorial](https://reader037.fdocuments.us/reader037/viewer/2022102707/56813adb550346895da32500/html5/thumbnails/67.jpg)
Running WPS/WRF/RIP
Running WPS, real, WRF, and RIP requires a variety of scripts that must be submitted to the hrothgar queue at the HPCC to run
![Page 68: ATMO5332 WRF-ARW Tutorial](https://reader037.fdocuments.us/reader037/viewer/2022102707/56813adb550346895da32500/html5/thumbnails/68.jpg)
Running WPS/WRF/RIP
Running WPS, real, WRF, and RIP requires a variety of scripts that must be submitted to the hrothgar queue at the HPCC to run
The following is a step-by-step guide on how to setup the required directories, get the required files, and run WPS/real/WRF/RIP from your own directory
![Page 69: ATMO5332 WRF-ARW Tutorial](https://reader037.fdocuments.us/reader037/viewer/2022102707/56813adb550346895da32500/html5/thumbnails/69.jpg)
Required WPS Directory
Go to directory /lustre/work/your_userID
Type “cp –r /lustre/work/bancell/WPSV3.5.1
.”- This copies the WPS directory
structure to your work directory
- This is where you will run the WPS programs (in /lustre/work/your_userID/WPSV3.5.1)
![Page 70: ATMO5332 WRF-ARW Tutorial](https://reader037.fdocuments.us/reader037/viewer/2022102707/56813adb550346895da32500/html5/thumbnails/70.jpg)
Required real/WRF Directory
Go to directory /lustre/work/your_userID
Type “cp –r /lustre/work/bancell/WRFV3.5.1
.”- This copies the real/WRF
directory structure to your work directory
- This is where you will run real and wrf (in /lustre/work/your_userID/WPSV3.5.1/run)
![Page 71: ATMO5332 WRF-ARW Tutorial](https://reader037.fdocuments.us/reader037/viewer/2022102707/56813adb550346895da32500/html5/thumbnails/71.jpg)
Required RIP directory
Go to directory /lustre/work/your_userID
Type “cp –r /lustre/work/bancell/RIP4 ./RIP”
- This copies the RIP directory structure to
your work directory- This is where you will run RIP(in /lustre/work/your_userID/RIP)
![Page 72: ATMO5332 WRF-ARW Tutorial](https://reader037.fdocuments.us/reader037/viewer/2022102707/56813adb550346895da32500/html5/thumbnails/72.jpg)
Required Submittal Script Directory
Go to directory /lustre/work/your_userID
Type “cp –r /home/bancell/sub_ATMO5332
./sub”
- This copies the directory structure containing
the HPCC submittal scripts to your work
directory- This is where you will submit the
scripts that run the WPS programs, real,
wrf, and RIP (in /lustre/work/your_userID/sub)
![Page 73: ATMO5332 WRF-ARW Tutorial](https://reader037.fdocuments.us/reader037/viewer/2022102707/56813adb550346895da32500/html5/thumbnails/73.jpg)
Running WPSgeogrid
Get the wps namelist and modify for your case in (make sure it’s in/lustre/work/your_userID/WPSV3.5.1)
Go to /lustre/work/your_userID/sub Modify geogrid_normal.bash for the correct
directory paths Type “qsub geogrid_normal.bash” Make sure output files geo_em.d0X are
generated in /lustre/work/your_userID/WPSV3.5.1
Check geogrid log files in the WPS directory and error_out_geogrid, submit_out_geogrid files in the sub directory if you have problems
![Page 74: ATMO5332 WRF-ARW Tutorial](https://reader037.fdocuments.us/reader037/viewer/2022102707/56813adb550346895da32500/html5/thumbnails/74.jpg)
Running WPSgeogrid – Viewing your domain
To view the domain you want to create with geogrid, use the plotgrids.ncl utility by following these steps:1) Make sure you are in /lustre/work/your_userID/WPSV3.5.12) Type “export NCARG_ROOT=/lustre/work/apps/ncarg”3) Make sure Xming is running4) Type “/lustre/work/apps/ncl/bin/ncl util/plotgrids.ncl”
After running plotgrids.ncl, a picture of your domain should pop up on your screen (as specified by your namelist.wps)
Use this utility to tinker with your domain until it looks how you want it to look, then run geogrid.exe
![Page 75: ATMO5332 WRF-ARW Tutorial](https://reader037.fdocuments.us/reader037/viewer/2022102707/56813adb550346895da32500/html5/thumbnails/75.jpg)
Running WPSungrib
Get GFS files for your case from /lustre/work/bancell/wrf_data_ATMO5332 and put them in /lustre/work/your_userID/WPSV3.5.1/data
Go to /lustre/work/your_userID/WPSV3.5.1 and then type “./link_grib.csh data/*”
- This links files to the GFS files in /data
Go to /lustre/work/your_userID/sub Modify ungrib_normal.bash for the
correct directory paths
![Page 76: ATMO5332 WRF-ARW Tutorial](https://reader037.fdocuments.us/reader037/viewer/2022102707/56813adb550346895da32500/html5/thumbnails/76.jpg)
Running WPSungrib cont’d
Type “qsub ungrib_normal.bash” Make sure all FILE:date files exist in
/lustre/work/your_userID/WPSV3.5.1, check ungrib.log file in that directory as well as submit_out_ungrib, error_out_ungrib log files in sub directory if there are problems
![Page 77: ATMO5332 WRF-ARW Tutorial](https://reader037.fdocuments.us/reader037/viewer/2022102707/56813adb550346895da32500/html5/thumbnails/77.jpg)
Running WPSmetgrid
Go to /lustre/work/your_userID/sub Modify metgrid_normal.bash for the
correct directory paths Type “qsub metgrid.bash” Make sure all met_em.d0X files exist
in /lustre/work/your_userID/WPSV3.5.1, check metgrid log file in that directory as well as submit_out_metgrid, error_out_metgrid log files in sub directory if there are problems
![Page 78: ATMO5332 WRF-ARW Tutorial](https://reader037.fdocuments.us/reader037/viewer/2022102707/56813adb550346895da32500/html5/thumbnails/78.jpg)
Running real Go to
/lustre/work/your_userID/WRFV3.5.1/run
Copy all met_em.d0X files from the WPS directory to the above WRF directory
Modify the file namelist.input for your case
Go to /lustre/work/your_userID/sub Modify real_normal.bash for the
correct directory paths Type “qsub real.bash”
![Page 79: ATMO5332 WRF-ARW Tutorial](https://reader037.fdocuments.us/reader037/viewer/2022102707/56813adb550346895da32500/html5/thumbnails/79.jpg)
Running real cont’d Make sure the files wrfinput_d0X
and wrfbdy_d01 exist in /lustre/work/your_userID/WRFV3.5.1/run, check rsl log files in that directory as well as submit_out_real, error_out_real log files in the sub directory if you have problems
![Page 80: ATMO5332 WRF-ARW Tutorial](https://reader037.fdocuments.us/reader037/viewer/2022102707/56813adb550346895da32500/html5/thumbnails/80.jpg)
Running wrf Go to /lustre/work/your_userID/sub Modify wrf_normal.bash for the
correct directory paths Type “qsub wrf_normal.bash” Make sure the file
wrfout_d0X.date.nc exists in /lustre/work/your_userID/WRFV3.5.1/run, check rsl log files in that directory as well as submit_out_wrf, error_out_wrf log files in the sub directory if you have problems
Make sure your run finished by looking at the end of the rsl.out.0000 file in the WRF directory
![Page 81: ATMO5332 WRF-ARW Tutorial](https://reader037.fdocuments.us/reader037/viewer/2022102707/56813adb550346895da32500/html5/thumbnails/81.jpg)
Running RIP RIP will be run on the command line Go to /lustre/work/your_userID/RIP Copy the wrfout files from the wrf run
to the above directory Type “./ripdp_wrfarw data/wrftemp all
wrfout*” – this runs ripdp_wrfarw and prepares data for rip
Modify /lustre/work/your_userID/RIP/slp2.in for your desired plot, rename file sfct.in
![Page 82: ATMO5332 WRF-ARW Tutorial](https://reader037.fdocuments.us/reader037/viewer/2022102707/56813adb550346895da32500/html5/thumbnails/82.jpg)
Running RIP cont’d rip needs 2 environmental variables
to be set to run properly. Type the following:
1) “export RIP_ROOT=.”
2) “export NCARG_ROOT=/lustre/work/apps/ncarg” Type “./rip data/wrftemp sfct.in” –
this runs rip and produces a single .cgm file
Convert the single file sfct.cgm to gif files valid at each time by typing “./cgmtogif sfct.cgm”
You can loop through the gif images with the command “/lustre/work/apps/xanim2801/xanim *.gif”
![Page 83: ATMO5332 WRF-ARW Tutorial](https://reader037.fdocuments.us/reader037/viewer/2022102707/56813adb550346895da32500/html5/thumbnails/83.jpg)
Final WPS/WRF/RIP Notes
Clean up all files!!!! (WPS, real, wrf, RIP, and sub)
WRF-ARW V3 User’s Guide is found at:
http://www.mmm.ucar.edu/wrf/users/docs/user_guide_V3/ARWUsersGuideV3.pdf
RIP V4 User’s Guide is found at:http://www.mmm.ucar.edu/mm5/documents/ripug_V4.html
These links are also on class website
![Page 84: ATMO5332 WRF-ARW Tutorial](https://reader037.fdocuments.us/reader037/viewer/2022102707/56813adb550346895da32500/html5/thumbnails/84.jpg)
First Things First
To run WPS/WRF/RIP at HPCC on a shell using a PC, you need to download 3 things:
- Putty (gives you the shell, make sure to enable
X11 forwarding at ConnectionSSHX11), use
address hrothgar.hpcc.ttu.edu- Xming (gives ability to bring up
external windows) These are both available through the
HPCC website under the “User Guides” link
- Xming Fonts
![Page 85: ATMO5332 WRF-ARW Tutorial](https://reader037.fdocuments.us/reader037/viewer/2022102707/56813adb550346895da32500/html5/thumbnails/85.jpg)
First Things First
On a Mac, no downloads needed! Just bring up a shell and ssh to hrothgar with:
ssh –X [email protected]
Note: When you login to hrothgar, you’ll be in your
home directory (/home/your_userID)
disk space limit on /home/your_userID: 150 GB
disk space limit on /lustre/work/your_userID: 750 GB