function readfits

Read specified FITS file into memory. The optional arguments x1, x2, y1, y2, z1, z2 can be used to read in a part of a FITS file. The combination 0, 0 specifies that the complete range of the respective axis should be read in.

Syntax
result = readfits(FILENAME [, x1, x2 [, y1, y2 [, z1, z2]]])

Arguments
FILENAME:   A string.
x1, x2:   Range in first dimension, defaults to 0, 0
y1, y2:   Range in second dimension, defaults to 0, 0
z1, z2:   Range in third dimension, defaults to 0, 0


Examples
Read in the 150th to 160th slice of a datacube:
   subcube = readfits("cube.fits", 0, 0, 0, 0, 150, 160)

See also
function readfitsextension
function readfitsall