cwitools.measurement.area

cwitools.measurement.area(obj_in, obj_id=1, unit='px2')

Measure the spatial (projected) area of a 2D or 3D object.

Parameters:
  • obj_in (astropy HDU or HDUList) – 2D or 3D mask of object(s) with header.
  • obj_id (int) – The ID of the object to measure. Default is 1.
  • unit (str) – Output unit of radius measurement. ‘px2’: square pixels ‘arcsec2’: square arcseconds
  • redshift (float) – The redshift of the object(s)
  • cosmology (FlatLambdaCDM) – Cosmology to use, as one of the inbuilt ~astropy.cosmology.FlatLambdaCDM instances (default WMAP9)
Returns:

The effective radius in the requested units

Return type:

float