cwi_obj_morpho

cwitools.scripts.obj_morpho.obj_morpho(cube, obj, obj_id, cosmology='WMAP9', redshift=None, r_unit='px', log=None, silent=None)

Measure the size and symmetry 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.
  • cosmology (str) – One of the built-in astropy cosmologies, can be ‘WMAP5’, ‘WMAP7’, ‘WMAP9’, ‘Planck13’ or ‘Planck15’.
  • redshift (float) – The redshift of the source.
  • r_unit (str) – The unit to use for measured radii. Choices: ‘px’ - pixels ‘arcsec’ - arcseconds ‘pkpc’ - proper kiloparsec ‘ckpc’ - comoving kiloparsec
  • 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