sourcefinder.accessors.fitsimageblob ==================================== .. py:module:: sourcefinder.accessors.fitsimageblob Attributes ---------- .. autoapisummary:: sourcefinder.accessors.fitsimageblob.logger Classes ------- .. autoapisummary:: sourcefinder.accessors.fitsimageblob.FitsImageBlob Module Contents --------------- .. py:class:: FitsImageBlob(hdulist, plane=None, beam=None, hdu_index=0) Bases: :py:obj:`sourcefinder.accessors.fitsimage.FitsImage` A FITS image blob. Same as ``sourcefinder.accessors.fitsimage.FitsImage`` but constructed from an in-memory FITS file, not a FITS file on disk. :Parameters: **hdulist** : astropy.io.fits.HDUList The HDU list representing the in-memory FITS file. **plane** : int, default: None If the data is a datacube, specifies which plane to use. **beam** : tuple, default: None Beam parameters in degrees, in the form (bmaj, bmin, bpa). If not supplied, the method will attempt to read these from the header. **hdu_index** : int, default: 0 The index of the HDU to use from the HDU list. .. !! processed by numpydoc !! .. py:method:: _get_header(*args) Retrieve the header from the specified HDU. :Parameters: **\*args** : tuple Positional arguments where: - args[0] is the HDU list (astropy.io.fits.HDUList). - args[1] is the index of the HDU to use. :Returns: astropy.io.fits.Header The header of the specified HDU. .. !! processed by numpydoc !! .. py:method:: read_data(*args) Read and process the data from the specified HDU. :Parameters: **\*args** : tuple Positional arguments where: - args[0] is the HDU list (astropy.io.fits.HDUList). - args[1] is the index of the HDU to use. - args[2] is the plane index (int) if the data is a datacube. :Returns: numpy.ndarray The processed 2D data array. Processing here means remove axes of length 1, select the plane index from the datacube if needed, and transpose. .. !! processed by numpydoc !! .. py:attribute:: data .. py:attribute:: header .. py:attribute:: pixelsize .. py:attribute:: url :value: 'AARTFAAC streaming image' .. py:attribute:: wcs .. py:data:: logger