cwitools.measurement.rms_radius

cwitools.measurement.rms_radius(fits_in, obj_mask, obj_id=1, unit='px', redshift=None, cosmo=FlatLambdaCDM(name="WMAP9", H0=69.3 km / (Mpc s), Om0=0.286, Tcmb0=2.725 K, Neff=3.04, m_nu=[0. 0. 0.] eV, Ob0=0.0463), pos=None)

Determines the flux-weighted RMS radius of an object.

Parameters:
  • fits_in (HDU or HDUList) – 2D or 3D flux-like data with header.
  • obj_mask (numpy.ndarray) – 2D or 3D data with labelled object regions.
  • obj_id (int) – Integer ID of the object to be measured.
  • unit (str) – Output unit of radius measurement. ‘px’: pixels ‘arcsec’: arcseconds ‘pkpc’: proper kiloparsec ‘ckpc’: comoving kiloparsec
  • cosmology (FlatLambdaCDM) – Cosmology to use, as one of the inbuilt ~astropy.cosmology.FlatLambdaCDM instances (default WMAP9)
Returns:

The flux-weighted RMS radius in the requested units

Return type:

float