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):

 character 0 = iR - the precipitation data indicator character 1 = iX - weather data and station type indicator character 2 = h - height above ground of base of lowest cloud characters 3-4 = VV - visibility in miles and fractions character 5 = N - total amount of cloud cover characters 6-7 = dd - direction from which wind is blowing characters 8-9 = ff - wind speed in knots
If character 10 = "1", then
 character 11 = sn - sign of temperature characters 12-14 = TTT - current air temperature
If character 15 = "2", then
 character 16 = sn - sign of temperature characters 17-19 = Td - dew point
If character 20 = "3", then
 characters 21-24 = PO - station pressure (not plotted)
If character 25 = "4", then
 characters 26-29 = PPPP - pressure reduced to sea level
If character 30 = "5", then
 character 31 = a - characteristic of barograph characters 32-34 = ppp - pressure change, last 3 hrs.
If character 35 = "6", then
 characters 36-38 = RRR - precipitation character 39 = tR - time duration of precipitation
If character 40 = "7", then
 characters 41-42 = ww - present weather character 43 = W1 - most significant past weather character 44 = W2 - 2nd most sig. past weather
If character 45 = "8", then
 character 46 = Nh - Fraction of sky cover character 47 = CL - cloud type, low clouds character 48 = CM - cloud type, medium clouds character 49 = CH - cloud type, high clouds

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.