ATMO5332 WRF-ARW Tutorial 0.01”.

Slides:



Advertisements
Similar presentations
Weather Research & Forecasting: A General Overview
Advertisements

DOS & Windows O/s Prof. Sujata Rao Less 5.
WEB DESIGN TABLES, PAGE LAYOUT AND FORMS. Page Layout Page Layout is an important part of web design Why do you think your page layout is important?
Model Evaluation Tools MET. What is MET Model Evaluation Tools ( MET )- a powerful and highly configurable verification package developed by DTC offering:
WRF Modeling System V2.0 Overview
NCAS Unified Model Introduction Part 1b: Running the UM University of Reading, 3-5 December 2014.
Getting Started: Ansoft HFSS 8.0
About Links in Dreamweaver. Creating Links A link has 2 parts: –The URL (Uniform Resource Locator)= the name and path of the file you want to link –The.
Objective Understand web-based digital media production methods, software, and hardware. Course Weight : 10%
Introducing the Command Line CMSC 121 Introduction to UNIX Much of the material in these slides was taken from Dan Hood’s CMSC 121 Lecture Notes.
This is the footer WRF Basics Weather Research and Forecasting.
T UTORIAL OF U NIX C OMMAND & SHELL SCRIPT S 5027 Professor: Dr. Shu-Ching Chen TA: Samira Pouyanfar Spring 2015.
Guide To UNIX Using Linux Third Edition
This is the footer Running WRF on HECToR Ralph Burton, NCAS (Leeds) Alan Gadian, NCAS (Leeds) With thanks to Paul Connolly, Hector.
ModelBuilder at ArcGIS 9.2 Lyna Wiggins Rutgers University May 2008.
CGI programming Using Apache. Concepts Browser prepares parameter list List is attached to name of program to run on server "submit" button sends string.
NEES Central Goran Josipovic IT Manager
Using Macs and Unix Nancy Griffeth January 6, 2014 Funding for this workshop was provided by the program “Computational Modeling and Analysis of Complex.
Chapter Seven Advanced Shell Programming. 2 Lesson A Developing a Fully Featured Program.
Advanced Shell Programming. 2 Objectives Use techniques to ensure a script is employing the correct shell Set the default shell Configure Bash login and.
1 WRF PreProcessing System (WPS) A Brief Overview WMO, Training Course, September 2011 Alanya, Turkey Dr Meral Demirtaş Turkish State Meteorological.
Unix Primer. Unix Shell The shell is a command programming language that provides an interface to the UNIX operating system. The shell is a “regular”
Lesson 7-Creating and Changing Directories. Overview Using directories to create order. Managing files in directories. Using pathnames to manage files.
WorkPlace Pro Utilities.
L. Bernardet NOAA ESRL Global Systems Division, Boulder CO University of Colorado CIRES, Boulder CO Developmental Testbed Center, Boulder, CO Sara Michelson.
Introduction to the WRF Modeling System Wei Wang NCAR/MMM.
ACL: Introduction & Tutorial
© 2011 Delmar, Cengage Learning Chapter 7 Managing a Web Server and Files.
WRF Portal (A GUI Front End For WRF) WRF Domain Wizard (A GUI Front End For WPS) Presented by Jeff Smith January 18, 2007.
WRF Domain Wizard A tool for the WRF Preprocessing System Jeff Smith Paula McCaslin July 17, 2008.
Data Presentation & Graphing Introduction to Mechanical Engineering The University of Texas-Pan American College of Science and Engineering.
A Public Release of WRF Portal Jeff Smith and Mark Govett June 24, 2008.
UNIX Commands. Why UNIX Commands Are Noninteractive Command may take input from the output of another command (filters). May be scheduled to run at specific.
WRF Domain Wizard The WRF Preprocessing System GUI Jeff S Smith Paula McCaslin and Mark Govett AMS 2008 Presentation.
The WRF Preprocessing System Michael Duda 2006 WRF-ARW Summer Tutorial.
© Crown copyright Met Office An Introduction to Linux, PP utilities, CDO and NCL Bangkok Workshop, 26 th February– 1 st March 2013.
Installing and Running the WPS Michael Duda 2006 WRF-ARW Summer Tutorial.
Chapter Two Exploring the UNIX File System and File Security.
L. Bernardet NOAA ESRL Global Systems Division, Boulder CO University of Colorado CIRES, Boulder CO Developmental Testbed Center, Boulder, CO Sara Michelson.
This document gives one example of how one might be able to “fix” a meteorological file, if one finds that there may be problems with the file. There are.
Executable scripts. So far We have made scripts echo hello #for example And called it hello.sh Run it as sh hello.sh This only works from current directory?
Lesson 3-Touring Utilities and System Features. Overview Employing fundamental utilities. Linux terminal sessions. Managing input and output. Using special.
Linux Commands C151 Multi-User Operating Systems.
8 Chapter Eight Server-side Scripts. 8 Chapter Objectives Create dynamic Web pages that retrieve and display database data using Active Server Pages Process.
Introduction to the WRF Modeling System
WRF Modelling Aim:  18 th -19 th April Cyclone taking dust SW as opposed to SE  15 th – 16 th North Scotland hit  Cyclone has moved north dragging.
___________________________________________________________________________WRF-SI ___________________________________________________Community Modeling.
NOAA's Earth System Research Lab in Boulder, CO WRF Domain Wizard A GUI for the WRF Preprocessing System WRF Portal A GUI for running WRF Presented by.
Installing and Running the WPS Michael Duda 2006 WRF-ARW Summer Tutorial.
Understanding Web-Based Digital Media Production Methods, Software, and Hardware Objective
16-1 PC-HYSPLIT WORKSHOP Workshop Agenda Introduction to HYSPLIT Introduction.ppt Model Overview Model_Overview.ppt Meteorological Data Meteorological_Data.ppt.
1 MBProject and As-builts. 2 Part I: MBProject and how it is used. Part II: What MBProject might do in the future. Also, as-built data collection and.
Hernán García CeCalcULA Universidad de los Andes.
SEE-GRID-SCI WRF-ARW model: Grid usage The SEE-GRID-SCI initiative is co-funded by the European Commission under the FP7 Research Infrastructures.
Running the WRF Preprocessing System
GRID COMPUTING.
UNIX To do work for the class, you will be using the Unix operating system. Once connected to the system, you will be presented with a login screen. Once.
Tutorial of Unix Command & shell scriptS 5027
Objective % Select and utilize tools to design and develop websites.
WRF Four-Dimensional Data Assimilation (FDDA)
Objective % Select and utilize tools to design and develop websites.
Tutorial of Unix Command & shell scriptS 5027
Tutorial of Unix Command & shell scriptS 5027
gWRF Workflow and Input Data Requirements
Tutorial of Unix Command & shell scriptS 5027
Managing a Web Server and Files
Tutorial Unix Command & Makefile CIS 5027
Using the Omega3P Eigensolver
4.00 Apply procedures to add content by using Dreamweaver. (22%)
WRF Application in COAWST
Presentation transcript:

