Skip to main content

read_fits_image

Function read_fits_image 

Source
pub fn read_fits_image(path: &Path) -> Result<Array2<f64>, IoError>
Expand description

Read the primary image of a FITS file as counts in (row, column).

ยงErrors

IoError::FileNotFound if the file cannot be read; IoError::InvalidParameter if the primary image is not 2-D with an integer BITPIX of 8, 16 or 32, BZERO or BSCALE is not whole, the file is short, or a count is not within 0 to 2^53.