Prepare an input file for the profiles.sh code.
% profiles_prep --help
usage: profiles_prep a.fits [-v] [-h] [-r 100.0]
Additional options:
-v = print verbose comments and run in debug mode
-h = show a help file and then exit
-r = max radius for apertures (rmax=0.0 to use region ds9 region to defibe)
EXAMPLES:
% ls
20191018T084633.3_acm_sci.fits 20191018T084633.3_acm_sci.reg
% profiles_prep 20191018T084633.3_acm_sci.fits
% cat 20191018T084633.3_acm_sci.profpars
# Output columns from profpars (using midodata.2)
Col01 = X center, pixels (from centroid)
Col02 = Y center, pixels (from centroid)
Col03 = semi-major axis length in pixels
Col04 = b/a axis ratio
Col05 = position angle (degrees) of major axis
Col06 = local background measured in local annulus
Col07 = mean bkg (signal per pixel) from BOX regions
Col08 = mean error of mean bkg (BOX regions)
Col09 = id, line number in regions file
# data
413.900 301.950 34.000 1.00000 0.000 482.8040 479.3014 3.0678 1
% profiles_prep 20191018T084633.3_acm_sci.fits -r 43.0
% tail -4 20191018T084633.3_acm_sci.profpars
Col08 = mean error of mean bkg (BOX regions)
Col09 = id, line number in regions file
# data
413.900 301.950 43.000 1.00000 0.000 482.8040 479.3014 3.0678 1
^^^^^^^^
Note that we have used the same regions file in bot cases of the example above. However
i the second case we used the "-r" flag to set the macimum radius that will be used
for every aperture in our profile run.