Plotting WRF Model output with GMT (Generic Mapping Tools)

From assela Pathirana
Revision as of 13:07, 22 October 2007 by Root (talk | contribs)
Jump to navigationJump to search

In the real-time weather forecast page for Sri Lanka, I plot WRF model output using GMT (Generic Mapping Tools) rather than standard plotters provided by the model developers. Following is the method to do it.

Dependencies

Need the following programs installed
  1. NetCDF [1]]
  2. GMT version >= 4.0 [2]
  3. gifsicle program for making GIF animations. [3]
  4. Portland group FORTRAN compiler (for Linux) or any other suitable FORTRAN compiler.

Download

File:WrfGMTplot.tar.gz

Usage

  1. Compile the FORTRAN program ./pltprogs/read_wrf_nc.f to produce the executable read_wrf_nc
  2. Edit the file ./pltprogs/CONSTANTS.bash to reflect the paths in your computer. (Only GMT, convert and gifs entries need changing). Further change wrfntimes to indicate how many snapshots of output from the start of the model, needs processing. This should be less or equal to total number of output snapshots. ( This is (Forecast length)/(output time step))
  3. Go to the directory where wrfplot.bash. Copy or link the wrf output file to this place.
  4. Execute the following command
    ./wrfplot.bash

Upon successful execution the png format images and datasets used to plot them will be available in the folder ./output.