Diffuse Background Estimation
The diffuse background emission estimation routine tries to decouple the components of flux in the image produced by diffuse emission and point sources.
Note
From here on, “Diffuse background emissions” are known as “background emissions”. This is not to be confused with the “background emission” noise in the image, produced by the instruments. Measuring this noise is not a process starbug2 does.
The background estimation routine is called with the -B or --background flags. This will create an image fits file the same shape as the input image, with the suffix -bgd appended to the filename. This image will contain the estimated background emissions with the same pixel flux unit as the input image.
In the example below, the left image shows a dusty raw input image into the routine, the right shows an estimated background result.
The routine requires a source list to be loaded using -d sourcelist.fits or generated with the detection routine. Running the routine looks something like:
$starbug2 -vd image-ap.fits -B image.fits
Relevant Parameters
- BGD_R
The routine will mask stars using varying aperture sizes which it attempts to calculate. Sometimes this will produce a suboptimal result. If you are unhappy with the default variable aperture masking, set a constant aperture mask radius in pixel units with this parameter.
The exact performance of the routine is difficult to measure in isolation. You may look at the resulting image and think it looks good, but find in the later PSF photometry, that starbug2 over or under subtracts the PSF. This may be due to a bad background estimation. Try altering this value and rerunning the PSF routine to see if you can change the outcome.
- BOX_SIZE
There will be a kernel passed over the image to build the 2D image of the background. This parameter sets the width of that kernel in pixel units. By default this is set low, which will result in a high resolution estimation of the background, but may be susceptible to bright features or noise in the image. Widening the kernel will result in a more “fuzzy” estimation but will smooth over the noise. Both approaches are appropriate in different situations.
- AP_FILE
Set the source list to be loaded into the background routine. Synonymous with
-d sourcelist.fits.