28.12.2012 Views

Figure Properties - SERC

Figure Properties - SERC

Figure Properties - SERC

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

fitsread<br />

2fitsread<br />

Purpose Extract data from a FITS file<br />

Syntax data = fitsread(filename)<br />

data = fitsread(filename, 'raw')<br />

data = fitsread(filename, extname)<br />

data = fitsread(filename, extname, index)<br />

Description data = fitsread(filename) reads the primary data of the Flexible Image<br />

Transport System (FITS) file specified by filename. Undefined data values are<br />

replaced by NaN. Numeric data are scaled by the slope and intercept values and<br />

are always returned in double precision.<br />

2-848<br />

data = fitsread(filename, extname) reads data from a FITS file according<br />

to the data array or extension specified in extname. You can specify only one<br />

extname. The valid choices for extname are shown in the following table.<br />

Data Arrays or Extensions<br />

extname Description<br />

'primary' Read data from the primary data array.<br />

'table' Read data from the ASCII Table extension.<br />

'bintable' Read data from the Binary Table extension.<br />

'image' Read data from the Image extension.<br />

'unknown' Read data from the Unknown extension.<br />

data = fitsread(filename, extname, index) is the same as the above<br />

syntax, except that if there is more than one of the specified extension type<br />

extname in the file, then only the one at the specified index is read.<br />

data = fitsread(filename, 'raw', ...) reads the primary or extension<br />

data of the FITS file, but, unlike the above syntaxes, does not replace undefined<br />

data values with NaN and does not scale the data. The data returned has the<br />

same class as the data stored in the file.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!