| growthcurve | ctio | growthcurve |
growthcurve -- Correct magnitudes using the growth curve for them
growthcurve files naps small large
This is a CL script task that takes output files coming from the APPHOT
package, computes a growth curve for the magnitudes determined by APPHOT,
and finally corrects the magnitudes for a given aperture using the growth
curve information.
The first step done by the script is to extract the magnitudes, for all
the objects, from the first aperture to the last aperture specified
by naps
.
Then, for each object, the task computes the difference in magnitude
between one aperture and the next one. The differences are then piped
to curfit
in order to fit a curve to the data (growth curve).
Once the fit is finished, the task takes the output from curfit
,
and sums all the differences, from the aperture specified by small
to the aperture specified by large
parameter.
This sum is used to correct the magnitudes of all objects for the aperture
specified by small
.
There is one output file for each file in the input list. The output
file name will be generated automatically from the input file name. If the
input file name contains a ".mag." in its name, then the output file name
will be the same as the input file name, but with the ".mag." replaced by
a ".grw.". Otherwise the output file name will be the input file name with
a".grw" suffix.
Each output file will contain the object id, the magnitude without
correction (from APPHOT), the corrected magnitude value, and the
magnitude error (from APPHOT).
The task expects the apertures to be sorted, with the one having the
smallest diameter first and the largest diameter at the end.
It is not possible to use any commands that generate output to the
standard output when fitting interactively with CURFIT, since the
output of CURFIT is internally redirected to a file.
apphot.apselect, utilities.curfit