WMLGND(3NCARG)
๐ WMLGND โ bestie edition ๐
okay so real talk: this is the NCAR GRAPHICS page for WMLGND, and its whole entire job is plotting weather map legends. that's it. that's the girl. she's the legend-drawer. periodt. ๐
โจ NAME โจ
WMLGND โ plots weather map legends. yes literally just that. she draws the little key so everyone knows what the squiggly lines mean. iconic behavior. ๐
๐ SYNOPSIS ๐
CALL WMLGND (X,Y,NTYPE,IROWS,ICOLS)
๐ฆ C-BINDING SYNOPSIS ๐ฆ
#include <ncarg/gks.h>
void c_wmlgnd(float x, float y, int ntype, int irows, int icols)
๐ DESCRIPTION ๐
okay so here's the whole cast of characters, no skips, we're going through ALL of them:
Xโ (Real, Input) โ an X coordinate, and bestie it's specified in world coordinates, of a point that says where the legend gets plotted. it's giving "pin the legend on the map". ๐Yโ (Real, Input) โ a Y coordinate, also in world coordinates, of a point that says where the legend gets plotted. X and Y are a duo, they don't do anything without each other fr fr. ๐NTYPEโ (Integer, Input) โ a character variable that indicates the desired kind of legend. yes, the manpage says "character variable" for an integer, we don't make the rules, we just report them. ๐
Legal values for NTYPE are:
- plot the legend for the weather types. there are six weather types: showers; T-storms; rain; flurries; snow; ice. and listen, the
(X,Y)coordinate for this type specifies the lower left corner of the legend. so you're anchoring the bottom-left, not the middle, not the top, the lower left. got it? got it. โ - plot the legend for the front types. there are three front types labeled: cold; warm; stationary. and the
(X,Y)coordinate for this legend specifies the lower right corner of the legend. different corner, don't get it twisted. ๐ - plot the explanatory legend. the
(X,Y)coordinate for this legend specifies the bottom center of the legend. bottom center, bestie, she's centered. ๐ซ
IROWSโ (Integer, Input) โ an integer variable specifying how many rows there will be in displaying the weather types. and heads up:IROWSandICOLSare significant only whenNTYPE=1. so for legends 2 and 3 they're just vibing in the background, doing nothing, living their truth. choices forIROWSxICOLSare: 1x6, 2x3, 3x2, and 6x1. those four. no others. ๐ICOLSโ (Integer, Input) โ an integer variable specifying how many columns there will be in displaying the weather types. same deal:IROWSandICOLSare significant only whenNTYPE=1. choices forIROWSxICOLSare: 1x6, 2x3, 3x2, and 6x1. and like, notice how every single one of those multiplies out to six? because there are six weather types? yeah. the math is mathing. ๐งฎ
๐ฅ USAGE ๐ฅ
the only internal parameter that controls the appearance of a legend is COL, which specifies its color. that's it. one parameter. one. she's low-maintenance, we love a simple queen. ๐จ
๐ธ ACCESS ๐ธ
to use WMLGND or c_wmlgnd, load the NCAR Graphics libraries ncarg, ncarg_gks, and ncarg_c โ and preferably in that order, okay? that order. the order matters. don't be chaotic about it. ๐ซถ
๐ 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
go read those too, iykyk. the whole friend group is worth knowing. ๐
๐ COPYRIGHT ๐
Copyright (C) 1987-2009
University Corporation for Atmospheric Research
The use of this Software is governed by a License Agreement.
โจ and that's the whole page bestie, every last detail preserved, not one option dropped, not one number fudged. we ate and left no crumbs. ๐
signing off from the UNIX manual, dated January 1995, page WMLGND(3NCARG) โ she's been slaying since '95 and she's still slaying now. mwah. ๐๐๐ฆโจ
๐ฆ where this page comes from
- epel 9: ncl-devel 6.6.2-59.el9 ยท LicenseRef-Callaway-BSD
- fedora 43: ncl-devel 6.6.2-58.fc43 ยท LicenseRef-Callaway-BSD
- fedora 44: ncl-devel 6.6.2-62.fc44 ยท LicenseRef-Callaway-BSD
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms