This is an limb darkening implementation based on Bertello 2010 paper https://link.springer.com/article/10.1007/s11207-010-9570-z.
- Idea is to calculate solar disc radius and centre.
- Divide the solar disc by the median filtered image.
-
A gradient Image is calculated, using the method described here
-
While following the method, it has been observed that, at very high slopes, It is impractical to make 7x5 boxes before and after the point, hence a parameter called angle is introduced, which considers all points in the angular area -angle to +angle with slope infinite. This value of angle depends on instrument to instrument.
-
For Kodaikanal data, I found the value of angle values 25 for H alpha data and 7 for CaK data.
-
Histogram is found for the gradient image (which is basically an edge enhanced image), and using the histogram, a threshold value has been obtained, above which all points are considered on solar disc radii.
-
Using all those points, least square fitting has been done to find accurate radii and centre coordinates.
-
Once we have the centre and radius, we convert flat fielded images to 512x512 for faster processing, do a median filter with size 105x105, and divide the solar disc with median filtered image to get the limb darkening corrected image.
python3 setup.py build_ext --inplace
- output_images
- gradient_images
- profiles
import halpha
base_path = '/Users/harshmathur/Documents/H alpha20170803/'
dark_image = 'Dark_20170803_133401800.fits'
flat_image = 'Flat_20170803_112801100.fits'
angle = 7 # 25 for H alpha, 7 for CaK images
halpha.limb_darkening_corrected_flow( base_path, image, dark_image, flat_image, angle )