Institut für Astronomie und Astrophysik
Abteilung AstronomieSand 1, D-72076 Tübingen, Germany
Read in data set from fits file (binary/ascii table)
Read the file as an fits file containing the data in tables. Images are still not supported.
(optional) parameters are ordered as follows: xcol - The column number for the X axis. This may be either the column name or its number. Default is column 1. ycol - The column number or name for the Y axis. Default is column 2. errcol - The column number or name for the ERROR axis. Default is no error reading. No error is read if the column is set explicitely at "" (i.e. no entry between the comma). extension - The extension number. If not given the extension number 1 is used (first extension). All parameters are separated with ",". If one parameter is not defined (empty string) the default column is used.
All keywords/options may be set with the "set" command. The command prefix is "data_fits", the setup keyword is as used for parameters above.
Loads file data into environment.
> data, rate.fits[time,rate]:3, -> loads in data from fits file rate.fits (marked via extension fits) to first subgroup in group 3; x column is the one named "time". > data,event.fits[barytime_1,pif_1,,2] -> read in event data (with time in x column) without error and a pif-value in the y column.
$Id: cafe_data_fits.pro,v 1.15 2005/02/17 07:52:25 goehler Exp $
[Home Page] [Software, Documentation] [IDL Documentation] [Quick Reference] [Feedback]