Satimage
Le dictionnaire de FITS
Accueil Les dictionnaires Le dictionnaire de FITS  
FITS
FITS
FITS.osax provides commands to read FITS data files. Uses the FITSIO project. mailto:support@satimage-software.com

array of real n, pl arrays of real : a packed list of small real. Can be coerced to an AppleScript list with 'as list of real'. Conversely, a list of real may be translated using 'as array of real' for fast computation.

dimensions n, pl dimensions

matrix n, pl matrices : An AppleScript representation of a 2D array of real numbers as a record

properties

ncols integer : the number of columns

nrows integer : the number of rows

array of real array of real : the data, as an array of real or as a standard AppleScript list of real numbers. Ordering: the first numbers are the data for the first row.


FITSOpen v : open a FITS file

FITSOpen alias : path to the FITS file

→ integer : a reference number to the opened file

FITSClose v : close a FITS file

FITSClose integer : a reference to an opened FITS file

FITSCount v : count data units in a FITS file

FITSCount integer : a reference to an opened FITS file

→ integer : the number of units

FITSMovein v : select a data unit in a FITS file

FITSMovein integer : a reference to an opened FITS file

to integer : the unit index or the unit name

→ string : the type of the selected unit

FITSInfo v : get info from the current unit of the opened FITS file

FITSInfo integer : a reference to an opened FITS file

[verbose boolean] : default: false. If verbose is true, FITSInfo returns the full header of the current unit. Otherwise, returns the type of the unit and the list of its dimensions.

→ record : or string if verbose

FITSPlist v : get info from the current unit of the opened FITS file as xml data

FITSPlist integer : a reference to an opened FITS file

[as type] : string or CFRef. Default: CFRef

→ string or CFRef

FITSReadImage v : read an image unit in a FITS file

FITSReadImage integer : a reference to an opened FITS file

[along integer] : axis to slice for image dimension equal to 3

[at integer] : index to read for image dimension equal to 3

array of real : or matrix if result is 2D.

FITSTableInfo v : Get basic info about the column of a table unit in a FITS file

FITSTableInfo integer : a reference to an opened FITS file

column integer or string : index (or name) of column

→ record : column name, number of rows and data type of the column

FITSReadTable v : Read a column of a table unit in a FITS file

FITSReadTable integer : a reference to an opened FITS file

column integer or string : index (or name) of column

array of real or list of string : the table column as array of real or string if the column type is string

FITSExtractimage v

FITSExtractimage integer : a reference to an opened FITS file

start list of integer : for each dimension of the image, the first element to read. 1-based

length list of integer : for each dimension of the image, number of elements to read

array of real or record