{ } Raw JSON

bundles / astropy 7.0.1 / astropy / io / fits / file / _File / readarray

function

astropy.io.fits.file:_File.readarray

source: /astropy/io/fits/file.py :301

Signature

def   readarray ( self size = None offset = 0 dtype = <class 'numpy.uint8'> shape = None )

Summary

Similar to file.read(), but returns the contents of the underlying file as a numpy array (or mmap'd array if memmap=True) rather than a string.

Extended Summary

Usually it's best not to use the size argument with this method, but it's provided for compatibility.

Aliases

  • astropy.io.fits.convenience._File.readarray