IDT(1NCARG)
π IDT(1NCARG) β the X window interactive image display tool π
Welcome to the IDT(1NCARG) page, brought to you by NCAR GRAPHICS. This is part 1, bestie, so buckle up. β¨
πΈ NAME πΈ
idt β X window interactive image display tool. That's the whole vibe. π¦
π SYNOPSIS π
idt [ -toolkitoption ... ] [ -background color ] [ -f font ] [
-foreground color ] [ -history ] [ -lmin min ] [ -lmax max ] [ -lscale
scale ] [ -oldidt ] [ -pal pal_fname ] [ -reverse ] [ -soft ] [ -Version
] [ metafile ]
β¨ DESCRIPTION β¨
Okay so idt is literally a graphical user interface to the NCAR View interactive metafile translator ictrans. No cap, it supports a subset of the ictrans command interface.
idt gives you two types of command panels for interacting with imagery. The first type is the control panel, which you see when you initially invoke idt. The control panel displays messages from the translators, provides a metafile selection utility, and is responsible for instantiating the second type of command panel, the display panel. The display panel provides mechanisms for controlling translators. Each display panel manages a single metafile translator. There can be multiple display panels in existence at the same time, but only one control panel. Periodt. π
π OPTIONS π
idt accepts all of the standard X Toolkit command line options (see X(1)). idt also accepts the following options:
-ffontcap β Fontcap file to be used for stroking text. When interpreting CGMTEXTcommand elements, use fontcap as the default font for textual translation.
Note: CGMs may contain textual descriptions which are not embedded in CGMTEXTelements. Hence they are not influenced by fontcap specifications. Note also that a CGM may explicitly specify a named font which may override a font provided on the command line. The environment variableFONTCAPmay also be used to specify a default fontcap.
If fontcap is preceded by a UNIX directory path then ctrans will look in that directory for the specified fontcap. Otherwise idt searches the directory $NCARG_ROOT/lib/ncarg/fontcaps for the fontcap.
See fontcap(5NCARG) for a description of the available fontcaps. See fcap(1NCARG) for a list of the fontcaps installed on your system.
This option overrides the FONTCAP environment variable.
-historyβ Write a record of all commands sent to the translator to the file./.idthist.-Versionβ Print the version number and then exit.
The following options are ignored by idt and are passed on to the metafile translator ictrans. See ictrans(1NCARG) for a description of their use.
-softβ passed on toictrans.-lminlinewidth β passed on toictrans.-lmaxlinewidth β passed on toictrans.-lscalelinewidth β passed on toictrans.-palpal_fname β passed on toictrans.-foregroundcolor β passed on toictrans.-backgroundcolor β passed on toictrans.-reverseβ passed on toictrans.
π CONTROL PANEL COMMANDS π
The control panel provides a text widget for displaying messages from the translators and a row of command buttons. Messages are preceded with the string "Display[X]", where "X" is an integer id associated with the translator sending the message. The first translator spawned is "Display[0]", the second is "Display[1]", etc.
select fileβ Selects a file for translation. This button brings up a popup menu containing a file selection box. The uppermost dialog box of the file selection box is used for specifying a filter for searching for files. For example, the filter"/usr/local/lib/*.cgm"finds all files in the directory/usr/local/libwhose names end with".cgm". The finder understands standard shell metacharacters.
The bottom dialog box displays the currently selected file. The user may enter a file name here or select one with the mouse from the list of files displayed in the middle text widget.
displayβ Popup a display panel. A display panel is popped up ready for translation of the file most recently selected with the file selector. This command will fail if a file has not been selected.quitβ Quits the application and terminates all translators.
π¦ DISPLAY PANEL COMMANDS π¦
The display panel provides a mechanism for manipulating the translator associated with a particular metafile. On most systems the name of the metafile appears in the title bar at the top of the panel. The first row in the panel contains a scroll bar for randomly selecting a frame to be translated. The label bar to the right displays the number of the frame scrolled to. The panel is intended to resemble a video tape editor. Thus, the second row contains play back, jog back, stop, jog and play buttons, respectively. The third and forth rows contain more complex display commands.
loopβ Toggle the looping mode on or off. Whenloopis on, pressing the play (playback) button causes the translator to process all the frames in the segment sequentially (reverse sequentially) and then start over from the beginning (end). The process continues until the"stop"button is selected. By default loop mode is off.dupβ Sets duplication variable. Ifdupis set to1each frame is displayed once, ifdupis set to2each frame is displayed twice, etc. The default value ofdupis1.gotoβ Go to the specified frame and translate it.gotoprovides random access to the frames contained in the metafile.skipβ Set the skip variable. Ifskipis set to1every other frame is displayed during subsequent plays, ifskipis set to2every third frame is displayed, etc. The default value forskipis0.delayβ Set the between-frame animation delay-time. Whenidtis in animation mode you may request thatidtpause for a period of time between the display of each image. The effect of setting a delay time is to govern the speed at whichidt"plays"imagery.start segmentβ Define the first frame in the segment. This button and thestop segmentbutton define a segment which is a subset of the frames contained in the metafile. When in play (playback) mode only the frames contained within the defined segment are translated. The default value forstart segmentis1, the first frame in the file.stop segmentβ Define the last frame in the segment. The default frame is the last frame in the file. Hence, by default the segment is the entire metafile.set windowβ Specify the workstation window (in the GKS sense). Four coordinates are specified which define a rectangular window which is a subset of normalized VDC rectangle with corner points(0,0)and(1.0,1.0). The specified window is then mapped onto the entire viewport. For example, if the workstation window is defined by the corner points(0,0)and(0.5 0.5)then the lower left quarter of a plot would be blown up to fill the largest rectangle which fits in the drawing window while retaining the aspect ratio described by the normalized coordinates. Specification of such a window can be used for zooming and panning.doneβ Terminate processing of current metafile.current frameβ Update the"Scrolled to Frame ->"label box with the number of the current frame.printβ Send the current frame to the printer. Theprintcommand brings up a menu of all devices configured for accepting translator output. This list is created dynamically in response to changes in the spooler configuration file (seencarv_spool(5NCARG)). Selecting an item from the menu causes the current frame to be sent to that device.saveβ Save a frame to a file. This command allows you to write the metacode for the current frame to a file. The result is a complete NCAR Computer Graphics Metafile (CGM) containing a single frame.unzoomβ Reset windowing transformations previously set by thezoomcommand back to their default.zoomβ Zoom in on an area of a plot. The function of this command is identical to that of the window command. Thezoomcommand, however, allows you to select the area of interest interactively with the mouse.animateβ Toggle animation mode on or off. Whenidtis put into animation mode the currently defined segment is rasterized with the translator and loaded into the X server memory. Subsequentidtcommands operate on the memory-resident images. Not allidtcommands are available in animation mode. By default animation is off.
π RESOURCES π
As with all standard X applications, idt may be customized through entries in the resource manager. In the following list of application resources provided by idt the resource name is given followed by its class in parentheses. These resources supplement the resources provided by the widgets themselves.
history(ClassHistory) β Specify whether a history of commands sent to the metafile translators is recorded to the file"./.idthist"or not. The default for this resource is"False".fileSelectAction(ClassFileSelectAction) β Set the default action to be executed after a file has been selected with the file selection box. Currently the only value this resource understands is"display".messageHeight(ClassMessageHeight) β Set the height in lines of text of the message display panel.oldIdt(ClassOldIdt) β Specifies the"-oldidt"option.translatorDevice(ClassTranslatorDevice) β Specify the output device for metafile translation. The default for this resource is"X11".translatorFont(ClassTranslatorFont) β Specify the name of the fontcap to use for stroking text during metafile translation. The default value for this resource is"font1".translatorSoft(ClassTranslatorSoft) β Specifies theictrans"-soft"option.translatorLmin(ClassTranslatorLmin) β Specifies theictrans"-lmin"option.translatorLmax(ClassTranslatorLmax) β Specifies theictrans"-lmax"option.translatorLscale(ClassTranslatorLscale) β Specifies theictrans"-lscale"option.translatorForeground(ClassTranslatorForeground) β Specifies theictrans"-foreground"option.translatorBackground(ClassTranslatorBackground) β Specifies theictrans"-background"option.translatorReverse(ClassTranslatorReverse) β Specifies theictrans"-reverse"option.
β¨ ACTIONS β¨
okay so idt hands you these actions to use in event translation, bestie π
FinderTranslation()β makes the file selector popup go search for files using the key you typed into the file finder text box πOkFinderTranslation()β tells the file selector that a choice has officially been made. it's giving "yes, this one, periodt" πSelectFileTranslation()β refreshes the text box in the file selector that shows which file is currently selected β¨OkSDTranslation()β confirms a selection you made in one of the display panel popup dialog boxes π
π§ WIDGETS π§
so if you wanna specify resources, you kinda need to know the hierarchy of the widgets that make up idt, right? π«Ά in the notation below, the indentation shows the hierarchal structure. the widget class name comes first, then the widget instance name. no cap.
Idt idt
Paned paned
Text text
Form form
Command select file
Command display
TopLevelShell <???>
Paned paned
Core canvas /* This is the drawing canvas
Form form
Scrollbar scrollbar
Label Scrolled to Frame ->
Form form
Command playback
Command jogback
Command stop
Command jog
Command play
Form form
Toggle loop
Command dup
Command goto
Command skip
Command delay
Command start segment
Command stop segment
Command set window
Form form
Command done
Command current frame
MenuButton print
SimpleMenu menu
SmeBSB <???>
SmeBSB <???>
SmeBSB <???>
|
|
dynamically configured
|
|
SmeBSB <???>
SmeBSB <???>
Command save
Command zoom
Command unzoom
Toggle animate
Grip grip
Grip grip
Grip grip
Grip grip
Grip grip
Command quit
Grip grip
Grip grip
Paned
π EXAMPLES π
want the graphics display window to default to 200 by 200 pixels? drop this resource spec in, bestie:
Idt*canvas.width: 200
Idt*canvas.height: 200
and if you want the control panel chillin' in the top right corner, slide this into your .Xdefaults file π
idt.geometry: -0+0
πΈ ENVIRONMENT πΈ
DISPLAYβ the standard X environment variable for specifying the display name. if your translation output device is X11, this one MUST be set. like, mandatory mandatory π₯FONTCAPβ default fontcap specifier.NCARG_ROOTβ path to the root of your NCAR Graphics installation.NCARG_LIBβ if you set this, it holds the path to the installed NCAR Graphics libraries. heads up:NCARG_LIBoverridesNCARG_ROOTπNCARG_TMPβ if set, this contains a directory path used for temporary files. on most systems the default is/tmp. on some systems the default is/usr/tmp.SHELLβ specifies the UNIX shell that the file selector uses for expanding metacharacters./bin/shis the default.XENVIRONMENTβ specifies the name of a resource file that overrides the global resources stored in theRESOURCE_MANAGERproperty.
π FILES π
.idthistβ Translator command history file$NCARG_ROOT/lib/ncarg/xapp/Idtβ Default resource file foridt$HOME/.ncarv_spoolβ User spooler configuration file$NCARG_ROOT/lib/ncarg/ncarv_spoolβ System spooler configuration file
π SEE ALSO π
ctrans(1NCARG), fcaps(1NCARG), gcaps(1NCARG), ictrans(1NCARG), ncarv_spool(5NCARG), X(1), xrdb(1)
Hardcopy: NCAR Graphics Fundamentals, UNIX Version
π BUGS π
Zooming in on large cell arrays causes the translator to crash. yeah. that's it. that's the whole bug. π
π CAVEATS π
listen, these are important, so read them fr fr:
- The metafile file translation process is performed by spawning the
ictranstranslator.ictransdoes not understand standard X Toolkit options. hence, theDISPLAYenvironment variable must be set when translating a metafile to be displayed in a window. - You can not save "zoomed" plots to a file. more precisely: you may save a "zoomed" plot, however, the resultant plot will not be "zoomed". it's giving false advertising ngl π
- The "Scrolled to Frame" label is not continuously updated.
- The range with which one may zoom in on a plot with either the
zoomorwindowcommand is severely limited by Xlib's use ofshortintegers for containing screen coordinate data. blame Xlib π« - IRIX 4.x users should not set use the shared memory connection to their X server. i.e. don't use the display
shm:0. - Background color changes don't work when
idtis in animate mode.idtwill use whatever color was most recently set in the animation segment for the entire segment.
π COPYRIGHT π
Copyright (C) 1987-2009 University Corporation for Atmospheric Research
The use of this Software is governed by a License Agreement.
and that's a wrap on the whole page, bestie π this came from the NCARG fam, dated January 1993, and the page is IDT(1NCARG). go forth and translate those metafiles, you absolute icon πβ¨
π¦ where this page comes from
- epel 9: ncl-common 6.6.2-59.el9 Β· LicenseRef-Callaway-BSD
- fedora 43: ncl-common 6.6.2-58.fc43 Β· LicenseRef-Callaway-BSD
- fedora 44: ncl-common 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