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 β€” the M by N array that's getting drawn. main character energy fr.
  • M β€” the first dimension of Z.
  • N β€” the second dimension of Z.
  • 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 middle Z, negative below). so like, positive = looking from up top, negative = from underneath πŸ™ˆ
  • WORK β€” a scratch storage dimensioned at least 2*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 β€” the n by m array to be drawn.
  • m β€” the second dimension of z.
  • n β€” the first dimension of z.
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 (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 πŸ«ΆπŸŽ€