Measurement Module (cwitools.measurement)

This module contains functions focused on measuring physical scalar quantities from input data, such as size, luminosity, or eccentricity.

Tools for kinematic calculations.

Functions

area(obj_in[, obj_id, unit]) Measure the spatial (projected) area of a 2D or 3D object.
asymmetry(sb_map[, obj_mask]) Calculate the spatial asymmetry (alpha) of a 2D or 3D object.
centroid2d(fits_in[, obj_mask, obj_id, coords]) Measure the spatial centroid of an extended object.
eccentricity(sb_map[, obj_mask]) Calculate the spatial eccentricity of a 2D or 3D object.
eff_radius(obj_in[, obj_id, unit, redshift, …]) Determines the effective radius (sqrt(Area/pi)) of a 2D or 3D object.
first_moment(x, y[, y_var, get_err, method, …]) Calculate first moment.
luminosity(fits_in[, redshift, mask, cosmo, …]) Measure the integrated luminosity from 1D, 2D or 3D data.
max_radius(fits_in, obj_mask[, obj_id, …]) Determines the maximum radial extent of a 2D/3D object from its centroid.
moment2d(x_grid, y_grid, p, q, fxy) Calculate image moment of order p in x and q in y.
rms_radius(fits_in, obj_mask[, obj_id, …]) Determines the flux-weighted RMS radius of an object.
rms_velocity(fits_in) Obtain the RMS velocity from a velocity map.
second_moment(x, y[, mu1, y_var, get_err]) Calculate first moment.
specific_ang_momentum(vel_map, flx_map) Calculate the specific angular momentum of an object.