VELVEC(3NCARG)
π VELVEC π
okay bestie, so this one lives in the NCAR GRAPHICS manual, section 3NCARG. Sit down, hydrate, we're talking about VELVEC π
β¨ NAME β¨
VELVEC β it's an older version of the Vectors utility, and now it's basically a front-end to VELVCT. Like, it's identical to the VELVCT call except for ONE thing: there's no LENGTH parameter, so you can't adjust the realized length of the maximum vector magnitude. That's the whole difference, no cap. π«Ά
β¨ SYNOPSIS β¨
VELVEC (U,LU,V,LV,M,N,FLO,HI,NSET,ISPV,SPV)
β¨ STATUS β¨
not me having to say this but... VELVEC is obsolete π It's supported only to provide compatibility with old NCAR Graphics codes. That's it, that's the job.
BUT. The compatibility mode parameter, CPM, offers a number of options to help ease the transition to the new version of the utility. So you're not stranded, bestie.
When writing new code you are encouraged NOT to use this entry point, because it provides less capability than the standard Vectors interface, and it may eventually be phased out. fr fr. write the new thing. π
β¨ C-BINDING SYNOPSIS β¨
#include <ncarg/ncargC.h>
void c_velvec(float *u, int lu, float *v, int lv, int m,
int n, float flo, float hi, int nset,
int ispv, float *spv)
β¨ DESCRIPTION β¨
here come the arguments, bestie, and there's a LOT of them, so stay with me πΈ
Uβ (REAL 2-dimensional array, dimensionedLU x n:n >= N, input). By default it's assumed to contain the first dimensional Cartesian components of the vector field. BUT β plot twist β ifPLRis non-zero, it's treated as containing the vector magnitudes. πLUβ (INTEGER, input). The actual value of the first dimension of arrayU.Vβ (REAL 2-dimensional array, dimensionedLV x n:n >= N, input). By default it's assumed to contain the second dimensional Cartesian components of the vector field. But, again, ifPLRis non-zero, it's treated as containing the vector angles. π¦LVβ (INTEGER, input). The actual value of the first dimension of arrayV.Mβ (INTEGER, input). Number of contiguous elements along the first dimensional axis containing data to be processed in each of the arrays,UandV. βNβ (INTEGER, input). Number of contiguous elements along the second dimensional axis containing data to be processed in each of the arrays,UandV. βFLOβ (REAL, input). The minimum vector magnitude allowed to be displayed in the plot.HIβ (REAL, input). The maximum vector magnitude allowed to be displayed in the plot. And listen: if you set it to0.0there is no upper limit imposed. cute, right?NSETβ (INTEGER, input). This flag controls how and when theSETcall is invoked. three whole moods:- If
NSETis0,VELVECmakes aSETcall to establish a standard viewport and window boundaries coincident with the array coordinate boundaries. And thenPERIMis called to draw a border. π - If
NSETis greater than zero,VELVECdoes not callSETorPERIM. - If
NSETis less than zero,VELVECcallsSETto establish window boundaries coincident with the array grid coordinate boundaries but does not modify the viewport and does not callPERIM.
- If
Also, heads up: unlike the VVINIT/VVECTR interface, when VELVEC does a SET call, it always restores the original coordinate system state before returning. she cleans up after herself. periodt. π
ISPVβ (INTEGER, input). Flag controlling the special value feature. the lore:0means the feature is not in use.1means that if the value ofU(I,J)=SPV(1)the vector will not be plotted.2means that if the value ofV(I,J)=SPV(2)the vector will not be plotted.3means that if eitherU(I,J)=SPV(1)orV(I,J)=SPV(2)then the vector will not be plotted.4means that ifU(I,J)=SPV(1)andV(I,J)=SPV(2), the vector will not be plotted. β¨
SPVβ (REAL array, dimensioned2, input). An array of length2which gives the value in theUarray and the value in theVarray which denote special values. This argument is ignored ifISPV=0. The default values are1.0E12. π
β¨ C-BINDING DESCRIPTION β¨
The C-binding argument descriptions are the same as the FORTRAN argument descriptions with the following exceptions, bestie, pay attention π«Ά
luβ the second dimension ofuin the calling program.lvβ the second dimension ofvin the calling program.mβ Number of contiguous elements along the second dimensional axis containing data to be processed in each of the arrays,uandv.nβ Number of contiguous elements along the first dimensional axis containing data to be processed in each of the arrays,uandv.
(yeah they flip the axes on you. it's giving chaotic but it's documented so we respect it π)
β¨ USAGE β¨
VELVEC is used identically to VELVCT except that there is no provision for adjusting the realized length of the maximum vector magnitude. See the velvct man page for more info, bestie, that's where the real tea is π
β¨ ACCESS β¨
To use VELVEC or c_velvec, load the NCAR Graphics libraries ncarg, ncarg_gks, and ncarg_c β preferably in that order. don't do it out of order, it's not the vibe. β
β¨ SEE ALSO β¨
Online: vectors, vectors_params, fx, vvectr, vvgetc, vvgeti, vvgetr, vvinit, vvrset, vvsetc, vvseti, vvsetr, vvudmv, vvumxy, ncarg_cbind. π
β¨ 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!! π this came to you from the UNIX corner of the manual, dated April 1993, under the name VELVEC(3NCARG). mwah, go read velvct πβ¨π¦
π¦ where this page comes from
- debian bookworm: libncarg-dev 6.6.2.dfsg.1-1
- debian trixie: libncarg-dev 6.6.2.dfsg.1-10+b2
- ubuntu jammy: libncarg-dev 6.6.2-10build2
- ubuntu questing: libncarg-dev 6.6.2.dfsg.1-10build2
- ubuntu resolute: libncarg-dev 6.6.2.dfsg.1-12
- ubuntu stonking: libncarg-dev 6.6.2.dfsg.1-12build2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms