Robust method for calculating the deviation of an array. sigma_func uses the median absolute deviation to determine the standard deviation.
arr : CCDData or ndarray
Array whose deviation is to be calculated.
float
standard deviation of array