Main Page | Modules | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals

pmSourcePhotometry.h

Go to the documentation of this file.
00001 /** @file  pmSourcePhotometry.h
00002  *
00003  *  @author EAM, IfA; GLG, MHPCC
00004  *
00005  *  @version $Revision: 1.2 $ $Name: rel12 $
00006  *  @date $Date: 2006/04/17 18:01:05 $
00007  *
00008  *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
00009  *
00010  */
00011 
00012 # ifndef PM_SOURCE_PHOTOMETRY_H
00013 # define PM_SOURCE_PHOTOMETRY_H
00014 
00015 /**
00016  *
00017  * The function returns both the magnitude of the fit, defined as -2.5log(flux),
00018  * where the flux is integrated under the model, theoretically from a radius of 0
00019  * to infinity. In practice, we integrate the model beyond 50sigma.  The aperture magnitude is
00020  * defined as -2.5log(flux) , where the flux is summed for all pixels which are
00021  * not excluded by the aperture mask. The model flux is calculated by calling the
00022  * model-specific function provided by pmModelFlux_GetFunction.
00023  *
00024  * XXX: must code this.
00025  *
00026  */
00027 
00028 typedef enum {
00029     PM_SOURCE_PHOT_NONE   = 0x0000,
00030     PM_SOURCE_PHOT_GROWTH = 0x0001,
00031     PM_SOURCE_PHOT_APCORR = 0x0002,
00032     PM_SOURCE_PHOT_WEIGHT = 0x0004,
00033 } pmSourcePhotometryMode;
00034 
00035 bool pmSourcePhotometryModel(
00036     float *fitMag,                      ///< integrated fit magnitude
00037     pmModel *model                      ///< model used for photometry
00038 );
00039 
00040 bool pmSourcePhotometryAper(
00041     float   *apMag,                     ///< aperture flux magnitude
00042     pmModel *model,                     ///< model used for photometry
00043     psImage *image,                     ///< image pixels to be used
00044     psImage *mask                       ///< mask of pixels to ignore
00045 );
00046 
00047 bool pmSourceMagnitudesInit (psMetadata *config);
00048 bool pmSourceMagnitudes (pmSource *source, pmPSF *psf, pmSourcePhotometryMode mode);
00049 float pmSourceCrossProduct (pmSource *Mi, pmSource *Mj);
00050 float pmSourceCrossWeight (pmSource *Mi, pmSource *Mj);
00051 bool pmSourcePixelWeight (float *pixWeight, pmModel *model, psImage *image, psImage *mask);
00052 
00053 # endif /* PM_SOURCE_PHOTOMETRY_H */

Generated on Mon Jul 3 14:24:27 2006 for Pan-STARRS Module Library by  doxygen 1.4.4