Installing WPS and WRF Michael Duda1 and Wei Wang1

Slides:



Advertisements
Similar presentations
ITK-Overview Insight Software Consortium. What is ITK Image Processing Segmentation Registration No Graphical User Interface (GUI) No Visualization.
Advertisements

Weather Research & Forecasting: A General Overview
ATMO5332 WRF-ARW Tutorial 0.01”.
WRF Modeling System V2.0 Overview
High-Resolution Land Use Data in WPS/WRF for Urban Regions
National Landcover Database (2006)
LINUX-WINDOWS INTERACTION. One software allowing interaction between Linux and Windows is WINE. Wine allows Linux users to load Windows programs while.
This is the footer WRF Basics Weather Research and Forecasting.
This is the footer Running WRF on HECToR Ralph Burton, NCAS (Leeds) Alan Gadian, NCAS (Leeds) With thanks to Paul Connolly, Hector.
Atmospheric modeling: A technical and practical approach
Julie McEnery1 Installing the ScienceTools The release manager automatically compiles each release of the Science Tools, it creates a set of wrapper scripts.
How to set up and run WRF model. Outline n How to download and compile the WRF code? n Namelist n Input and output files.
Mesoscale & Microscale Meteorological Division / NCAR How to Set Up and Run WRF (real.exe & wrf.exe)? Wei Wang June 29, 2004.
1 WRF PreProcessing System (WPS) A Brief Overview WMO, Training Course, September 2011 Alanya, Turkey Dr Meral Demirtaş Turkish State Meteorological.
L. Bernardet NOAA ESRL Global Systems Division, Boulder CO University of Colorado CIRES, Boulder CO Developmental Testbed Center, Boulder, CO Sara Michelson.
Donald Stark National Center for Atmospheric Research (NCAR) The Developmental Testbed Center (DTC) Wednesday 29 June, 2011 GSI Fundamentals (1): Setup.
Donald Stark National Center for Atmospheric Research (NCAR) The Developmental Testbed Center (DTC) Thursday 13 August, 2015 Downloading and Building EnKF.
Introduction to the WRF Modeling System Wei Wang NCAR/MMM.
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.
The Pipeline Processing Framework LSST Applications Meeting IPAC Feb. 19, 2008 Raymond Plante National Center for Supercomputing Applications.
DTIAtlasBuilder Adrien Kaiser Neuro Image Research and Analysis Laboratories University of North Carolina at Chapel Hill A tool to create an atlas from.
WRF Modeling System Overview
Utilizing High Resolution Topography in WRF-ARW and LAPS/STMAS with TopoGrabber Brad Beechler Presented to the LAPS Workshop Tuesday, October 26 th, 2010.
How to run RSM on imtf4 As of 2010/8/2 by Kei Yoshimura (AORI)
(1) A Beginner’s Quick Start to SIMICS. (2) Disclaimer This is a quick start document to help users get set up quickly Does not replace the user guide.
Renesas Technology America Inc. 1 SKP8CMINI Tutorial 2 Creating A New Project Using HEW.
Ch 1. A Python Q&A Session Spring Why do people use Python? Software quality Developer productivity Program portability Support libraries Component.
Running the Operational Codes for the Brahmaputra Tom Hopson.
A Public Release of WRF Portal Jeff Smith and Mark Govett June 24, 2008.
WRF Domain Wizard The WRF Preprocessing System GUI Jeff S Smith Paula McCaslin and Mark Govett AMS 2008 Presentation.
ARGONNE NATIONAL LABORATORY Climate Modeling on the Jazz Linux Cluster at ANL John Taylor Mathematics and Computer Science & Environmental Research Divisions.
The WRF Preprocessing System Michael Duda 2006 WRF-ARW Summer Tutorial.
Installing and Running the WPS Michael Duda 2006 WRF-ARW Summer Tutorial.
EIE375 BlueJ: Getting Started Dr Lawrence Cheung.
Mesoscale & Microscale Meteorological Division / NCAR WRF Modeling System Overview Jimy Dudhia.
Advanced BioPSE NCRR How to Install and Configure J. Davison de St. Germain Chief Software Engineer SCI Institute December 2003 J. Davison.
L. Bernardet NOAA ESRL Global Systems Division, Boulder CO University of Colorado CIRES, Boulder CO Developmental Testbed Center, Boulder, CO Sara Michelson.
Advanced Features of the WRF Preprocessing System
Donald Stark National Center for Atmospheric Research (NCAR) The Developmental Testbed Center (DTC) 15 January, 2014 Building the HWRF Components.
The WRF Preprocessing System: Description of General Functions
The CCSM2.0 Quick Start Guide Lawrence Buja CCSM Software Engineering Group June
Reading and Mapping Aerosol Data From a MODIS HDF4 File
Track Short Course: TrackRT Installation Thomas Herring, MIT Room A
Surya Bahadur Kathayat Outline  Ramses  Installing Ramses  Ramses Perspective (Views and Editors)  Importing/Exporting Example.
Renesas Technology America Inc. 1 SKP8CMINI Tutorial 2 Creating A New Project Using HEW.
Yannick Patois - Datagrid Software Repository Presentation - March, n° 1 Datagrid Software Repository Presentation CVS, packages and automatic.
Weather Research and Forecast implementation on Grid Computing Chaker El Amrani Department of Computer Engineering Faculty of Science and Technology, Tangier.
___________________________________________________________________________WRF-SI ___________________________________________________Community Modeling.
Open project in Microsoft Visual Studio → build program in “Release” mode.
Multiple File Compilation and linking By Bhumik Sapara.
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.
The WRF Preprocessing System
Debugging Lab Antonio Gómez-Iglesias Texas Advanced Computing Center.
Hernán García CeCalcULA Universidad de los Andes.
Tutorial for Modelsim 1 Installation Download the Modelsim Student Edition: Follow the.
Joomla Awdhesh Kumar Singsys Pte Ltd. What is Joomla? Joomla is an award-winning content management system (CMS), which enables you to build Web sites.
Regional Climate Model Version 4.1 (RegCM4.1) Centre for Oceans, Rivers, Atmosphere and Land Sciences Indian Institute of Technology Kharagpur Kharagpur.
Tips for using Java with Internet Explorer
Running the WRF Preprocessing System
Introduction to the New WRF Preprocessing System
WRFDA Regression Testing Suite
Install external command line softwares
National Scientific Library at Tbilisi State University
Practice for WPS Master’s student at UC Davis
gWRF Workflow and Input Data Requirements
Program Control Structures
Practice for Real Cases
WRF Application in COAWST
Presentation transcript:

Installing WPS and WRF Michael Duda1 and Wei Wang1 1National Center for Atmospheric Research*, NESL *NCAR is funded by the National Science Foundation

Installing Steps Check system requirements Download source codes Download datasets Compile WRFV3 first Compile WPS

Check System Requirements Required libraries NetCDF (needed by WRF and WPS) NCAR Graphics (optional but recommended – used by graphical utility programs) Optional libraries for GRIB2 met data support JasPer (JPEG 2000 “lossy” compression library) PNG (“lossless” compression library) zlib (compression library used by PNG) Optional MPI library: e.g. mpich, mpich2, openmpi

Check System Requirements Installation of these libraries is not part of the WPS and WRF installation scripts We recommend having a system administrator install the required libraries before installing WRF or WPS Make sure that these libraries are installed using the compilers available to you to compile WRF/WPS code.

Download WPS & WRF Source Codes Download WPS & WRF source codes from http://www.mmm.ucar.edu/wrf/users/downloads.html Click ‘WRF’ on the side menu, then > ‘New Users’, register and download, or > ‘Returning Users’, your email and download Get the latest released codes: WPSV3.TAR.gz WRFV3.TAR.gz

Additional Downloads Test datasets Output from WPS, real and WRF model: can be useful for testing Sample grib data for WPS (GFS/fnl) Terrain, land state datasets for geogrid Full resolution (30”, 2’, 5’, 10’ version) Lower resolution (10 minutes version) Download from the same site as the source codes.

Static Terrestrial Data The geog.tar.gz file contains the following data (~ 15 GB when uncompressed): albedo_ncep monthly surface albedo greenfrac monthly vegetation fraction maxsnowalb maximum snow albedo landuse USGS 24+1 categories, 30”, 2’, 5’ and 10’ (since V3.3, it includes ‘lake’ category) landuse MODIS 20+1 categories, 30”, new in V3.1, Noah LSM only, ‘lake’ added in V3.3

Static Terrestrial Data soiltemp annual mean deep soil temperature soiltype_top top-layer soil type, 30”, 2’, 5’, 10’ soiltype_bot bot-layer soil type, 30”, 2’, 5’, 10’ topo topography, 30”, 2’, 5’, 10’ orogwd subgrid orography informationfor gravity wave drag option, new in V3.1 islope slope index (not used) var_sso variance of subgrid-scale orography, new in V3.4

