IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 31925


Ignore:
Timestamp:
Jul 22, 2011, 5:06:37 PM (15 years ago)
Author:
eugene
Message:

adding extFitPars to pmSource to track metadata related to extended source fitting

Location:
branches/eam_branches/ipp-20110710/psModules/src/objects
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20110710/psModules/src/objects/pmSource.h

    r31670 r31925  
    7676    pmModel *modelEXT;                  ///< EXT Model fit used for subtraction (parameters and type)
    7777    psArray *modelFits;                 ///< collection of extended source models (best == modelEXT)
     78    psArray *extFitPars;                ///< extra extended fit parameters
    7879    pmSourceType type;                  ///< Best identification of object.
    7980    pmSourceMode mode;                  ///< analysis flags set for object.
  • branches/eam_branches/ipp-20110710/psModules/src/objects/pmSourceExtendedPars.c

    r31153 r31925  
    258258    return ( psMemGetDeallocator(ptr) == (psFreeFunc) pmSourceExtendedFluxFree);
    259259}
     260
     261// *** pmSourceExtFitPars describes extra metadata related to an extended fit
     262static void pmSourceExtFitParsFree (pmSourceExtFitPars *pars) {
     263    return;
     264}
     265
     266pmSourceExtFitPars *pmSourceExtFitParsAlloc (void) {
     267
     268    pmSourceExtFitPars *pars = (pmSourceExtFitPars *) psAlloc(sizeof(pmSourceExtFitPars));
     269    psMemSetDeallocator(pars, (psFreeFunc) pmSourceExtFitParsFree);
     270
     271    pars->Mxx = NAN;
     272    pars->Mxy = NAN;
     273    pars->Myy = NAN;
     274
     275    pars->Mrf    = NAN;
     276    pars->apMag  = NAN;
     277    pars->krMag  = NAN;
     278    pars->psfMag = NAN;
     279
     280    return pars;
     281}
  • branches/eam_branches/ipp-20110710/psModules/src/objects/pmSourceExtendedPars.h

    r31153 r31925  
    6767} pmSourceExtendedPars;
    6868
     69// additional measurements related to the model fits
     70typedef struct {
     71    float Mxx;
     72    float Mxy;
     73    float Myy;
     74   
     75    float Mrf;
     76    float apMag;
     77    float krMag;
     78    float psfMag;
     79} pmSourceExtFitPars;
     80
    6981pmSourceRadialFlux *pmSourceRadialFluxAlloc();
    7082bool psMemCheckSourceRadialFlux(psPtr ptr);
Note: See TracChangeset for help on using the changeset viewer.