WMLGND(3NCARG)

๐Ÿ“ฆ version 6.6.2, in epel 9, fedora 43, fedora 44

๐Ÿ’– 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:

  1. 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. โœ…
  2. 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. ๐Ÿ”„
  3. 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: IROWS and ICOLS are significant only when NTYPE=1. so for legends 2 and 3 they're just vibing in the background, doing nothing, living their truth. choices for IROWS x ICOLS are: 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: IROWS and ICOLS are significant only when NTYPE=1. choices for IROWS x ICOLS are: 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 (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