measure_noise#

madcubapy.operations.maps.measure_noise(fitsmap, statistic='std', **kwargs)[source]#

Measure the noise (sigma) in a map object by calculating the standard deviation (std) or root mean square (rms) inside several polygons selected by mouse clicks.

  • Left clicks create polygon vertices.

  • Right click closes the current polygon, and a subsequent left click starts a new polygon.

Parameters:
fitsmapMadcubaMap or CCDData

Map object to analize.

statistic{‘std’, ‘rms’}, optional

Statistic to be used as sigma. Defaults to ‘std’ and can be changed at runtime via GUI buttons.

Returns:
sigmaQuantity

Measured noise of the image in the same units as the data array.

Other Parameters:
**kwargs

Optional map visualization parameters passed to add_wcs_axes().

Notes

The function can be aborted by closing the window or pressing ‘q’.