Run WRF(NMM)

less than 1 minute read

Published:

For NMM, I only tried the official test data.

run geogrid.exe

My working directory:

export WKDIR=/home/chchoi/domains/boston/
ln -sf ~/WPS/*.exe -t $WKDIR/wpsprd
ln -sf ~/WPS/link_grib.csh
cp ~/WPS/namelist.wps $WKDIR/wpsprd
cp ~/WPS/geogrid/GEOGRID.TBL.NMM ~/WPS/geogrid/GEOGRID.TBL
cp ~/WPS/metgrid/METGRID.TBL.NMM ~/WPS/metgrid/METGRID.TBL

vim namelist.wps with geogrid and metgrid parts respectively.

opt_geogrid_tbl_path = '/home/chchoi/WPS/geogrid/'
opt_metgrid_tbl_path = '/home/chchoi/WPS/metgrid/'

Remark: METGRIDTBL is for running metgrid.exe section

Run geogrid.exe

./geogrid.exe

or

mpirun -np 4 geogrid.exe

output

geo_em.d01.nc, geo_em.d02.nc

Run ungrib.exe

Locations:

The locations I put NAM files is ~/NAM and I installed WPS at ~/WPS. Just revised for your own location.

link NAM grib files and ungrib Vtable (for nmm) to $WRKDIR. Then run ungrib.exe

./link_grib.csh ~/NAM/20050123_i00_f0
 ln -sf ~/WPS/ungrib/Variable_Tables/Vtable.NAM Vtable
./ungrib.exe >& ungrib.log

Output:

geo_em.d01.nc, geo_em.d02.nc

Run metgrid.exe

 cp ~/WPS/metgrid/METGRID.TBL.NMM ~/WPS/metgrid/METGRID.TBL
 ./metgrid.exe

Output:

met_em.d01.2017-05-21_00:00:00.nc