ATMO5332 WRF-ARW Tutorial 0.01”

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)

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

Overview of WRF Modeling System Green boxes = Bare-bones run

WPS WPS performs all preprocessing of data needed for a WRF numerical integration (define domains, get initial conditions…)

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 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) geogrid 2) ungrib 3) metgrid

WPS

WPS - geogrid Geogrid has the following purposes: 1) Define simulation domain (size, location, horizontal resolution)

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)

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)

namelist.wps

namelist.wps (geogrid)

namelist.wps (geogrid) (Each column represents a different domain)

WPS - geogrid Input files needed to run geogrid: 1) Geographical data (/lustre/work/bancell/geogV351) 2) namelist.wps

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

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

WPS - geogrid

namelist.wps (geogrid) (Each column represents a different domain)

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

namelist.wps (ungrib)

namelist.wps (ungrib)

WPS - ungrib Input files needed to run ungrib: 1) External grib files 2) namelist.wps 3) A file called Vtable

WPS - ungrib Input files needed to run ungrib: 1) External grib files 2) namelist.wps 3) A file called Vtable Output from ungrib: 1) WPS format files called FILE:date 2) ungrib.log file

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

namelist.wps (metgrid)

namelist.wps (metgrid)

WPS - metgrid Input files needed to run metgrid: 1) FILE:date files from ungrib 2) geo_em.d0X.nc files from geogrid 3) namelist.wps

