PyNGL Home > Functions > Graphics routines

Ngl.wmstnm

Draws station model data.

Available in version 1.3.0 or later.

Prototype

Ngl.wmstnm(wks, x, y, imdat)

Arguments

wks

The identifier returned from calling Ngl.open_wks.

x, y

Scalars, one-dimensional NumPy arrays or Python lists specifying the coordinate positions for plotting the station model data. When plotting station model data over a map these coordinates should specify latitude and longitude values in degrees (in that order in the argument list). Also, when plotting station model data over a map the Ngl.wmstnm procedure must be made aware of that by making the call:

    Ngl.wmsetp("ezf",1)

imdat

A string (or array) of 50 characters encoded as per the WMO/NOAA guidelines. If an array, it must have the same shape as the x and y arrays. In more detail (where the characters are numbered from left to right, starting at character number 0):

If character 10 = "1", then If character 15 = "2", then If character 20 = "3", then If character 25 = "4", then If character 30 = "5", then If character 35 = "6", then If character 40 = "7", then If character 45 = "8", then

Return value

   None

Description

The appearance of the wind barbs that are part of the station model data is controlled by the parameters that control wind barbs. See the procedure Ngl.wmbarb for details. The procedure Ngl.wmsetp is used to set parameter values, and the function Ngl.wmgetp is used to retrieve parameter values.

It is frequently the case that station model data are drawn over a world map. See Ngl.wmbarbmap and the examples listed below in the examples section.

In addition to the wind barb parameters, the parameters WBC and WBL apply to the station model display. WBC specifies the diameter of the sky cover circle at the base of the wind barb and WBL specifies the size of the text labels in the station model display.

The procedure Ngl.wmstnm does not call Ngl.frame.

See Also

Ngl.wmbarb, Ngl.wmbarbmap, Ngl.wmgetp, Ngl.wmsetp

special resources: nglDraw, nglFrame, nglMaximize, nglScale

Examples

See:
wmstnm01.py (and its output).
wmstnm02.py (and its output).
wmstnm03.py (and its output).