Документ взят из кэша поисковой машины. Адрес оригинального документа : http://hea-www.harvard.edu/RD/saotng/macros.html
Дата изменения: Unknown
Дата индексирования: Mon Oct 1 23:33:18 2012
Кодировка:

Поисковые слова: ngc 6559
Macro Expansion in SAOtng

Macro Expansion in SAOtng

When adding new file access programs, analysis routines, and scale programs, SAOtng will macro-expand your command line before executing it. This is one way in which SAOtng's internal information can be supplied to external programs. Macros are of the form $macro or ${macro}: the same format used for Unix shell variables. SAOtng knows about several classes of macros:

Reserved macros
The following words are reserved as macros:

Data keywords
The macro expands to make the raw (unscaled) FITS data representation of the image section available in a way suitable for use in a Unix pipe or redirected into a file. For example, a command line such as:
    $data | smooth fits="stdin" ...
will send the raw data into the standard input of a smooth program, while:
    $data > foo.fit; smooth fits=foo.fit ...
redirects the raw data into a file and then passes the file to a smooth program. The $data macro will expand to an xpaget of the unscaled FITS image from memory, if such data is available. If not, it will expand to a command to retrieve the appropriate FITS image section from the original image file.

FITS keywords
All keywords contained in the primary FITS header can be expanded as macros on a command line.

Region keywords
The following region keywords are defined when launching analysis routines:
Analysis Keywords
The macro "idle_saotng" expands to a piped command that tells SAOtng that its status should be reset to idle. If this macro is added to an analysis command line, then SAOtng will sense its use and set its state to busy when executing the command line. The idle_saotng program will reset the status after passing on stdout to the next process. It is useful in cases such as:
  doit | $idle_saotng | xtext
where you want SAOtng to be idled after it completes, but without waiting for xtext to complete.
By default, region macros will return region positions in the current format (i.e., pixels, degrees, hms/dms). You can specify another format by appending the following strings to a region macro: For example, $eregion_degrees will expand to the list of exclude regions, with the positions returned in degrees.
Return to Advanced Topics Page

Last Updated June 14, 1997