0% found this document useful (0 votes)
47 views16 pages

#6 PracticalNWP1

The document provides instructions for a group assignment involving practical exercises using the Weather Research and Forecasting (WRF) model. It lists a series of exercises to be completed over several weeks, including installing WRF and its preprocessing tools, configuring and running the model, and post-processing outputs. Students are instructed to document each exercise in a report and submit all reports together in one file per class at the end of the course.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
47 views16 pages

#6 PracticalNWP1

The document provides instructions for a group assignment involving practical exercises using the Weather Research and Forecasting (WRF) model. It lists a series of exercises to be completed over several weeks, including installing WRF and its preprocessing tools, configuring and running the model, and post-processing outputs. Students are instructed to document each exercise in a report and submit all reports together in one file per class at the end of the course.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 16

Practical Group-Class Assignment!!!

Start from now on ~


Every practical activity has to be documented as a REPORT!
Exercise This is a list of exercise we gonna do:
❑ Installing Linux OS and WRF Libraries → Week #5
❑ Installing WRF Model (WPS + WRF Model + ARWPost )
→ Week #6
❑ Translating and understanding WRF running operation
(namelist.wps + namelist.input) → Week #7
❑ Downloading GCM/WRF Model Input and
list/understanding every single parameter in GCM →
Week #9
It’s up to you how gonna decide ❑ WPS Running (Manual and using WRFDomainWizard)
the task among groups → Week #10
In the end of course meeting → T ❑ Displaying domain and WRF Running → Week #11
HE FULL MODULE HAS TO BE ❑ Translating and understanding ARWPost manual +
HANDED → ONE FILE PER CL Running ARWPost → Week #12
ASS
Practical Exercise
DOWNLOAD WRF SOURCE CODE
❑ Go to www2.mmm.ucar.edu/wrf/users/download/g
et_sources.html#WRF-ARW
❑ Download with wget command
❑ Download WRF and WPS Version 3.9.1 and ARW
Post for the latest one
❑ Gunzip and untar the .gz file with tar command →
tar –xzvf file.gz
❑ Go to WRFV3 directory for next step
Practical Exercise
DOWNLOAD WRF SOURCE CODE
Practical Exercise
CONFIGURING WRF
❑ Type ./configure
❑ You will find two type of configure
1. Choices for LINUX operated machine as shown below:

……
Choose for gfortran + dmpar
Practical Exercise
CONFIGURING WRF
2. Choices for nesting area as shown below:

Default is 0 → serial/smpar, 1 → dmpar

NOTE:
SMPAR → Shared Memory Parallelism
DMPAR → Distributed Memory Parallelism
Practical Exercise
COMPILING WRF
Type the following command:
./compile test_case >& name_file.log &

where test_case option as shown below:


Practical Exercise
COMPILING WRF
What is the criteria of successful compilation?

There will be at least 4 executable files


❑ real.exe → for initializing real data cases
❑ wrf.exe → model integration / calculation
❑ ndown.exe → for one-way nesting
❑ tc.exe → for tropical cyclone
❑ nup.exe (optional) → not used much as those me
ntioned above

These files will be linked to both directories test/em_real


and run
Practical Exercise
CLEAN COMPILATION
Type the:
❑ ./clean → remove all objects except in the external
❑ ./clean –a → remove all built files include the configure.
wrf files

./clean –a is recommended if
❑ Compilation failed
❑ Registry changed (e.g. on/off the variables in history file)
❑ Re-compile to change the different dynamic core (e.g. ch
ange the part of paramaterization)
❑ Change the configuration file
❑ Change to or from the chemistry option
Practical Exercise
DOWNLOAD WPS SOURCE CODE
❑ Download static terrestrial data → data geog (it’s already the
re) just link it when start running
❑ Why?
❑ Save the memory → large size

❑ Download source code (already done through WRF downloa


ding) → just need to gunzip and untar it!
❑ For simplicity → please install WPS in the same location/
same level as WRFV3!

❑ Configure and compile WPS

NOTE:
A successful WRF compilation is required to this step!
Practical Exercise
DOWNLOAD WPS SOURCE CODE
Practical Exercise
CONFIGURING & COMPILING WPS
❑ Type ./configure command
❑ Successful → configure.wps appears, this file contains compiler choices,
rules, etc. → used as in WRF

❑ Type ./compile >& name_file.log


❑ The success of compilation will give you at least the three files:
❑ geogrid.exe → define size/location of the selected domain(s)
❑ ungrib.exe → extract the meteorological fields from GRIB file
❑ metgrid.exe → interpolating the meteorological fields horizontally
(from ungrib process) to simulate the grid (from geogrid step) → th
e combination of those earlier step to provide ‘a ready’ file for initiali
zing real data case
Practical Exercise
CONFIGURING & COMPILING WPS
If the compilation MORE SUCCESS you will find these follo
wing executable files → can be found in util directory
❑ avg_tsfc.exe
❑ g1print.exe
❑ g2print.exe
❑ mod_levs.exe
❑ rd_intermediate.exe
❑ calc_ecmwf_p.exe

If the NCL (NCAR Graphic Libraries) are installed → the


se below files also will be there:
❑ plotgrids.exe
❑ plotfmt.exe
Practical Exercise
DOWNLOAD ARWPost SOURCE CODE (OPTIONAL)
❑ Go to http://www2.mmm.ucar.edu/wrf/users/d
ownload/get_sources.html#post_processing
❑ Download with wget command
❑ Gunzip and untar the .gz file with tar comman
d → tar –xzvf file.gz
❑ Go to ARWPost directory for next step
Practical Exercise
DOWNLOAD WRF SOURCE CODE
Practical Exercise
CONFIGURING & COMPILING ARWPost (OPTIONAL)
❑ Type ./configure command → used the same compiler as two steps before

❑ Go to src directory and edit the Makefile file → change the line which co
ntain this information with :
ARWpost.exe: $(OBJS)
$(FC) $(FFLAGS) $(LDFLAGS) –o $@ $(OBJS) \
-L$(NETCDF)/lib –lnetcdf –lnetcdff –I$(NETCDF)/include -lnetcdf

❑ Open the configure.arwp and edit the line which contain:


❑ CFLAGS → change -m64 to –fPIC
❑ CPP→ remove the –c from the line

❑ Type ./compile >& name_file.log

You might also like