Static Terrestrial Data 5m and 10m SSiB land data. Low resolution set available (262 MB only; 10’, ~18 km, resolutions). No GWD, ‘lake’, var_sso data. (Need to download var_sso data separately or remove the entry from GEOGRID.TBL.) Since the full resolution dataset is big, it should be placed in common location so that multiple users can share

Unzip and Untar tar Files Create a working directory, and uncompress both WPS and WRF tar files: gunzip WPSV3.TAR.gz tar -xf WPSV3.TAR gunzip WRFV3.TAR.gz tar -xf WRFV3.TAR After unzip and untar, you should have these directories in your working directory: WPS/ WRFV3/

WRFV3/ Directory Makefile README README_test_cases clean compile configure Registry/ arch/ dyn_em/ dyn_exp/ external/ frame/ inc/ main/ phys/ share/ tools/ run/ test/ compile scripts data dictionary WRFV3/ Directory compile rules source code directories run directories

WPS/ Directory README clean compile configure arch/ geogrid/ ungrib/ metgrid/ util/ link_grib.csh namelist.wps namelist.wps_all-options compile, clean scripts WPS/ Directory compile rules source code directories utilities runtime opt

Before compiling.. Check where your netCDF library and include file are If it is not in the usual location, i.e. /usr/local/netcdf Use NETCDF environment variable to set the path. For C-shell environment, setenv NETCDF /where-netcdf-is

Before compiling.. Know how your netCDF library is installed. - what compiler is used As a general rule, the netCDF library needs to be installed using the same compiler as one uses to compile WRF and WPS codes e.g., gcc and gfortran compilers

Compile WRFV3 first Why? WPS makes use of the external I/O libraries in WRFV3/external directory These libraries are built when WRF is installed

How to Compile WRFV3? There are two steps: Create a configuration file for your computer and compiler ./configure Compile the code ./compile test_case

Create configuration file Step 1: type ./configure This is a script that checks the system hardware and software (mostly netCDF), and then offers a user a number of compile choices: Serial, OpenMP (smpar), MPI (dmpar), MPI+OpenMP (dm+sm) Type of nesting (no nesting, basic, preset moves, vortex following)

If using any parallel compiling option If MPI or OpenMP is used, make sure that you have the parallel libraries on the computer mpich, mpich2, openmpi, mvapich compiler support for OpenMP

Running configuration script: type of compile checking for perl5... no checking for perl... found /usr/bin/perl (perl) Will use NETCDF in dir: /usr/local/netcdf PHDF5 not set in environment. Will configure WRF for use without. configure: WRF operating system set to "Linux" via environment variable $WRF_OS configure: WRF machine set to "i686" via environment variable $WRF_MACH $JASPERLIB or $JASPERINC not found in environment, configuring to build without grib2 I/O... ------------------------------------------------------------------------ Please select from among the following supported platforms. 1. Linux i486 i586 i686, gfortran compiler with gcc (serial) 2. Linux i486 i586 i686, gfortran compiler with gcc (smpar) 3. Linux i486 i586 i686, gfortran compiler with gcc (dmpar) 4. Linux i486 i586 i686, gfortran compiler with gcc (dm+sm) 5. Linux i486 i586 i686, g95 compiler with gcc (serial) 6. Linux i486 i586 i686, g95 compiler with gcc (dmpar) 7. Linux i486 i586 i686, PGI compiler with gcc (serial) 8. Linux i486 i586 i686, PGI compiler with gcc (smpar) 9. Linux i486 i586 i686, PGI compiler with gcc (dmpar) 10. Linux i486 i586 i686, PGI compiler with gcc (dm+sm) 11. Linux x86_64 i486 i586 i686, ifort compiler with icc (serial) 12. Linux x86_64 i486 i586 i686, ifort compiler with icc (smpar) 13. Linux x86_64 i486 i586 i686, ifort compiler with icc (dmpar) 14. Linux x86_64 i486 i586 i686, ifort compiler with icc (dm+sm) Enter selection [1-16] :

Running configuration script: nesting options checking for perl5... no checking for perl... found /usr/bin/perl (perl) Will use NETCDF in dir: /usr/local/netcdf PHDF5 not set in environment. Will configure WRF for use without. configure: WRF operating system set to "Linux" via environment variable $WRF_OS configure: WRF machine set to "i686" via environment variable $WRF_MACH $JASPERLIB or $JASPERINC not found in environment, configuring to build without grib2 I/O... ------------------------------------------------------------------------ Please select from among the following supported platforms. 1. Linux i486 i586 i686, gfortran compiler with gcc (serial) 2. Linux i486 i586 i686, gfortran compiler with gcc (smpar) 3. Linux i486 i586 i686, gfortran compiler with gcc (dmpar) 4. Linux i486 i586 i686, gfortran compiler with gcc (dm+sm) 5. Linux i486 i586 i686, g95 compiler with gcc (serial) 6. Linux i486 i586 i686, g95 compiler with gcc (dmpar) 7. Linux i486 i586 i686, PGI compiler with gcc (serial) 8. Linux i486 i586 i686, PGI compiler with gcc (smpar) 9. Linux i486 i586 i686, PGI compiler with gcc (dmpar) 10. Linux i486 i586 i686, PGI compiler with gcc (dm+sm) 11. Linux x86_64 i486 i586 i686, ifort compiler with icc (serial) 12. Linux x86_64 i486 i586 i686, ifort compiler with icc (smpar) 13. Linux x86_64 i486 i586 i686, ifort compiler with icc (dmpar) 14. Linux x86_64 i486 i586 i686, ifort compiler with icc (dm+sm) Enter selection [1-16] : 9 Compile for nesting? (1=basic, 2=preset moves, 3=vortex following) [default 1]:

Create a configuration file The result of running the configure script is the generation of a file called: configure.wrf This file contains compilation options, rules etc. specific to your computer.

Sample of what is inside a configure.wrf file SFC = pgf90 SCC = gcc DM_FC = mpif90 –f90=$(SFC) DM_CC = mpicc –cc=$(SCC) RWORDSIZE = $(NATIVE_RWORDSIZE) ARCH_LOCAL = CFLAGS_LOCAL = -w –O3 FCOPTIM = -O2 -fast FCDEBUG = # -g FORMAT_FIXED = -Mfixed FORMAT_FREE = -Mfree FCSUFFIX = BYTESWAPIO = -byteswapio FCBASEOPTS_NO_G = -w $(FORMAT_FREE) $(BYTESWAPIO) $(OMP) FCBASEOPTS = $(FCBASEOPTS_NO_G) $(FCDEBUG)

How to Compile? Step 2: type (type ./compile to find out) 3d real ./compile test_case or ./compile test_case >& compile.log where test_case is one of the following: (type ./compile to find out) em_real em_quarter_ss em_b_wave em_les em_heldsuarez em_tropical_cyclone 3d real em_hill2d_x em_squall2d_x em_squall2d_y em_grav2d_x em_seabreeze2d_x em_scm_xy 2d ideal 3d ideal 1d ideal

More on Compile Compiling WRF code will take 20 - 30 min, depending on options chosen Since v3.2, parallel compile is supported if ‘make’ on your computer supports it Two processors are used in default compile. If you would like to change it, set the following environment variable before compile: setenv J “-j 1” -- change to use only one processor

Make change for your system If netCDF is not in /usr/local, you can use environment variable NETCDF to set the path to netCDF before typing ‘configure’. e.g. on a Linux with PGI-compiled netCDF: setenv NETCDF /usr/local/netcdf-pgi If you use a Linux, a number of compiler may be available (PGI, Intel, gfortran). As a general rule, make sure your netCDF and MPI libraries are installed using the same compiler you use to compile WRF.

Make change for your system One may edit configure.wrf to make changes for your system If option for your system is not available, add one to arch/configure_new.defaults Start with something close to your system from the file, and serial compile

WRF executables: names and locations If compile is successful, you should find these executables in WRFV3/main/. If you compile for a real data case: wrf.exe - model executable real.exe - real data initialization ndown.exe - one-way nesting tc.exe - for tc bogusing (serial only) If you compile an ideal case, you should have: ideal.exe - ideal case initialization - each ideal test case compile creates a different executable

WRF executables: names and locations These executables are linked to two directories: WRFV3/run and WRFV3/test/em_test_case One can go to either directory to run.

WRFV3/run directory LANDUSE.TBL RRTM_DATA RRTMG_LW_DATA RRTMG_SW_DATA SOILPARM.TBL VEGPARM.TBL URBPARM.TBL MPTABLE.TBL ... namelist.input -> ../test/test_case/namelist.input real.exe -> ../main/real.exe wrf.exe -> ../main/wrf.exe ndown.exe -> ../main/ndown.exe these files are for model physics use, and reside in this directory

