uvotmaghist - make a light curve from the exposures in a UVOT image file
uvotmaghist infile=<filename> outfile=<filename> plotfile=<filename> zerofile=<filename> coinfile=<filename> psffile=<filename> syserr=<boolean> timezero=<float>: ra=<float> dec=<float> srcas=<float> bkgas=<float> srcreg=<filename> bkgreg=<filename> exclude=<string> frametime=<float> nsigma=<float> apercorr=<string> logtime=<boolean> plotcol=<string> clobber=<boolean> cleanup=<boolean> history=<boolean> chatter=<integer>
This tool makes a history of one of the quantities computed by uvotmaghist (usually magnitude) for a source versus time. It does this by doing photometry on a source in every exposure in the input UVOT SKY image file (sw*.img). This software calls uvotsource to do photometry. The output quantites are the same as for uvotsource. An optional plot is produced that shows the light curve of the source. The "plotcol" parameter controls which output column to plot as a function of time. See the fhelp for uvotsource for details on how the photometry is done, on how to use the photometry control keywords, and on the output information.
The "timezero" parameter is used to specify the start time for output time column. If it is set to "0" then the TRIGTIME keyword, if present in the input FITS file header, is used as the start time. This option is intended to produce light curves relative to the BAT trigger time of a gamma-ray burst. "Timezero" is given in mission elapsed time (MET). Use swifttime to convert times into MET. The "logtime" keyword controls whether or not the time axis of the plot is in log or linear units.
The source and background regions can be specified as standard ftools or ds9 region files (via the "srcreg" and "bkgreg" parameters), or as coordinates (in decimal degrees). Please see the fhelp for uvotsource for details on the required format for the regions files.
Exposures can be excluded using the "exclude" keyword. See uvotimsum for details. The errors in the magnitudes and the flux densities are the statistical errors based on Poisson errors in the count rates. Systematic errors due to uncertainties in the photometric zero points and flux conversion factors can be included by setting "syserr" to "yes".
1. This example illustrates running uvotmaghist specifying the input and output file names and source position on the command line.
uvotmaghist infile=images.fits outfile=maghist.fits ra=286.4 dec=-8.16
2. This example specifies source and background region files:
uvotmaghist infile=images.fits srcreg=source.reg bkgreg=back.reg
3. This example specifies how to include systematic errors and exclude extension 3.
uvotmaghist infile=images.fits srcreg=source.reg bkgreg=back.reg syserr=YES exclude=3
4. This example specifies how to produce a plot with a linear time axis starting at 2007-06-14T12:34:56. Use swifttime to determine the MET.
uvotmaghist infile=images.fits plotfile=lightcurve.gif srcreg=source.reg bkgreg=back.reg timezero=203517297 logtime=NO
uvotflux, uvotapercorr, uvotcoincidence, uvotsource, uvotimsum, uvotdetect
April 2008