25.12.2012 Views

WRF ARW User's Guide - MMM - UCAR

WRF ARW User's Guide - MMM - UCAR

WRF ARW User's Guide - MMM - UCAR

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

POST-PROCESSING<br />

; Plotting options for T<br />

opts = res ; Add basic resources<br />

opts@cnFillOn = True ; Shaded plot<br />

opts@ContourParameters = (/ -20., 90., 5./) ; Contour intervals<br />

opts@gsnSpreadColorEnd = -3<br />

contour_tc = wrf_contour(a,wks,tf2,opts) ; Create plot<br />

delete(opts)<br />

; Plotting options for SLP<br />

opts = res ; Add basic resources<br />

opts@cnLineColor = "Blue" ; Set line color<br />

opts@cnHighLabelsOn = True ; Set labels<br />

opts@cnLowLabelsOn = True<br />

opts@ContourParameters = (/ 900.,1100.,4./) ; Contour intervals<br />

contour_psl = wrf_contour(a,wks,slp,opts) ; Create plot<br />

delete(opts)<br />

; Plotting options for Wind Vectors<br />

opts = res ; Add basic resources<br />

opts@FieldTitle = "Winds" ; Overwrite the field title<br />

opts@NumVectors = 47 ; Density of wind barbs<br />

vector = wrf_vector(a,wks,u10,v10,opts) ; Create plot<br />

delete(opts)<br />

; MAKE PLOTS<br />

plot = wrf_map_overlays(a,wks, \<br />

(/contour_tc,contour_psl,vector/),pltres,mpres)<br />

;---------------------------------------------------------------<br />

end<br />

Extra sample scripts are available at,<br />

http://www.mmm.ucar.edu/wrf/OnLineTutorial/Graphics/NCL/NCL_examples.htm<br />

Run NCL scripts<br />

1. Ensure NCL is successfully installed on your computer.<br />

2. Ensure that the environment variable NCARG_ROOT is set to the location where<br />

NCL is installed on your computer. Typically (for cshrc shell), the command will<br />

look as follows:<br />

setenv NCARG_ROOT /usr/local/ncl<br />

<strong>WRF</strong>-<strong>ARW</strong> V3: User’s <strong>Guide</strong> 9-6

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!