Compute photometric parameters for each region listed in the local ds9 regions file of a FITS image. This is an updated version of the older mido.sh code which had no options or error checking and very little documentation. This version was begun in Jun2020 when I installed the option to use fixed inner and outer annuli for the background area for each region. Some new features of mido2.sh are:
% mido2.sh --help usage: mido2.sh a.fits [-v] [-h] [-r1 10.0] [-r2 20.0] arg1 = FITS image to be processed (must have *.reg file) Additional options: -v = print verbose comments and run in debug mode -h = show a help file and then exit -c = name of configuration file with parameter values -r1 = inner radius of background annulus in pixels -r2 = outer radius of background annulus in pixels Exammple where we set the inner and outer radii of the background annulus: % mido2.sh /home/sco/AUTO_match_for_wcs/S/20191018T024545.3_acm_sci.fits -r1 55.0 -r2 60.0
The default mode in mido2.sh (and mido.sh) is to set the background annulus using fractions of the ds9 region used to locate each source to me measured. If we use a cicle, the annulus is circuluar, if we used an ellipse region the annuulus is elliptical, etc... We can specifically set the inner and outer radii of the background annulus in mido2.sh, but this feature is only available fro circle markers. This was developed for use in making profile calcilations for imgcat0-detected sources. These profiles are used to establish a mean half-light radius and a mean growth curve for the measured image.
![]() |
The background annuli for circular apertures have been set
to fixed value for every source marked with a circel aperture.
% ls 20191018T024545.3_acm_sci.reg % mido2.sh /home/sco/S/20191018T024545.3_acm_sci.fits -r1 55.0 -r2 60.0 % ls 20191018T024545.3_acm_sci_bkgannuli.reg 20191018T024545.3_acm_sci.fits 20191018T024545.3_acm_sci.reg 20191018T024545.3_acm_sci.cdfp 20191018T024545.3_acm_sci.infoNotice that the one ellipse aperture has the usual annulus that is scaled to the size and shape of the original aperture. |