cwitools.synthesis.sum_spec_r¶
-
cwitools.synthesis.
sum_spec_r
(fits_in, ra, dec, redshift, radius, var_cube=None, wmask=None, rescale_cov=False)¶ Get summed spectrum of a region specified by a center and radius.
Parameters: - fits_in (HDUList or HDU) – The input FITS with data cube
- ra (float) – The right-ascension of the central position, in degress.
- dec (float) – The declination of the central position, in degrees.
- redshift (float) – The redshift of the source
- radius (float) – The radius, in proper kpc, within which to sum.
- wmask (list) – List of wavelength tuples to mask
Returns: - Table with columns ‘wav’ (wavelength), ‘flux’,
and - if var_cube was provided - ‘flux_err’.
Return type: astropy.io.fits.TableHDU