WPS - metgrid Input files needed to run metgrid: 1) FILE:date files from ungrib 2) geo_em.d0X.nc files from geogrid 3) 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

Final Notes on metgrid and WPS 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

WRF Initialization (real) real has the following purposes: 1) Create vertical model levels

WRF Initialization (real) real has the following purposes: 1) Create vertical model levels 2) Interpolate meteorological data to vertical model levels

WRF Initialization (real) real has the following purposes: 1) Create vertical model levels 2) Interpolate meteorological data to vertical model levels 3) Create input files for numerical integration (WRF)

real Input files needed to run real: 1) met_em.d0X.data.nc files from metgrid 2) namelist.input (parameter file for real and wrf)

real Input files needed to run real: 1) met_em.d0X.data.nc files from metgrid 2) 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)

namelist.input real runs using parameters from the text file namelist.input, which has the following basic sections: 1) time_control 2) domains 3) physics 4) dynamics 5) bdy_control

namelist.input Much More

namelist.input – time_control

namelist.input – domains

namelist.input – physics

namelist.input – dynamics

namelist.input – bdy_control

WRF Numerical Integration (wrf) wrf has the following purpose: 1) Numerically approximate the solutions to the model equations to produce a forecast!!!! Finally!!!!

wrf Input files needed to run wrf: 1) wrfinput_d01 (and wrfinput_d0X for nests), wrfbdy_d01 files from real 2) namelist.input (parameter file for real and wrf)

wrf Input files needed to run wrf: 1) wrfinput_d01 (and wrfinput_d0X for nests), wrfbdy_d01 files from real 2) 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)

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

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

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

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

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

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…

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

Nestdown (ndown) ndown has the following purpose: 1) Supply the initial and boundary conditions for a nest

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)

ndown Output from ndown: 1) wrfinput_d02, wrfbdy_d02 2) Log files (rsl.out.XXXX, rsl.error.XXXX)

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

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 preparation 2) rip - plotting

ripdp_wrfarw ripdp_wrfarw is run on the command line with 3 arguments: ripdp_wrfarw data/wrftemp all wrfout_file ripdp_wrfarw execute command 3) wrfout file from program WRF 1) Location where intermediate RIP data will go from ripdp_wrfarw 2) Tells ripdp_wrfarw to process all variables

rip rip is run on the command line using 2 arguments: rip data/wrftemp sfct.in rip execute command 2) rip input file that tells rip what to plot 1) Temporary data name and location from ripdp_wrfarw

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

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 section 2) Color table 3) Plot specification table

slp2.in Much More

User Input Section

Color Table Much More

Plot Specification Table

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

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

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

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)

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)

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)

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)

Running WPS geogrid 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

geogrid – Viewing your domain Running WPS geogrid – 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.1 2) Type “export NCARG_ROOT=/lustre/work/apps/ncarg” 3) Make sure Xming is running 4) 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

Running WPS ungrib 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

Running WPS ungrib 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

Running WPS Type “qsub metgrid.bash” 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

Running real Type “qsub real.bash” 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”

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

Running wrf Type “qsub wrf_normal.bash” 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

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

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”

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

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 ConnectionSSHX11), 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

First Things First On a Mac, no downloads needed! Just bring up a shell and ssh to hrothgar with: ssh –X your_userID@hrothgar.hpcc.ttu.edu 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