sigma_func

ccdproc.sigma_func(arr, axis=None)[source]

Robust method for calculating the deviation of an array. sigma_func uses the median absolute deviation to determine the standard deviation.

Parameters:

arr : CCDData or ndarray

Array whose deviation is to be calculated.

axis : None or int or tuple of ints, optional

Axis or axes along which the function is performed. If None (the default) it is performed over all the dimensions of the input array. The axis argument can also be negative, in this case it counts from the last to the first axis.

Returns:

float

uncertainty of array estimated from median absolute deviation.