WRFV3/test/em_real directory LANDUSE.TBL -> ../../run/LANDUSE.TBL RRTM_DATA -> ../../run/RRTM_DATA RRTMG_LW_DATA -> ../../run/RRTMG_LW_DATA RRTMG_SW_DATA -> ../../run/RRTMG_SW_DATA SOILPARM.TBL -> ../../run/SOILPARM.TBL VEGPARM.TBL -> ../../run/VEGPARM.TBL URBPARM.TBL -> ../../run/URBPARM.TBL MPTABLE.TBL -> ../../run/MPTABLE.TBL .... namelist.input - requires editing real.exe -> ../../main/real.exe wrf.exe -> ../../main/wrf.exe ndown.exe -> ../../main/ndown.exe

How to Compile WPS? Once WRFV3 is compiled, change directory to WPS to compile WPS There are two steps here, too: Create a configuration file for your computer ./configure Compile the code ./compile

Create configuration file Step 1: type ./configure This is a script that checks the system hardware and software (mostly netCDF), and then offers a user a number of compiler and compile choices: Select a compiler (e.g. PGI, Intel, gfortran) Select serial, or MPI/dmpar compile (serial usually sufficient), and whether to compile GRIB 2 (which requires additional external libraries: zlib, jasper and png)

Running configuration script: Will use NETCDF in dir: /usr/local/netcdf-pgi $JASPERLIB or $JASPERINC not found in environment. Using /usr/local for library paths... ------------------------------------------------------------------------ Please select from among the following supported platforms. 1. Linux i486 i586 i686, PGI compiler (serial) 2. Linux i486 i586 i686, PGI compiler (serial_NO_GRIB2) 3. Linux i486 i586 i686, PGI compiler (dmpar) 4. Linux i486 i586 i686, PGI compiler (dmpar_NO_GRIB2) 5. Linux i486 i586 i686, Intel compiler (serial) 6. Linux i486 i586 i686, Intel compiler (serial_NO_GRIB2) 7. Linux i486 i586 i686, Intel compiler (dmpar) 8. Linux i486 i586 i686, Intel compiler (dmpar_NO_GRIB2) 9. Linux i486 i586 i686, g95 (serial) 10. Linux i486 i586 i686, g95 (serial_NO_GRIB2) 11. Linux i486 i586 i686, g95 (dmpar) 12. Linux i486 i586 i686, g95 (dmpar_NO_GRIB2) 13. Linux i486 i586 i686, gfortran (serial) 14. Linux i486 i586 i686, gfortran (serial_NO_GRIB2) 15. Linux i486 i586 i686, gfortran (dmpar) 16. Linux i486 i586 i686, gfortran (dmpar_NO_GRIB2) Enter selection [1-16] :

Creating a configuration file The result of running the configure script is the generation of a file called: configure.wps This file contains compilation options, rules etc. specific to your computer. One may compile WRF model with MPI, but compile WPS using serial option unless one is using very large domains.

How to Compile? Step 2: type ./compile or ./compile >& compile.log & (recommended) (it doesn’t take very long to compile WPS)

WPS executables If compile is successful, you should find these executables created in WPS/ directory (and they are linked, respectively, to the their source code directories), geogrid.exe -> geogrid/src/geogrid.exe ungrib.exe -> ungrib/src/ungrib.exe metgrid.exe -> metgrid/src/metgrid.exe

WPS utility executables If compile is successful, you should also find these executables in WPS/util directory, util/plotgrids.exe - plot a domain map util/g1print.exe - print grib 1 data util/g2print.exe - print grib 2 data util/rd_intermediate.exe - print data information from ungrib output util/plotfmt.exe - plot intermediate file Note plotgrids.exe and plotfmt.exe build require NCAR Graphics If plotgrids.exe cannot be compiled, simply use plotgrids.ncl instead!

WPS utility executables More utilities in WPS/util directory, util/avg_tsfc.exe - compute average surface temp to use as substrate temp for 5-layer soil model option or skin temp if it is not available util/mod_levs.exe - remove pressure levels from intermediate files util/calc_ecmwf_p.exe - calculate height, pressure and RH for ECWMF model-level data

Common Problems with Installation Executables do not exist Check the location of netCDF library See if netCDF is installed with the same compiler that you use to compile WRF/WPS Try simple compile option first

Questions?