WMDRFT(3NCARG)

πŸ“¦ version 6.6.2, in epel 9, fedora 43, fedora 44

✨ WMDRFT ✨ (a page from the NCAR Graphics manual, bestie)

okay so picture this: you're making a weather map πŸ’– and you need to draw the lil squiggly lines on it β€” the warm fronts, the cold fronts, all of it. that's literally what WMDRFT does. it plots weather map front lines. that's the whole job. and it ate. πŸ’…


🌸 SYNOPSIS 🌸

CALL WMDRFT (N, X, Y)

πŸ¦‹ C-BINDING SYNOPSIS πŸ¦‹

#include <ncarg/gks.h>

void c_wmdrft(int n, float *x, float *y)

✨ DESCRIPTION ✨

the args, one by one, no gatekeeping:

  • N (Integer, Input) β€” the number of points you're handing over in the second and third arguments. that's it, that's the count. πŸ”’
  • X (Real, Input) β€” the X coordinates (specified in world coordinates) of those N points. these are the control points of a spline curve that gets fitted to represent the weather front you asked for.
  • Y (Real, Input) β€” same energy, but Y. the Y coordinates (specified in world coordinates) of the N points, again acting as control points for the spline curve that will be fitted to represent the requested weather front. πŸŽ€

πŸ’… USAGE πŸ’…

so before you call WMDRFT, you gotta set the values for the appropriate internal parameters, or you're just out here drawing a mystery front. the internal parameters that control the appearance of weather fronts are:

ALO, ARC, BEG, BET, CFC, CS1, CS2, COL, DWD, END, FRO, LIN, NBZ, NMS, PAI, REV, SL1, SL2, SLF, STY, SWI, T1C, T2C, WFC, and WTY

and the possible fronts? we got options, queen πŸ‘‘:

  • warm
  • warm aloft
  • cold
  • cold aloft
  • stationary
  • stationary aloft
  • occluded
  • convergence line
  • instability line
  • intertropical

like, the range. 🌈

and as mentioned above (iykyk), the points in the X and Y arrays serve as control points for a spline curve that is fitted between the first and last point. the spline passes through the given points, no cap. and here's the cute part: if the front line you want is reasonably smooth, then you literally only need a few input points. lowkey efficient. ✨


πŸ”₯ ACCESS πŸ”₯

to use WMDRFT or c_wmdrft, load the NCAR Graphics libraries ncarg, ncarg_gks, and ncarg_c β€” preferably in that order. order matters, bestie, don't be chaotic. 🫢


πŸŽ€ 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


Copyright (C) 1987-2009
University Corporation for Atmospheric Research
The use of this Software is governed by a License Agreement.
fr fr, the license agreement is not a suggestion. read it. πŸ’€

and that's the whole vibe check 🌸 this page came from the NCAR Graphics manual, dated January 1995, filed under WMDRFT(3NCARG) on a UNIX system. periodt. πŸ’–βœ¨

πŸ“¦ where this page comes from