From 4781e982ab072d80667c382bb69280ab16ab0e42 Mon Sep 17 00:00:00 2001
From: William Joye
$height
$depth
Substitute the width, height, or depth of the data file in the command line.
-Syntax:$bitpix
Substitute the bitpix of the data file in the command line.
-Syntax:$data
Data from the current frame becomes the input data to the command string. This data is in the form of a FITS image. This macro can only used at the beginning of the command string.
-Syntax:$entry
Display an entry modal dialog. The returned string is substituted. If cancel is selected, the command line is not executed.
-Syntax:$env
Substitute the value of a shell environment variable.
-Syntax:$filedialog
Display the standard file dialog. Substitutes the returned pathname. Argument specifies if an open file or save file dialog is invoked.
-Syntax:$filename
Substitute the filename of the data file in the command line. A full filename includes any absolute or relative path. A root filename contains no path. A (2D) subsection defines a subimage from xmin,ymin to xmax,ymax. For Frame3D, a 2D subsection will also include the current slice (PLANE=) parameter if not 1. A 3D subsection defines a subimage from xmin,ymin,zmin to xmax,ymax,zmax and no PLANE parameter.
Combination of $filename and $regions macros. Generates a series of filenames, each with a region.
-Syntax:$geturl
This macro differs from all other macros, including $url, in that no subprocess pipe is created. Only HTTP is supported. The contents of the url are retrieved and sent to $text, $plot, or $image. No other processing is allowed. The primary purpose of this macro is to support external analysis for the Windows platform, which has no subprocess support.
-Syntax:$image
The resulting image data is display in a DS9 frame. This macro should be the last macro of a command line. Optional parameter indicates if a new frame and what type of frame is created for the new data. The macro is removed from the command line before execution.
-Syntax:$message
Display a message dialog box, with option buttons. After displaying the message, the macro is removed from the command line before execution. If cancel or no is selected, the command line is not executed.
-Syntax:$null
Expect no output or results from analysis task. Note: no error message will be returned if the analysis task fails to execute correctly.
-Syntax:$pan
Substitute current pan location of the particular data file are returned. The default coordinate system is physical.
-Syntax:where:
coordinate system = [image|physical|detector|amplifier|wcs|wcsa...wcsz]$plot
Display data in plot window. This macro should be the last macro of a command line. The data is read via STDIN and consist of a pair of coordinates, with option error values. (xy, xyex, xyey, xyexey) Default dimension is xy. The macro is removed from the command line before execution.
For $plot(stdin) only:
The title, x axis label, and y axis label are assumed to be on the first line of input, delimited with a new-line. However, if the data starts with $BEGINTEXT, all text between $BEGINTEXT and $ENDTEXT will be removed from the data and displayed in a separate text dialog window, with the remaining data, including the title, x axis label, and y axis label, will be displayed in a plot window. Furthermore, if the data contains the string $ERROR, an error is assumed to have occurred and a text dialog window is displayed only.
-Syntax:$regions
Substitute region definition in specified region format, coordinate system, and coordinate format. The default coordinate system is physical, default coordinate format degrees, and default region format DS9. Arguments may appear in any order, as long as they are separated by ',' and no spaces. If one or more properties are specified, only regions with all of the specified properties will be substituted.
-Syntax:where options are one of the following:
regions format = [ds9|ciao|saotng|saoimage|pros|xy]$text
Display text in a text dialog window. This macro should be the last macro of a command line. To display text from only STDOUT use '|' as the pipe command. To display text from both STDOUT and STDERR, use '|&' as the pipe command. No parameters are required. The macro is removed from the command line before execution.
-Syntax:$url
URLs are processed and stored in a temporary file. Only HTTP and anonymous FTP are supported.
-Syntax:$vo_method
Returns the vo method.
-Syntax:$value
Substitute the value at the location of the cursor of an bind event.
Substitute coordinates of an bind event. When a bind event is triggered, the x,y coordinates of the mouse of the particular data file are returned. The default coordinate system is physical. This macro is only available for bind commands. For datacubes, the z coordinate is returned based on the current slice selected.
$xpa
Returns the xpa access point name.
-Syntax:$xpa_method
Returns the xpa method.
-Syntax:The user may define his own HELP message. This message will be available to the user as a menu item. An optional label maybe specified. The default label is Help. When invoked, an text dialog window will appear, containing the message. Multiple HELP items maybe defined within a menu or across hierarchical menus.
Example: @@ -364,12 +364,12 @@ hmenu Test Basics