NCL Home > Documentation > Functions > WRF, Graphics routines

wrf_map

Creates a map background for ARW WRF model data.

Available in version 4.3.1 or later.

Prototype

load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/wrf/WRFUserARW.ncl"

	function wrf_map (
		wks      : graphic,  
		nc_file  : file,     
		res      : logical   
	)

	return_val [1] :  graphic

Arguments

wks

An NCL Workstation identifier. The identifier is one returned either from calling gsn_open_wks or calling create to create a Workstation object.

nc_file

Input netCDF file name.

res

A variable containing an optional list of plot resources, attached as attributes.

Return value

A scalar id of the map created is returned.

Description

This function creates a map background for any ARW WRF projection.

wrf_map is part of a library of functions and procedures in WRFUserARW.ncl written to help users plot ARW WRF model data.

WRF-related questions should be sent to wrfhelp@ucar.edu.

See Also

wrf_map_overlays, wrf_contour, wrf_vector

Examples

Example 1

  load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
  load "$NCARG_ROOT/lib/ncarg/nclscripts/wrf/WRFUserARW.ncl"

  a = addfile("wrfout_d01_2000-01-24_12:00:00.nc","r")

  wks = gsn_open_wks("x11","test")

  map = wrf_map(wks,a,True)
You can see some other example scripts and their resultant images at:
http://www.mmm.ucar.edu/wrf/OnLineTutorial/Graphics/NCL/