IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 9, 2006, 6:46:03 PM (21 years ago)
Author:
magnier
Message:

updated objects code with ApTrend concept (was in eam_rel9_b0)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_rel9_p0/psModules/src/objects/pmObjects.h

    r5765 r5958  
    1010 *  @author GLG, MHPCC
    1111 *
    12  *  @version $Revision: 1.4 $ $Name: not supported by cvs2svn $
    13  *  @date $Date: 2005-12-12 21:14:38 $
     12 *  @version $Revision: 1.4.4.1 $ $Name: not supported by cvs2svn $
     13 *  @date $Date: 2006-01-10 04:46:03 $
    1414 *
    1515 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    118118pmPSFClump;
    119119
     120// type of model carried by the pmModel structure
    120121typedef int pmModelType;
    121 #define PS_MODEL_GAUSS 0
    122 #define PS_MODEL_PGAUSS 1
    123 #define PS_MODEL_QGAUSS 2
    124 #define PS_MODEL_SGAUSS 3
    125 
     122
     123typedef enum {
     124    PM_MODEL_UNTRIED,               ///< model fit not yet attempted
     125    PM_MODEL_SUCCESS,               ///< model fit succeeded
     126    PM_MODEL_NONCONVERGE,           ///< model fit did not converge
     127    PM_MODEL_OFFIMAGE,              ///< model fit drove out of range
     128    PM_MODEL_BADARGS                ///< model fit called with invalid args
     129} pmModelStatus;
    126130
    127131/** pmModel data structure
     
    142146    int nDOF;    ///< number of degrees of freedom
    143147    int nIter;    ///< number of iterations to reach min
     148    int status;         ///< fit status
    144149    float radius;   ///< fit radius actually used
    145150}
     
    157162 */
    158163typedef enum {
     164    PM_SOURCE_UNKNOWN,                  ///< a cosmic-ray
    159165    PM_SOURCE_DEFECT,                   ///< a cosmic-ray
    160166    PM_SOURCE_SATURATED,                ///< random saturated pixels
    161 
    162     PM_SOURCE_SATSTAR,                  ///< a saturated star
    163     PM_SOURCE_PSFSTAR,                  ///< a PSF star
    164     PM_SOURCE_GOODSTAR,                 ///< a good-quality star
    165 
    166     PM_SOURCE_POOR_FIT_PSF,             ///< poor quality PSF fit
    167     PM_SOURCE_FAIL_FIT_PSF,             ///< failed to get a good PSF fit
    168     PM_SOURCE_FAINTSTAR,                ///< below S/N cutoff
    169 
     167    PM_SOURCE_STAR,                     ///< a good-quality star
    170168    PM_SOURCE_GALAXY,                   ///< an extended object (galaxy)
    171     PM_SOURCE_FAINT_GALAXY,             ///< a galaxy below S/N cutoff
    172     PM_SOURCE_DROP_GALAXY,              ///< ?
    173     PM_SOURCE_FAIL_FIT_GAL,             ///< failed on the galaxy fit
    174     PM_SOURCE_POOR_FIT_GAL,             ///< poor quality galaxy fit
    175 
    176     PM_SOURCE_OTHER,                    ///< unidentified
    177169} pmSourceType;
     170
     171typedef enum {
     172    PM_SOURCE_DEFAULT    = 0x0000, ///<
     173    PM_SOURCE_PSFMODEL   = 0x0001, ///<
     174    PM_SOURCE_FLTMODEL   = 0x0002, ///<
     175    PM_SOURCE_SUBTRACTED = 0x0004, ///<
     176    PM_SOURCE_FITTED     = 0x0008, ///<
     177    PM_SOURCE_FAIL       = 0x0010, ///<
     178    PM_SOURCE_POOR       = 0x0020, ///<
     179    PM_SOURCE_PAIR       = 0x0040, ///<
     180    PM_SOURCE_PSFSTAR    = 0x0080, ///<
     181    PM_SOURCE_SATSTAR    = 0x0100, ///<
     182    PM_SOURCE_BLEND      = 0x0200, ///<
     183    PM_SOURCE_LINEAR     = 0x0400, ///<
     184    PM_SOURCE_TEMPSUB    = 0x0800, ///< XXX get me a better name!
     185} pmSourceMode;
    178186
    179187/** pmSource data structure
     
    194202    pmModel *modelFLT;   ///< FLT (floating) Model fit (parameters and type).
    195203    pmSourceType type;   ///< Best identification of object.
     204    pmSourceMode mode;   ///< Best identification of object.
     205    psArray *blends;
     206    float apMag;
     207    float fitMag;
    196208}
    197209pmSource;
     
    507519    psImage *mask,   ///< The image pixel mask (valid == 0)
    508520    pmModel *model,   ///< The input pmModel
    509     bool center    ///< A boolean flag that determines whether pixels are centered
     521    bool center,    ///< A boolean flag that determines whether pixels are centered
     522    bool sky        ///< A boolean flag that determines if the sky is subtracted
    510523);
    511524
     
    525538    psImage *mask,   ///< The image pixel mask (valid == 0)
    526539    pmModel *model,   ///< The input pmModel
    527     bool center    ///< A boolean flag that determines whether pixels are centered
     540    bool center,    ///< A boolean flag that determines whether pixels are centered
     541    bool sky        ///< A boolean flag that determines if the sky is subtracted
    528542);
    529543
Note: See TracChangeset for help on using the changeset viewer.