{ } Raw JSON

bundles / astropy latest / astropy / io / fits / fitsrec / FITS_rec / _get_raw_data

function

astropy.io.fits.fitsrec:FITS_rec._get_raw_data

source: /astropy/io/fits/fitsrec.py :1028

Signature

def   _get_raw_data ( self )

Summary

Returns the base array of self that "raw data array" that is the array in the format that it was first read from a file before it was sliced or viewed as a different type in any way.

Extended Summary

This is determined by walking through the bases until finding one that has at least the same number of bytes as self, plus the heapsize. This may be the immediate .base but is not always. This is used primarily for variable-length array support which needs to be able to find the heap (the raw data may be larger than nbytes + heapsize if it contains a gap or padding).

May return None if no array resembling the "raw data" according to the stated criteria can be found.

Aliases

  • astropy.io.fits.FITS_rec._get_raw_data