WMBARB(3NCARG)

✨ WMBARB ✨ (that's a 3NCARG page, bestie πŸ’–)

okay so picture this: it's the NCAR GRAPHICS manual, it's giving weather-map realness, and today's main character is WMBARB β€” the routine that plots wind barbs. yes. wind barbs. the little feathery arrows that tell you which way the wind is blowing and how hard. obsessed πŸ¦‹


🌸 NAME 🌸

WMBARB β€” plots wind barbs. that's it. that's the whole job. slay πŸ’…


⭐ SYNOPSIS ⭐

CALL WMBARB (X,Y,U,V)

πŸŽ€ C-BINDING SYNOPSIS πŸŽ€

for my C girlies, we got you:

#include <ncarg/gks.h>

void c_wmbarb(float x, float y, float u, float v)

πŸ’œ DESCRIPTION πŸ’œ

here's the tea on every single argument, no skips, no skimming, fr fr:

  • X β€” (Real, Input) β€” an X coordinate, and yes it's specified in world coordinates, of a point that specifies the position of the base of a wind barb.
  • Y β€” (Real, Input) β€” a Y coordinate, also in world coordinates, of a point that specifies the position of the base of a wind barb.
  • U β€” (Real, Input) β€” the X component of a wind vector.
  • V β€” (Real, Input) β€” the Y component of a wind vector.

like. X and Y are where the barb lives, U and V are what the wind is doing. iconic division of labour πŸ’–


🌈 USAGE 🌈

so the angle the wind barb gets drawn at? that's decided by the vector (U,V). and the magnitude of that vector? that's the wind speed, measured in knots. nautical girlies rise 🫢

⚠️ before you call WMBARB, set the values for the appropriate internal parameters first β€” the barb will not style itself, bestie.

the internal parameters that control how wind barbs look are, and I'm listing all of them because we don't gatekeep:

  • COL
  • WBA
  • WBD
  • WBF
  • WBS
  • WBT

that's the whole glow-up squad. set them, then call. periodt ✨


πŸ”₯ ACCESS πŸ”₯

to use WMBARB or c_wmbarb, you gotta load the NCAR Graphics libraries ncarg, ncarg_gks, and ncarg_c β€” preferably in that order. don't get cute with the order, okay? the order is the order. 😭


πŸ’€ SEE ALSO πŸ’€

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

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

go read those too, iykyk πŸ‘‘


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, babe β€” this was the UNIX flavour, January 1995, signed off as WMBARB(3NCARG). go forth and plot those barbs, you absolute legend πŸ§šπŸ’œ