TDEZ3D(3NCARG)
β¨ NAME β¨
TDEZ3D β bestie, this is the glow-up shortcut into TDPACK for drawing isosurfaces π
(It lives in the NCAR Graphics manual, section 3NCARG, if you were wondering where we are rn π¦)
π SYNOPSIS π
CALL TDEZ3D(NX,NY,NZ,X,Y,Z,U,VALUE,RMULT,THETA,PHI,IST)
π C-BINDING SYNOPSIS π
#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 π
okay so the arguments of TDEZ3D are, one by one, no skipping, we're doing all of them:
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 πNZβ (an input constant or variable of typeINTEGER) the size of the input arrayZdown below πXβ (an input array variable of typeREAL) a 1-dimensional array giving the X-coordinate values πYβ (an input array variable of typeREAL) a 1-dimensional array giving the Y-coordinate values πZβ (an input array variable of typeREAL) a 1-dimensional array giving the Z-coordinate values πUβ (an input array variable of typeREAL) an arrayNXbyNYbyNZholding the functional values;Z(I,J,K)is a functional value at coordinate(X(I),Y(J),Z(K))forI=1,NX,J=1,NY, andK=1,NZπ«ΆVALUEβ (an input array variable of typeREAL) an isovalue β¨RMULTβ (an input constant or variable of typeREAL) a multiplier of the diagonal length (DL) of the box defined by the limits of theX,Y, andZarrays. Together withTHETAandPHI(defined below),RMULTis what decides 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 that defines the colors used to shade the isosurface, like this:- wire frame πΈοΈ
- gray shades underneath; gray shades on top.
- gray shades underneath; red shades on top.
- gray shades underneath; green shades on top.
- gray shades underneath; blue shades on top.
- gray shades underneath; cyan shades on top.
- gray shades underneath; magenta shades on top.
- gray shades underneath; yellow shades on top.
If IST is positive, then black is used for the background 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 π€π€
If the value forISTfalls outside the legal range, it is defaulted to6. no cap, that's just what it does π
πΈ C-BINDING DESCRIPTION πΈ
The C-binding argument descriptions are the same as the FORTRAN argument descriptions. literally identical, we're not retyping all that π
π 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 box defined by the limits of the X, Y, and Z arrays.
TDEZ3D does not call FRAME. periodt.
If the image is too small, decrease the size of RMULT; if the image is too large, increase the size of RMULT π (yes, it's that kind of relationship).
When TDEZ3D 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. π so if you had a cute color table, bestie... it's gone now. The color table that gets 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 TDEZ3D or c_tdez3d, load the NCAR Graphics libraries ncarg, ncarg_gks, and ncarg_c, preferably in that order π« (order matters, iykyk).
π SEE ALSO π
Online, aka your reading list, go off:
tdclrstdctritddtritdgetitdgetrtdgrdstdgridtdgtrstdinittditritdlblatdlblstdlinetdlnpatdmtritdotritdpacktdpack_paramstdparatdplchtdprpatdprpitdprpttdsetrtdsorttdstritdstrstdez2d
π 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 came from the UNIX manual, June 1998 edition, filed under TDEZ3D(3NCARG) β iconic behavior from 1998 fr fr πΈπ¦ go draw an isosurface, you've got this π
π¦ 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