ncl_wmdrrg - Man Page

plots weather map regions (indicating "snow", "rain", etc.), or solid regions indicating temperature zones.

Synopsis

CALL WMDRRG(N,X,Y,ITYPE,NC,XC,YC)

C-Binding Synopsis

#include <ncarg/gks.h>

void c_wmdrrg(int n, float *x, float *y, char *itype, int nc, float *xc, float *yc)

Description

N

(Integer, Input) - The number of points supplied in the second and  third arguments.

X

(Real, Input) - The X coordinates  (specified in world coordinates) of  N points that specify the control points of a spline curve that will be fitted to represent the requested region.

Y

(Real, Input) - The Y coordinates  (specified in world coordinates) of  N points that specify the control points of a spline curve that will be fitted to represent the requested region.

ITYPE

(Character, Input) - Indicates the weather type to fill the region with, or a solid color.

ITYPE can be one of:

'T' for thunderstorms

'SH' for showers

'R' for rain

'F' for flurries

'SN' for snow

'I' for ice

'INDEXnn' where the number "nn" denotes a color index for a solid fill.

NC

(Integer, input) - If NC is greater than 2, then the region resulting from  the spline fit to ((X(I),Y(I)),I=1,N) will be clipped against the region in  ((XC(I),YC(I)),I=1,NC). If no clipping is to be done, then set NC equal to 1.

XC

(Real, Input) - The X coordinates  (specified in world coordinates) of NC points that specify a clipping polygon for the region resulting from the spline fit to ((X(I),Y(I)),I=1,N), if NC is greater than 2.

YC

(Real, Input) - The Y coordinates  (specified in world coordinates) of NC points that specify a clipping polygon for the region resulting from the spline fit to ((X(I),Y(I)),I=1,N), if NC is greater than 2.

Usage

Set the values for the appropriate internal parameters before calling WMDRRG to produce the desired region. The internal parameters that control the appearance of regions are: COL and RHT.  As mentioned above,  the points specified in the X and Y arrays serve as control points for a spline curve that is fitted to the input polygon.  X(N) should equal X(1) and Y(N) should equal Y(1).

Access

To use WMDRRG or c_wmdrrg, load the NCAR Graphics libraries ncarg, ncarg_gks,  and ncarg_c, preferably in that order.  

See Also

Online:  wmap, wmdflt, wmgetc, wmgeti, wmgetr, wmsetc, wmseti, wmsetr, wmap_params

Hardcopy:  WMAP - A Package for Producing Daily Weather Maps and Plotting Station  Model Data

Info

January 1995 UNIX NCAR GRAPHICS