![]() $filename(full|full,base) # full filenamewith extname,no subsections, no filters)Ĭombination of $filename and $regions macros. $filename(root|root,base) # root filename withwith extname,no subsections, no filters) $filename # filename with extname, (2d) subsections, filters A 3D subsection defines a subimage from xmin,ymin,zmin to xmax,ymax,zmax and no PLANE parameter. For Frame3D, a 2D subsection will also include the current slice (PLANE=) parameter if not 1. A (2D) subsection defines a subimage from xmin,ymin to xmax,ymax. A full filename includes any absolute or relative path. Substitute the filename of the data file in the command line. Argument specifies if an open file or save file dialog is invoked. Substitute the value of a shell environment variable. Substitute the full path name of the directory where analysis file found. Syntax:Įcho "$entry(Enter something here)" | $text If cancel is selected, the command line is not executed. This macro can only used at the beginning of the command string. This data is in the form of a FITS image. Syntax:ĭata from the current frame becomes the input data to the command string. Substitute the bitpix of the data file in the command line. Substitute the width, height, or depth of the data file in the command line. Will display a text dialog that contains "$data $foo" All strings that contain $ that are not a macro name will not be affected. Strings that contain $ that user does not want to be expanded may be escaped by using $$. The following macros are macro-expanded to fill in user-defined arguments before the command is executed. To bind to a key stroke, use the following command type: bind Ī web command allows the user to invoke the internal web browser from the analysis menu. If a command is bound to an event other that a keystroke, care must be taken to not to interfere with other internal DS9 events. Types of events available include all TK events, including all keystrokes and mouse clicks. When the event occurs, the command is executed. Example: # Button command exampleĪ bind command is a command that is bound to an event. Example: # Menu command exampleĪ button command creates an button option in the current buttonbar. The third line indicates the type of command.Ī menu command creates an menu option under the Analysis menu option, and can be invoked by the user via the GUI or XPA. Example: # this will insert a menu separator A separator can be inserted in the menu by specifying the following sequence '-'. Also, the '#' character is a comment character. The command line for the analysis program The analysis file that defines the known analysis commands consists of one or more file descriptors, each of which has the following format: Results may be displayed in a separate text window, plot window, or in a image frame. When activated, either from the menu, XPA, or bound event, an analysis command first is macro-expanded to fill in user-defined arguments and then is executed externally. The user may also load or clear current analysis commands via command line options or the Analysis menu. Finally, the user may specify analysis files to be loaded at startup in the preferences analysis panel. In addition, DS9 will search the following directories for any analysis files to be loaded at startup in the form of *.ds9: the current directory, $HOME/bin, /usr/local/bin, /opt/local/bin, and /soft/saord/bin. This type of command is called a bind command.ĭS9 searches for an analysis file named ds9.ans or ds9.analysis in the current directory and $HOME to be loaded at startup. In addition, commands may be bound to events, such as keystrokes or mouse clicks. The analysis commands are available for execution, either via the Analysis Menu or the XPA point Analysis. These analysis commands are defined at start-up time, or loaded by the user, by means of an ASCII analysis description file. Each file type known to DS9 can have user-defined analysis commands associated with it.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |