PWRZS(3NCARG)
π PWRZS β bestie edition π
okay so you're over here in NCAR Graphics land and you want to write some little characters into three-space while you're doing SRFACE stuff? that's literally what PWRZS is for. it's a character-plotting routine, and it's giving "i put letters inside a 3D surface and it slays." no cap. π¦
β¨ NAME β¨
PWRZS β a character-plotting routine for plotting characters in three-space when you're using SRFACE. π
β¨ SYNOPSIS β¨
CALL PWRZS (X,Y,Z,ID,N,ISIZE,LINE,ITOP,ICNT)
π«Ά C-BINDING SYNOPSIS
#include <ncarg/ncargC.h>
void c_pwrzs (float x, float y, float z, char *id,
int n, int isize, int line, int itop, int icnt)
β¨ DESCRIPTION β¨
okay here come the args, bestie, and there are a lot of them so stay with me π
X,Y,Zβ the positioning coordinates for the characters you're about to draw. these are floating point numbers living in the same three-space as the one you used inSRFACE. same vibe, same world. πIDβ the character string you want drawn.IDis of typeCHARACTER. it's the actual text, the moment, the content. β¨Nβ how many characters are inID. that's it, that's the whole job. π’ISIZEβ the size of the character, and it's lowkey a two-mode situation:- if it's between 0 and 3,
ISIZEis1.,1.5,2., or3.times a standard width equal to 1/128th of the screen width. - if it's greater than 3,
ISIZEis the character width in plotter address units. (real ones know. iykyk.)
- if it's between 0 and 3,
LINEβ the direction the characters get written in. pick your lane:
1 = +X -1 = -X
2 = +Y -2 = -Y
3 = +Z -3 = -Z
ITOPβ the direction from the center of the first character to the top of the first character. the potential values forITOPare the same as the ones forLINEup above, so go look at those again. π
β οΈ heads up bestie:LINEcannot equalITOP, not even in absolute value. so like,1and-1? not a thing. don't do it. π
ICNTβ the centering option. where's(X,Y,Z)actually pointing, spiritually? π§-1β(X,Y,Z)is the center of the left edge of the first character.0β(X,Y,Z)is the center of the entire string.1β(X,Y,Z)is the center of the right edge of the last character.
also note: the hidden character problem is solved correctly for characters near, but not inside, the three-space object. so like, near is fine, inside is not, okay? π«Ά
β¨ C-BINDING DESCRIPTION β¨
the C-binding argument descriptions are the same as the FORTRAN argument descriptions. same facts, different wrapper. periodt. π
β¨ USAGE β¨
call PWRZS after calling SRFACE and before calling FRAME. that's the order, don't fight it. π₯
β¨ EXAMPLES β¨
use the ncargex command to see the following relevant examples: fsrpwrzs, tpwrzs. go look, they're iconic. π
β¨ ACCESS β¨
to use PWRZS or c_pwrzs, load the NCAR Graphics libraries ncarg, ncarg_gks, and ncarg_c, preferably in that order. β¨
β¨ SEE ALSO β¨
Online: surface, surface_params, ezsrfc, 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.
okay that's the whole page bestie, you're so ready π this was NCAR GRAPHICS energy, page PWRZS(3NCARG), and it's dated March 1993 β yeah, vintage, but she still ate. mwah. ππΈπ
π¦ 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