GratingImage
#
- class pygrating.pygrating.GratingImage(file_name, crop=True, verbose=True)#
Class to visualise CCDLAB reduced UVIT Grating image and identifying sources
- crop_to_circle(rmax=2000)#
Crop to central circular region. UVIT pixel scale: 1 pixel = 0.41684142 arcsec –> 2000 pix ~ 13.9 arcmin
- Parameters
rmax (int) – Radius of the usable region in pixels
- Returns
data (numpy.ndarray) – Cropped image data
data_smooth (numpy.ndarray) – Cropped smooth image data
- identify_sources(prominence=3.0, plot=True)#
Detects sources by averaging across dispersion axis and identifies peaks based on prominance.
- Parameters
prominence (float) – Multiplication factor for measuring the prominance for the peak detection. [prominence * standard_deviation]
- Returns
ypix_list – y pixels of all detected sources.
- Return type
list
- plot(ax=None)#
Plot the image. Option to show detected sources if available.