EZSRFC(3NCARG)
π EZSRFC β it's in the NCAR GRAPHICS manual, bestie π
okay so. listen. EZSRFC draws you a perspective picture of a function of two variables, and it does it with the hidden lines removed π. The function gets approximated by a two-dimensional array of heights. That's the whole vibe.
But like⦠read the fine print before you commit, because EZSRFC is a very specific girlie. Only use EZSRFC if all of these are true:
- the entire array is to be drawn
- the data points are equally spaced in the X-Y plane
- there are no stereo pairs
- scaling is chosen internally
If any of that isn't your situation, this is not the function for you, and that's okay π«Ά.
β¨ SYNOPSIS β¨
CALL EZSRFC (Z,M,N,ANGH,ANGV,WORK)
π C-BINDING SYNOPSIS π
#include <ncarg/ncargC.h>
void c_ezsrfc (float *z, int m, int n, float angh, float angv,
float *work)
π DESCRIPTION π
Here's the whole cast, no cap:
Zβ theMbyNarray that's getting drawn. main character energy fr.Mβ the first dimension ofZ.Nβ the second dimension ofZ.ANGHβ angle in degrees in the X-Y plane to the line of sight (counterclockwise from the plus-X axis). it's giving β¨rotationβ¨ANGVβ angle in degrees from the X-Y plane to the line of sight (positive angles are above the middleZ, negative below). so like, positive = looking from up top, negative = from underneath πWORKβ a scratch storage dimensioned at least2*M*N+M+N. do not skimp on this. she needs her space π
π C-BINDING DESCRIPTION π
The C-binding argument descriptions are the same as the FORTRAN argument descriptions, with the following exceptions β and yes these exceptions are load-bearing, so pay attention:
zβ thenbymarray to be drawn.mβ the second dimension ofz.nβ the first dimension ofz.
notice how the dimensions literally swap?? that's not a typo, that's just how it is. the way that C and FORTRAN count differentlyβ¦ iconic honestly π¦
πΈ EXAMPLES πΈ
Use the ncargex command to see the following relevant examples: fsrezsrf, tsrfac.
β ACCESS β
To use EZSRFC or c_ezsrfc, load the NCAR Graphics libraries ncarg, ncarg_gks, and ncarg_c β preferably in that order. order matters, bestie, don't fight it π
π§ SEE ALSO π§
Online: surface, surface_params, pwrzs, setr, srface. ncarg_cbind.
Hardcopy: NCAR Graphics Fundamentals, UNIX Version
π₯ 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, periodt π
β¨ this was the UNIX version, dated March 1993, and yeah β it lives in the NCAR GRAPHICS manual under the name EZSRFC(3NCARG). go draw something pretty, ily π«Άπ
π¦ 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