IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 8, 2008, 8:36:06 AM (18 years ago)
Author:
eugene
Message:

merging from eam_branch_20080324 : psphot work on extended source fitting and related I/O functions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/objects/pmSource.h

    r16819 r17396  
    33 * @author EAM, IfA; GLG, MHPCC
    44 *
    5  * @version $Revision: 1.23 $ $Name: not supported by cvs2svn $
    6  * @date $Date: 2008-03-05 01:08:08 $
     5 * @version $Revision: 1.24 $ $Name: not supported by cvs2svn $
     6 * @date $Date: 2008-04-08 18:35:38 $
    77 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii
    88 */
     
    2222 * source.
    2323 *
    24  * XXX: The values given below are currently illustrative and will require
    25  * some modification as the source classification code is developed. (TBD)
    26  *
    2724 */
    2825typedef enum {
    29     PM_SOURCE_TYPE_UNKNOWN,  ///< a cosmic-ray
    30     PM_SOURCE_TYPE_DEFECT,  ///< a cosmic-ray
    31     PM_SOURCE_TYPE_SATURATED,  ///< random saturated pixels
    32     PM_SOURCE_TYPE_STAR,  ///< a good-quality star
    33     PM_SOURCE_TYPE_EXTENDED,  ///< an extended object (eg, galaxy)
     26    PM_SOURCE_TYPE_UNKNOWN,             ///< not yet classified
     27    PM_SOURCE_TYPE_DEFECT,              ///< a cosmic-ray
     28    PM_SOURCE_TYPE_SATURATED,           ///< random saturated pixels (eg, bleed trails)
     29    PM_SOURCE_TYPE_STAR,                ///< a good-quality star (subtracted model is PSF)
     30    PM_SOURCE_TYPE_EXTENDED,            ///< an extended object (eg, galaxy) (subtracted model is EXT)
    3431} pmSourceType;
    3532
     
    4845    PM_SOURCE_MODE_BADPSF     = 0x0400, ///< Failed to get good estimate of object's PSF
    4946    PM_SOURCE_MODE_DEFECT     = 0x0800, ///< Source is thought to be a defect
    50     PM_SOURCE_MODE_SATURATED  = 0x1000, ///< Source is thought to be saturation
    51     PM_SOURCE_MODE_CRLIMIT    = 0x2000, ///< Source has crNsigma above limit
    52     PM_SOURCE_MODE_SUBTRACTED = 0x4000, ///< XXX this flag is actually only used internally (move)
     47    PM_SOURCE_MODE_SATURATED  = 0x1000, ///< Source is thought to be saturated pixels (bleed trail)
     48    PM_SOURCE_MODE_CR_LIMIT   = 0x2000, ///< Source has crNsigma above limit
     49    PM_SOURCE_MODE_EXT_LIMIT  = 0x4000, ///< Source has extNsigma above limit
     50    PM_SOURCE_MODE_SUBTRACTED = 0x8000, ///< XXX this flag is actually only used internally (move)
    5351} pmSourceMode;
    5452
     
    6058 *
    6159 *  XXX do I have to re-organize this (again!) to allow an arbitrary set of extended model fits??
     60 *  XXX put the Mag and Err inside the pmModel?
     61 *  XXX keep the modelEXT or add to the psArray
     62 * 
    6263 *
    6364 */
     
    6566    const int id;                       ///< Unique ID for object
    6667    int seq;                            ///< ID for output (generated on write)
    67     pmPeak *peak;                       ///< Description of peak pixel.
     68    pmPeak  *peak;                      ///< Description of peak pixel.
    6869    psImage *pixels;                    ///< Rectangular region including object pixels.
    6970    psImage *weight;                    ///< Image variance.
     
    7273    psImage *modelFlux;                 ///< cached copy of the best model for this source
    7374    psImage *psfFlux;                   ///< cached copy of the psf model for this source
    74     pmMoments *moments;                 ///< Basic moments measure for the object.
     75    pmMoments *moments;                 ///< Basic moments measured for the object.
    7576    pmModel *modelPSF;                  ///< PSF Model fit (parameters and type)
    76     pmModel *modelEXT;                  ///< EXT (floating) Model fit (parameters and type).
    77     pmModel *modelConv;                 ///< PSF-Convolved Model fit (parameters and type).
     77    pmModel *modelEXT;                  ///< EXT Model fit used for subtraction (parameters and type)
     78    psArray *modelFits;                 ///< collection of extended source models (best == modelEXT)
    7879    pmSourceType type;                  ///< Best identification of object.
    79     pmSourceMode mode;                  ///< Best identification of object.
    80     psArray *blends;
    81     float psfMag;                       ///< calculated from flux in modelPsf
     80    pmSourceMode mode;                  ///< analysis flags set for object.
     81    psArray *blends;                    ///< collection of sources thought to be confused with object
     82    float psfMag;                       ///< calculated from flux in modelPSF
    8283    float extMag;                       ///< calculated from flux in modelEXT
    8384    float errMag;                       ///< error in psfMag OR extMag (depending on type)
    8485    float apMag;                        ///< apMag corresponding to psfMag or extMag (depending on type)
    8586    float pixWeight;                    ///< model-weighted coverage of valid pixels
    86     float psfChisq;                      ///< probability of PSF
     87    float psfChisq;                     ///< probability of PSF
    8788    float crNsigma;                     ///< Nsigma deviation from PSF to CR
    8889    float extNsigma;                    ///< Nsigma deviation from PSF to EXT
     90    float sky, skyErr;                  ///< The sky and its error at the center of the object
    8991    psRegion region;                    ///< area on image covered by selected pixels
    90     float sky, skyErr;                  ///< The sky and its error at the center of the object
    9192    pmSourceExtendedPars *extpars;      ///< extended source parameters
    9293};
Note: See TracChangeset for help on using the changeset viewer.