Scilab Function
Last update : 23/8/2006

fitsread - Extract data from a FITS file .

Calling Sequence

data = fitsread(filename[, extname[, index]])

Parameters

Description

Data Arrays or Extensions

extname Description
'primary' Read data from the primary data array
'table' Read data from the ASCII Table extension.The codes are not tested.
'bintable' Read data from the Binary Table extension.The codes are not tested.
'image' Read data from the Image extension.
'unknown' Read data from the Unknown extension.

Examples

	// Read FITS file test.fits into a  data.
	data = fitsread('test.fits');
	data(1:5,1:5)
		ans  =

			1.356D-19    1.356D-19    1.356D-19    1.356D-19    1.356D-19
			1.356D-19    1.356D-19    1.356D-19    1.356D-19    1.356D-19
			1.356D-19    1.356D-19    1.356D-19    1.356D-19    1.356D-19
			74.679741    81.476204    87.963593    94.11731     99.914009
			74.679741    81.476204    87.963593    94.11731     99.914009
    
    

Author

Chen jingyuan, Gan guangyong (IAPCM, Beijing,China.)

See Also

fitsinfo ,   fits_structure ,   fits_head ,   fits_image_info ,   get_fits_image ,   file_fits ,