IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 24, 2007, 11:27:58 AM (19 years ago)
Author:
eugene
Message:

update from eam_branch_20070921

File:
1 edited

Legend:

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

    r14936 r15000  
    66 * @author EAM, IfA
    77 *
    8  * @version $Revision: 1.16 $ $Name: not supported by cvs2svn $
    9  * @date $Date: 2007-09-21 00:05:35 $
     8 * @version $Revision: 1.17 $ $Name: not supported by cvs2svn $
     9 * @date $Date: 2007-09-24 21:27:58 $
    1010 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii
    1111 */
     
    1919// type of model carried by the pmModel structure
    2020typedef int pmModelType;
    21 
    22 typedef enum {
    23     PM_PSF_APTREND_ERROR = 0,
    24     PM_PSF_APTREND_NONE,
    25     PM_PSF_APTREND_CONSTANT,
    26     PM_PSF_APTREND_SKYBIAS,
    27     PM_PSF_APTREND_SKYSAT,
    28     PM_PSF_APTREND_XY_LIN,
    29     PM_PSF_APTREND_XY_QUAD,
    30     PM_PSF_APTREND_SKY_XY_LIN,
    31     PM_PSF_APTREND_SKYSAT_XY_LIN,
    32     PM_PSF_APTREND_ALL
    33 } pmPSFApTrendOptions;
    3421
    3522/** pmPSF data structure
     
    4936    pmModelType type;                   ///< PSF Model in use
    5037    psArray *params;                    ///< Model parameters (psPolynomial2D)
     38    psStats *psfTrendStats;             ///< psf parameter trend clipping stats
    5139    psPolynomial1D *ChiTrend;           ///< Chisq vs flux fit (correction for systematic errors)
    5240    pmTrend2D *ApTrend;                 ///< ApResid vs (x,y)
     
    5947    int nPSFstars;                      ///< number of stars used to measure PSF
    6048    int nApResid;                       ///< number of stars used to measure ApResid
    61     bool poissonErrors;
     49    int fieldNx;
     50    int fieldNy;
     51    int fieldXo;
     52    int fieldYo;
     53    bool poissonErrorsPhotLMM;          ///< use poission errors for non-linear model fitting
     54    bool poissonErrorsPhotLin;          ///< use poission errors for linear model fitting
     55    bool poissonErrorsParams;           ///< use poission errors for model parameter fitting
    6256    pmGrowthCurve *growth;              ///< apMag vs Radius
    6357    pmResiduals *residuals;             ///< normalized residual image (no spatial variation)
    6458}
    6559pmPSF;
     60
     61typedef struct {
     62    pmModelType   type;
     63    psStats      *stats;                // psfTrend clipping stats
     64    pmTrend2DMode psfTrendMode;
     65    int           psfTrendNx;
     66    int           psfTrendNy;
     67    int           psfFieldNx;
     68    int           psfFieldNy;
     69    int           psfFieldXo;
     70    int           psfFieldYo;
     71    bool          poissonErrorsPhotLMM; ///< use poission errors for non-linear model fitting
     72    bool          poissonErrorsPhotLin; ///< use poission errors for linear model fitting
     73    bool          poissonErrorsParams; ///< use poission errors for model parameter fitting
     74    float         radius;
     75} pmPSFOptions;
    6676
    6777# define PM_PAR_E0 PM_PAR_SXX
     
    7484 *
    7585 */
    76 pmPSF *pmPSFAlloc(
    77     pmModelType type,     // type of model for PSF
    78     bool poissonErrors,
    79     psPolynomial2D *psfTrendMask
    80 );
    81 
    82 bool pmPSFMaskApTrend (psPolynomial4D *trend, pmPSFApTrendOptions option);
    83 
    84 pmPSFApTrendOptions pmPSFApTrendOptionFromName (char *name);
     86pmPSF *pmPSFAlloc (pmPSFOptions *options);
     87pmPSFOptions *pmPSFOptionsAlloc ();
    8588
    8689double pmPSF_SXYfromModel (psF32 *modelPar);
     
    9194
    9295bool pmPSF_AxesToModel (psF32 *modelPar, psEllipseAxes axes);
     96bool pmPSF_FitToModel (psF32 *fittedPar, float minMinorAxis);
     97
     98psEllipsePol pmPSF_ModelToFit (psF32 *modelPar);
    9399psEllipseAxes pmPSF_ModelToAxes (psF32 *modelPar, double maxAR);
    94 bool pmPSF_FitToModel (psF32 *fittedPar, float minMinorAxis);
    95 psEllipsePol pmPSF_ModelToFit (psF32 *modelPar);
    96100
    97101/// @}
Note: See TracChangeset for help on using the changeset viewer.