Документ взят из кэша поисковой машины. Адрес
оригинального документа
: http://hea-www.harvard.edu/RD/saotng/array_spec.html
Дата изменения: Unknown Дата индексирования: Tue Oct 2 00:25:10 2012 Кодировка: Поисковые слова: п п п п п п п п п п |
SAOtng can load array files containing "raw" images. In order to do so, the program needs to know the following information about the file:
This information is added to an array filename using the IRAF bracket specification:
foo.array[xdim=xdim,ydim=ydim,bitpix=bitpix,skip=skip]
The keywords can be placed in any order. The skip keyword is optional and defaults to 0. The bitpix keyword takes on the same value as would be used in a FITS file:
In addition you can specify unsigned short ints using:
Thus, one can load a 700 x 600 short int FITS image that has a 2880-byte header using:
foo.fits[xdim=700,ydim=600,bitpix=16,skip=2880]
Of course, the FITS header will be ignored in this case (i.e., no WCS display).
The array specification can be shortened by leaving out the brackets and using positional values instead. The meaning of the numbers entered after the filename depends on the number of values entered:
Thus, a 512 x 512 array of any type without a header can be specified as:
foo.arr 512while a 600 x 700 double array with a 1024-byte header can be specified as:
foo.arr 600 700 -64 1024
For convenience, the above syntax can be input in a shortened form:
foo.arr[aa=where spec is of the form:]
{type}{xdim}[.{ydim}][:{skip}][{endian}]Type is one of the following:
Example:
If an array specification is sent to SAOtng from the Unix shell, the file name and specification must be enclosed in quotes. Quotes are not required from the Load a New Image menu option.
Note that the bracket notation is required on the SAOtng command line in order to avoid putting white space into the filename (which the script will strip off and misinterpret).