CApphot Class Description
The CApphot class manages the operation of aperture photometry routines. These routines are used for computing the total brightness of a point sources. For astronomical applications, this is used to measure stars and other objects that are unresolved or of small angular extent. The aperture may be a circle or an ellipse. The background is subtracted from the measurement and may be computed locally or assigned a specified value.
Construction |
Object = CApphot:new() |
Destruction |
Object:delete() |
These properties hold the data used by each instance of a CApphot object to configure measurements and hold the measured values that are returned. The GetImageParams and Measure methods listed below are Accessor Methods that return the values of various properties.
Creates a new instance of the CApphot class. There are 2 constructor formats. |
|
Deletes the instance of the CApphot object. |
|
Copies the properties of this CApphot object to a new CApphot object. |
Reads the image header and fetches the values of camera gain, readout noise, exposure time, and the photometric zero point and its error. These values are returned as class properties. See CApphot Properties. |
|
Performs an aperture photometry measurement at a (column,row) coordinate in an image. |
|
Sets the method used to evaluate the background in the Measure method. Four options are provided: mean, median, mode, and value. |
|
Returns an integer number indicating the status returned by the Measure and GetImageParams methods.
|
|
Returns a string indicating "Success" or the error message generated by the photometry method (see GetStatusCode). |
These methods return values of class properties.
Returns the X position of the center of the measuring apertures. |
|
Returns the Y position of the center of the measuring apertures. |
|
Returns the net count for the object, measured in counts (or "ADU" or "DN"). If the bRemoveBg flag is true, this is the net count above the background. Otherwise, this gives the total count above zero. |
|
Returns the uncertainty in the net count for the object, measured in counts (or "ADU" or "DN"). |
|
Returns the theoretical uncertainty in the net count for the object, measured in counts (or "ADU" or "DN"). |
|
Returns the background value per pixel, measured in counts (or "ADU" or "DN"). If the bRemoveBg flag is true, this value was subtracted from the total to calculate nNetCount. This is identical to the BgCount method in previous versions. |
|
Returns the error in the background value (per pixel). This is a 1-sigma mean error, not the error of the mean background, and is measured in units of counts (or "ADU" or "DN"). If the bRemoveBg flag is true, this value was subtracted from the total count to calculate nNetCount. This is identical to the BgCountErr method in previous versions. |
|
Returns the measured magnitude of the object. If the bApplyZeroPt flag was true, this includes the photometric zero point set in the nZeroPt value. |
|
Returns the random error in the value of nMag as calculated from the noise measured in the background sample. If the bApplyZeroPtErr flag was true, this includes the photometric zero point error set in the nZeroPtErr value. This is identical to the MagError method in previous versions. |
|
Returns the theoretical random error in the value of nMag as calculated using only the instrumental values but not the actual noise measured in the background sample. If the bApplyZeroPtErr flag was true, then this includes the photometric zero point error set in the nZeroPtErr value. This is identical to the MagErrorT method in previous versions. |
|
Returns the Signal to Noise Ratio of the signal measured inside the object aperture of radius nRadius1. |
|
Returns the theoretical Signal to Noise Ratio of the signal measured inside the object aperture of radius nRadius1. |