TDEZ2D(3NCARG)
β¨ TDEZ2D β¨
okay so bestie, pull up a chair π«Ά we're looking at TDEZ2D, page 3NCARG of the NCAR GRAPHICS manual, and honestly it's a whole vibe.
πΈ NAME πΈ
TDEZ2D β the way that it provides a simplified interface to TDPACK for drawing surfaces?? it's giving "shortcut era" and we are obsessed. π
π SYNOPSIS π
CALL TDEZ2D(NX,NY,X,Y,Z,RMULT,THETA,PHI,IST)
π¦ C-BINDING SYNOPSIS π¦
literally copy this exactly, no cap:
#include <ncarg/ncargC.h>
void c_tdez3d (int nx, int ny, int nz, float *x, float *y,
float *z, float *u, float value, float rmult,
float theta, float phi, int ist)
π DESCRIPTION π
so the arguments of TDEZ2D are, in order, bestie:
NXβ (an input constant or variable of typeINTEGER) the size of the input arrayXdown below. πNYβ (an input constant or variable of typeINTEGER) the size of the input arrayYdown below.Xβ (an input array variable of typeREAL) a 1-dimensional array specifying X-coordinate values. β¨Yβ (an input array variable of typeREAL) a 1-dimensional array specifying Y-coordinate values. β¨Zβ (an input array variable of typeREAL) an arrayNXbyNYcontaining the surface to be drawn.Z(I,J)is a functional value at coordinate(X(I),Y(J))forI=1,NXandJ=1,NY. πRMULTβ (an input constant or variable of typeREAL) a multiplier of the diagonal length (DL) of the smallest box containing the surface to be drawn. Together withTHETAandPHI(defined below),RMULTis used to determine the eye position (see USAGE). πTHETAβ (an input constant or variable of typeREAL) an angle (in degrees) in the XY plane measured positive counter-clockwise from the X axis. Together withRMULT(defined above) andPHI(defined below),THETAis used to determine the eye position (see USAGE). πPHIβ (an input constant or variable of typeREAL) an angle (in degrees) measured from the positive Z axis toward the XY plane. Together withRMULTandTHETA(defined above),PHIis used to determine the eye position (see USAGE). πISTβ (an input constant or variable of typeINTEGER) a style index defining the colors used to shade the surface, as per this whole menu right here:1β wire frame π2β gray shades underneath; gray shades on top.3β gray shades underneath; red shades on top.4β gray shades underneath; green shades on top.5β gray shades underneath; blue shades on top.6β gray shades underneath; cyan shades on top.7β gray shades underneath; magenta shades on top.8β gray shades underneath; yellow shades on top.
if IST is positive, then black is used for the background color and white for the foreground color; if IST is the negative of any of the above values, then white is used for the background color and black for the foreground color. π€π€
not me about to say the important part: if the value forISTfalls outside the legal range, it is defaulted to6. periodt.
π§ C-BINDING DESCRIPTION π§
the C-binding argument descriptions are the same as the FORTRAN argument descriptions. same energy, different font. π
π₯ USAGE π₯
the coordinate (RMULT*DL,THETA,PHI) is the spherical coordinate for the eye position. if RMULT = THETA = PHI = 0., a default eye position ( 2.5,-55.,70.) is chosen. the point looked at is calculated to be the center of the surface. ποΈβ¨
TDEZ2D does not call FRAME.
if the image is too small, decrease the size of RMULT; if the image is too large, increase the size of RMULT. lowkey simple, highkey useful.
when TDEZ2D is called, a color table is defined for all open workstations that implements IST as described above.
This color table will supersede any color table that has been previously defined. π¨ like, gone, replaced, no takebacks.
the color table that is defined is:
Color
index Colors
------- ----------------------------------------------------
0 black if IST is positive; white if IST is negative
1 white if IST is positive; black if IST is negative
2 red
3 green
4 blue
5 cyan
6 magenta
7 yellow
8- 37 grayscale from white to black.
38- 67 shades of gray
68- 97 shades of red
98-127 shades of green
128-157 shades of blue
158-187 shades of cyan
188-217 shades of magenta
218-247 shades of yellow
π ACCESS π
to use TDEZ2D or c_tdez2d, load the NCAR Graphics libraries ncarg, ncarg_gks, and ncarg_c, preferably in that order. yes, in that order. trust. π«Ά
π SEE ALSO π
online, aka the group chat: tdclrs, tdctri, tddtri, tdgeti, tdgetr, tdgrds, tdgrid, tdgtrs, tdinit, tditri, tdlbla, tdlbls, tdline, tdlnpa, tdmtri, tdotri, tdpack, tdpack_params, tdpara, tdplch, tdprpa, tdprpi, tdprpt, tdsetr, tdsort, tdstri, tdstrs, tdez3d π
π 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's from UNIX, dated June 1998, and it lives at TDEZ2D(3NCARG). go draw some surfaces, you main character. β¨ππ¦
π¦ 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