HWRF Online Tutorial V3.9a | Visualization > Plot UPP Output

Visualizing HWRF output

Visualize the Post-processed model forecast with GrADS scripts

The GrADS scripts are provided as an example to show the HWRF model output. However, the user is free to use any language of their choice. Some of the products are not available when a 12 h run is conducted. So, the 126 h canned data available on /glade/p/ral/jnt/HWRF/datasets_v3.9a/126h-full-output/ will be used to display the outputs.

Plotting Cross Sections on D03 domain

Create a workspace to plot the post-processed output.

mkdir -p /glade/scratch/${USER}/HWRF_v3.9a/plots
cd /glade/scratch/${USER}/HWRF_v3.9a/plots

Link the output grib file

ln -fs /glade/p/ral/jnt/HWRF/datasets_v3.9a/126h-full-output/com/2016100400/14L/matthew14l.2016100400.hwrfprs.core.0p02.f012.grb2 ./

Use g2ctl utility to make GrADS control file.

/glade/p/ral/jnt/HWRF/datasets_v3.9a/scripts/g2ctl.pl matthew14l.2016100400.hwrfprs.core.0p02.f012.grb2 > matthew14l.2016100400.hwrfprs.core.0p02.f012.grb2.ctl

Use gribmap to map between the GRIB data and the GrADS control file.

gribmap -i matthew14l.2016100400.hwrfprs.core.0p02.f012.grb2.ctl

A index file is created

ls matthew14l.2016100400.hwrfprs.core.0p02.f012.grb2.idx

Copy the GrADS script

cp /glade/p/ral/jnt/HWRF/datasets_v3.9a/scripts/ew_cs_core.gs ./

Open GrADS by typing grads.

If prompted, type y for landscape mode.

To execute the script type ew_cs_core.gs in the GrADS command prompt

Exit the GrADS program by typing quit.

Check for the image file

ls ew_cs_core.png

To display the image output type:

display ew_cs_core.png

Plotting precipitation and 10 m wind swath around the forecasted track

Go the directory where you want to make the plots

cd /glade/scratch/${USER}/HWRF_v3.9a/plots

Copy the relevant swath output and GrADS control file (default output from a 126 h HWRF run)

cp /glade/p/ral/jnt/HWRF/datasets_v3.9a/126h-full-output/com/2016100400/14L/*swath* ./

Copy the GrADS script

cp /glade/p/ral/jnt/HWRF/datasets_v3.9a/scripts/swath.gs ./

Open GrADS by typing grads.

If prompted, type y for landscape mode.

To execute the script type swath.gs in the GrADS command prompt

Exit the GrADS program by typing quit.

Check for the image file

ls swath.png

To display the image output type:

display swath.png