{ } Raw JSON

bundles / astropy latest / astropy / io / fits / hdu / image / Section / __getitem__

function

astropy.io.fits.hdu.image:Section.__getitem__

source: /astropy/io/fits/hdu/image.py :991

Signature

def   __getitem__ ( self key )

Summary

Returns a slice of HDU data specified by key.

Extended Summary

If the image HDU is backed by a file handle, this method will only read the chunks of the file needed to extract key, which is useful in situations where the file is located on a slow or remote file system (e.g., cloud storage).

Aliases

  • astropy.io.fits.Section.__getitem__