TDLBLA(3NCARG)
β¨ TDLBLA β bestie, let's label a box edge π
okay so this is TDLBLA, a lil routine from the NCAR GRAPHICS collection (that's the manual it lives in, 3NCARG), and its whole entire job is putting labels on one particular edge of a box. that's it. that's the gig. and honestly? she ate. π
πΈ SYNOPSIS πΈ
CALL TDLBLA (IAXS, ILBL, NLBL, XAT0, XAT1, YAT0, YAT1, ANGD)
π C-BINDING SYNOPSIS π
#include <ncarg/ncargC.h>
void c_tdlbla(int iaxs, char* ilbl, char* nlbl, float xat0, float xat1,
float yat0, float yat1, float angd)
π¦ DESCRIPTION π¦
so here's the vibe check first, because the setup matters, bestie. before you call this, it's assumed that TDPARA has already been called to define the reference parallelogram as a rectangle in 3-space, sitting in one corner of one face of the box you're labelling. and the sides of that rectangle? assumed to be vectors of length 1. yep β the rectangle defines a unit square within that face of the box. very demure, very mindful, very unit-y. β¨
it's ALSO assumed that the internal parameter 'CS2' has been set the same way TDLBLS would reset it, using a code sequence like this:
CALL TDGETR ('CS1',CSM1)
CSM2=CSM1*MIN(UMAX-UMIN,VMAX-VMIN,WMAX-WMIN)
CALL TDSETR ('CS2',CSM2)
(where UMIN, UMAX, VMIN, VMAX, WMIN, and WMAX are as defined for a call to TDLBLS β no cap, go check that page if you need them.) π«Ά
and now, the moment you've all been waiting for β the arguments of TDLBLA are as follows:
IAXSβ (an input expression of typeINTEGER) tells you which edge of the face is getting labelled:1=> left,2=> right,3=> bottom, and4=> top. and the meanings of "left", "right", "bottom", and "top" are defined by the orientation of the reference parallelogram. so like, don't @ me, it's all relative. π«ILBLβ (input, of typeCHARACTER) a string used as an informational label. if the string is blank, no informational label gets written. that's it, that's the deal. πNLBLβ (input, of typeCHARACTER) a string containing numeric labels. the labels don't need to be in any particular order, but they DO have to be separated by blanks, and each one has to be readable using a FORTRAN format of the form"En.0", where"n"is the length of the label. if the string is blank, no informational label is written. (yes, the manpage says "informational" there too β iconic typo energy, we keep it exactly as-is. π)XAT0andXAT1β (input expressions of typeREAL) the values of"X"associated with the left and right edges of the face being labelled, where"left"and"right"are defined in terms of the current reference parallelogram.YAT0andYAT1β (input expressions of typeREAL) the values of"Y"associated with the bottom and top edges of the face being labelled, where"bottom"and"top"are defined in terms of the current reference parallelogram.ANGDβ (an input expression of typeREAL) specifies the angle, in degrees, at which the labels are to be written. this angle is defined with reference to the current reference parallelogram. tilt her, queen. πβ¨
π C-BINDING DESCRIPTION π
the C-binding argument descriptions are the same as the FORTRAN argument descriptions. literally identical. copy-paste sisterhood. no notes. π
π ACCESS π
to use TDLBLA or c_tdlbla, load the NCAR Graphics libraries ncarg, ncarg_gks, and ncarg_c β preferably in that order. (in that order!! don't get cute with it, bestie.) β
π SEE ALSO π
Online, your girl recommends a little reading list: tdclrs, tdctri, tddtri, tdgeti, tdgetr, tdgrds, tdgrid, tdgtrs, tdinit, tditri, tdlbls, tdline, tdlnpa, tdmtri, tdotri, tdpack, tdpack_params, tdpara, tdplch, tdprpa, tdprpi, tdprpt, tdseti, tdsetr, tdsort, tdstri, tdstrs. iykyk. go click around. π₯
π COPYRIGHT π
Copyright (C) 1987-2009 University Corporation for Atmospheric Research
The use of this Software is governed by a License Agreement.
π real talk, bestie: that license thing isn't decoration, it's the law. read it before you ship. periodt.
and that's the whole page, babe π this one's from the UNIX manual, dated July 1997, and yes β TDLBLA(3NCARG) is the name on her birth certificate. stan a 1997 queen who's still labeling box edges in 3-space. π§π
π¦ 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