EZSTRM(3NCARG)
π EZSTRM π β the NCAR Graphics era
okay bestie, so this whole thing lives in the NCAR Graphics manual, and EZSTRM is literally the drive-thru version of STRMLN. It's a front-end to STRMLN with a simpler interface, and just like STRMLN, it plots a streamline representation of field flow data in a single call. one call, one plot, no thoughts head empty. β¨
πΈ STATUS πΈ
ngl, this one is obsolete. π It's only still here to provide compatibility with old NCAR Graphics codes β like, it's the ancestor who refuses to leave the group chat.
BUT. The compatibility mode parameter, CPM, offers a number of options to help ease the transition to the new version of the utility. So there's a lil escape hatch, iykyk.
When you're writing new code you are encouraged not to use this entry point, because it provides less capability than the standard Streamlines interface, and it may eventually be phased out. it's giving "beloved but doomed". π
β¨ SYNOPSIS β¨
CALL EZSTRM (U,V,WORK,IMAX,JMAX)
π C-BINDING SYNOPSIS π
#include <ncarg/ncargC.h>
void c_ezstrm (float *u, float *v, float *work,
int imax, int jmax)
π DESCRIPTION π
okay so here's the cast of characters, everybody's got a role:
Uβ (REAL 2-dimensional array, dimensionedIMAXx n: n >=JMAX, input) By default, we assume it holds the first dimensional Cartesian components of the vector field. HOWEVER π« ifPLRis non-zero, it gets treated as holding the vector magnitudes instead.Vβ (REAL 2-dimensional array, dimensionedIMAXx n: n >=JMAX, input) By default, we assume it holds the second dimensional Cartesian components of the vector field. BUT π«Ά ifPLRis non-zero, it gets treated as holding the vector angles.WORKβ (REAL array, dimensioned n: n >=2*IMAX*JMAXworking space): user provided work array, used to store the normalized vector component values, and also to keep track of the grid boxes eligible for starting a streamline or placement of a directional arrow. it's the backstage crew fr fr. π§IMAXβ (INTEGER, input) Actual size of the first dimension of arraysUandV.JMAXβ (INTEGER, input) Assumed size of the second dimension of arraysUandV.
π C-BINDING DESCRIPTION π
The C-binding argument descriptions are the same as the FORTRAN argument descriptions, with the following exceptions β pay attention bestie, the dimensions get a lil swapped π:
imaxβ The actual size of the second dimension of arraysuandv.jmaxβ The assumed size of the first dimension of arraysuandv.
π₯ USAGE π₯
U and V are 2-dimensional vector component arrays, whose actual first dimensions must be equal to the value of IMAX, and whose second dimensions must equal or exceed the value of JMAX. The WORK array must, at minimum, be of length 2*IMAX*JMAX. like, that's the floor, don't come in under it. β
Assuming the default value of the compatibility mode parameter, CPM, Streamlines always performs a SET call and draws a perimeter around the plot when accessed through the EZSTRM interface. Before the return from EZSTRM, another call to SET restores the previous coordinate system mapping. so it sets up, draws the lil border, and then puts everything back exactly how it found it. respectful queen. π
By modifying the value of CPM, you may take more control over the utility than originally possible using this entry point. For instance, you can override the default value of the SET parameter, or use the Version 3.2 coordinate system mapping routines instead of the old FX and FY functions. main character energy, honestly. π
Nevertheless, when creating new code, use theSTINIT/STREAMinterface, since its capabilities are greater and more likely to improve with time. this is the "bestie pls" of the whole page. π₯Ί
π ACCESS π
To use EZSTRM, load the NCAR Graphics libraries ncarg, ncarg_gks, and ncarg_c, preferably in that order. order matters, don't be chaotic. β¨
π¦ SEE ALSO π¦
Online: fx, stgetc, stgeti, stgetr, stinit, stream, streamlines, streamlines_params, strset, stsetc, stseti, stsetr, stuixy, stumsl, stumta, stumxy, ncarg_cbind. go read the whole friend group, they're all iconic. πΈ
π 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 one dropped way back in April 1993 as part of the UNIX man pages, filed under EZSTRM(3NCARG). old school, but still slaying in the archive. π
π¦ 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