cwi_obj_lum¶
-
cwitools.scripts.obj_lum.
obj_lum
(cube, obj, obj_id, redshift, cosmology='WMAP9', var=None, log=None, silent=None)¶ Measure the integrated luminosity of an object.
Parameters: - fits_in (str) – The input data FITS (can be 1D, 2D or 3D) If input is 2D, it is assumed to have units erg/s/cm2/arcsec2. If input is 1D or 3D, units are assumed to be erg/s/cm2/angstrom
- obj (numpy.ndarray) – The object masj cube
- obj_id (int or list) – The ID (or IDs) of the object(s) to include.
- redshift (float) – The redshift of the source.
- cosmology (str) – One of the built-in astropy cosmologies, can be ‘WMAP5’, ‘WMAP7’, ‘WMAP9’, ‘Planck13’ or ‘Planck15’.
- var (str) – Array of same dimensions as data and mask, containing variance estimates. Used to propagate error on luminosity.
- log (str) – Path to log file to save output to.
- silent (bool) – Set to TRUE to suppress standard output.
Returns: The integrated luminosity of the source in erg/s. float: The error on the luminosity calculation.
Return type: float