Description

The PME-WRF Image Viewer displays images generated from the running of each model cycle.  The display is organized by plot type (surface, upper air, maps) where the fields menu displays images from that plot type.  Images are also broken out by domain and by valid hour:  images from previous model runs get over-written so that one is viewing an image from the latest model run at any given time (the label on the image tells from which cycle it came).

The PME-WRF Cycles shows the same images, this time organized by the cycle that generated them - clicking on a cycle will display images from that cycle only.

The PME-WRF Soundings Viewer displays soundings generated from the running of each model cycle.  These are given by station and grouped by domain what produced the sounding.  These images are showing the one from the latest available model run.

Scripts

These web links run a perl script wrapper around javascript that display images.  The perl script reads image directories in order to get current available cycles, and reads a javascript array to define available menu items.  The javascript passes values to an animation script to march through cycle times for a given image.

The web link for the Image Viewer runs the script /d2/www/cgi-bin/model/ugui, which displays images in /d2/www/htdocs/projects/GWPME/web/gifs as defined by /d2/www/htdocs/projects/GWPME/js_file and passes values to /d2/www/htdocs/projects/anim.html to animate the images in a movie loop.

The web link for Cycles runs the script /d2/www/cgi-bin/model/list_ugui_dirs, which lists contents from /d2/www/htdocs/projects/GWPME/web/cycles to call the same script as used for the Image Viewer (using the same js_file and animation script) to display the contents of /d2/www/htdocs/projects/GWPME/web/cycle/<cycle>/gifs

The web link for the Soundings Viewer runs the script /d2/www/cgi-bin/model/ugui.sndg, which displays sounding images found in /d2/www/htdocs/projects/GWPME/web/gifs as defined by /d2/www/htdocs/projects/sng_file and passes values to /d2/www/htdocs/projects/anim.html to animate the images in a movie loop.

These images are generated as part of the WRF model runs (see below section on how to modify them).  They are removed after 10 days by user pmefdda running in cron /home/pmefdda/bin/scrub_master.sh

Modifying the images

The model images are made by the Read/Interpolate/Plot (RIP) program (documentation here).  RIP reads input files that define each plot (using keywords that are defined in the documentation).  The RIP input files for the WRF model are located in /d1/pmefdda/GMODJOBS/GWPME/postprocs and are named Mdomain<domain>.<season>.GRM - one file per domain per summer/winter, where the difference between domains are the increasing of detail in inner domains (closer contours, listing of stations) and the difference between summer and winter plots are the endpoints of color scales.  Each 'Mdomain' file starts with headers that RIP needs, then a custom color table is defined, then the individual plots are defined, roughly in order of the menu items as seen in the image viewer.   The definitions of the soundings for the Soundings VIewer are at the end of the Mdomain 2 and 3 files.

These files may be modified in order to change the output products.  To change an existing plot, read the RIP documentation and try changing things (see section under Testing Changes below).  If new plots are desired to be added, it is strongly recommended to delete an equal number of plots.  This is because the postprocessing is running a maximum capacity and additional plots may cause the model output to not finish.

Testing Changes

It is strongly recommended to test any changes outside of the operational system,  as one typo in a 'Mdomain' file may cause the entire postprocessing to fail.  To set up a test area outside of the operational area, do the following:

Once satisfied with results, adjust the operational system

Adding a sounding

Follow the steps above under 'Modifying the Images', with these added considerations: