All the examples shown here were provided by Yang for 2011.05.09_07:00:00_TAI. I believe the inversion code used to generate these does not include Rebecca's fix from roughly 2012.02.13. According to Yang, the median and rms were computed excluding pixels which were in active region patches, and the fits he provided were made with Chebyshev polynomials.
Before considering the threshold, first consider some properties of the median, the fits to the median, and the rms.
The median (left) and the 15th order fit to the median (middle), scaled between 40 and 180, and the rms (right), scaled between 20 and 80.
Slice across the disk at y=1024 (top) and y=2048 (bottom), showing the median (black), the 15th order fit to the median (blue), the 5th order fit to the median (green) and the rms (purple).
All of these show variations which are not simply a function of the distance from disk center. Subjectively, the 15th order fit appears to capture the variations quite well, whereas the 5th order fit misses some of the variations.
In both the images and the slices, it can be seen that the median is generally smaller immediately to the left of disk center compared to immediately to the right of disk center, while the opposite is true closer to the limb. It can also be seen (note the different scale for the rms image) that the rms is smaller than the median, usually by at least a factor of two, although slightly less close to x=1500. The amplitude of the large scale variations in the rms is also substantially less than the large scale variations in the median.
Scatter plot of the median versus the rms. The correlation coefficient is +0.24. My guess is that this mainly reflect the center to limb variation, where both typically increase, at least close to the limb. There is also a tail to large values of the rms for median values around 100, but it does occurs at a relatively constant value of the median.
Now consider using the median, the fit to the median and the rms to determine a threshold for the disambiguation module. All the images which follow show the line of sight component of the field, saturated at +/-500G. Contours indicate possible mask arrays defining which pixels to disambiguate using simulated annealing. The left column shows blue contours of the chosen threshold itself, while the middle and right columns show red contours of the mask array after eroding by 1 pixel, which eliminates isolated pixels in the mask. The annealing algorithm cannot properly treat isolated pixels, as it uses finite difference to calculate derivatives. The right column is the subarea from pixels 2000:3000 and 1000:2000.
Multiples of the median field strength.Using the median itself as the threshold (top row, left) includes many noise-dominated pixels in the mask. After eroding (top row, middle), there is still a (weak) large-scale variation present, possibly due to the variations in the RMS, as pointed out by Jesper. In detail (top row, right), many pixels likely dominated by noise can still be seen within the mask.
Using twice the median as the threshold (middle row, left) shows the large-scale variation. However, after eroding (middle row, middle), there is very little indication of it remaining. However, there appear to be some pixels excluded by the eroded mask which may be well-measured (middle row, right).
Using three times the median as the threshold (bottom row, left) shows a weaker large-scale variation. After eroding (bottom row, middle), it is no longer evident. However, there appear to be quite a few pixels excluded by the eroded mask which may be well-measured (bottom row, right).
Multiples of the fit to the median.Repeat the above analysis using the 15th order fit to the median. For a given multiple of the fit to the median, the large scale variation is less pronounced than when using the median itself.
Sum of fit to the median and RMS.Repeat using the sum of the fit to the median and the rms. Before eroding, this is similar to using just the median, which is consistent with the typical amplitude of the rms being smaller than the typical amplitude of the median. After eroding, this is similar to eroding twice the median.
Fit to the median plus a constant.To determine whether the variations in the rms are important, repeat using the sum of the fit to the median and the constant value 50. Before and after eroding, the results are similar to use the sum of the fit to the median and the RMS.
Summary:The following plots compare the 15th order fit to the median (blue) to the 15th order fit to the field itself, excluding active regions patches (red) and excluding active region "blobs" (purple), overlaid on the median (first three images) or the field itself (fourth image). The first four plots are slices at y=1024, y=1400 y=2048 and y=1400; the last image is the difference between the fits, scaled to +/-20, overlaid with contours of the field at 500,1000.
For the most part, the single time fit is within 10 of the fit to the median, but there are some noticeable difference close to the strong field. Perhaps we need to adjust how the strong field areas are removed?
There are also some clear differences very close to the limb, with the single time fit approaching larger values at the limb. This is probably not important for the disambiguation, as I think these pixels are too close to the limb to be disambiguated using simulated annealing.
Single time fit plus constantThe following images are the results of using the fit to the field at a single time plus 50 to construct the mask array. The results are generally similar to using the fit to the median.