IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 19, 2007, 4:22:26 PM (19 years ago)
Author:
Paul Price
Message:

Extensive changes to APIs to allow use of a nominated value to mask
against (the maskVal). Previously, the mask values were either
hard-coded (e.g., PM_MASK_SAT) or taken as anything non-zero. The
code is tested under psphot (which has similar changes) and does not
crash, but neither is it successful in marking all bad pixels (EAM
will investigate). For this reason, I have left the "gutter" pixels
(cell gaps) set to 0 instead of NAN in pmFPAMosaic.

File:
1 edited

Legend:

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

    r13064 r13898  
    66 * @author EAM, IfA
    77 *
    8  * @version $Revision: 1.13 $ $Name: not supported by cvs2svn $
    9  * @date $Date: 2007-04-27 22:14:08 $
     8 * @version $Revision: 1.14 $ $Name: not supported by cvs2svn $
     9 * @date $Date: 2007-06-20 02:22:26 $
    1010 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii
    1111 */
     
    3131
    3232/** pmPSF data structure
    33  * 
     33 *
    3434 * It is useful to generate a model to define the point-spread-function which
    3535 * describes the flux distribution for unresolved sources in an image. In
     
    4040 * psArray. The other elements of the structure define the quality of the PSF
    4141 * determination.
    42  * 
     42 *
    4343 */
    4444typedef struct
     
    4949    // unfitted elements (So, Io, Xo, Yo) and leave them as NULL
    5050    // I am using a new name to catch all refs to params with gcc
    51     psPolynomial1D *ChiTrend;         ///< Chisq vs flux fit (correction for systematic errors)
    52     psPolynomial4D *ApTrend;            ///< ApResid vs (x,y,rflux) (rflux = ten(0.4*mInst))
    53     float ApResid;                      ///< apMag - psfMag (for PSF stars)
    54     float dApResid;                     ///< scatter of ApResid
    55     float skyBias;                      ///< implied residual sky offset from ApResid fit
    56     float skySat;                       ///< roll-over of ApResid fit
    57     float chisq;                        ///< PSF goodness statistic (unused??)
    58     int nPSFstars;                      ///< number of stars used to measure PSF
    59     int nApResid;                       ///< number of stars used to measure ApResid
     51    psPolynomial1D *ChiTrend;         ///< Chisq vs flux fit (correction for systematic errors)
     52    psPolynomial4D *ApTrend;            ///< ApResid vs (x,y,rflux) (rflux = ten(0.4*mInst))
     53    float ApResid;                      ///< apMag - psfMag (for PSF stars)
     54    float dApResid;                     ///< scatter of ApResid
     55    float skyBias;                      ///< implied residual sky offset from ApResid fit
     56    float skySat;                       ///< roll-over of ApResid fit
     57    float chisq;                        ///< PSF goodness statistic (unused??)
     58    int nPSFstars;                      ///< number of stars used to measure PSF
     59    int nApResid;                       ///< number of stars used to measure ApResid
    6060    bool poissonErrors;
    61     pmGrowthCurve *growth;              ///< apMag vs Radius
    62     pmResiduals *residuals;             ///< normalized residual image (no spatial variation)
     61    pmGrowthCurve *growth;              ///< apMag vs Radius
     62    pmResiduals *residuals;             ///< normalized residual image (no spatial variation)
    6363}
    6464pmPSF;
     
    6969
    7070/**
    71  * 
     71 *
    7272 * Allocator for the pmPSF structure.
    73  * 
     73 *
    7474 */
    7575pmPSF *pmPSFAlloc(
     
    8080
    8181/**
    82  * 
     82 *
    8383 * This function constructs a pmModel instance based on the pmPSF description
    8484 * of the PSF. The input is a pmModel with at least the values of the centroid
     
    8686 * the PSF-dependent parameters are specified for the specific realization based
    8787 * on the coordinates of the object.
    88  * 
     88 *
    8989 */
    9090pmModel *pmModelFromPSF(
     
    100100double pmPSF_SXYtoModel (psF32 *fittedPar);
    101101
    102 bool pmGrowthCurveGenerate (pmReadout *readout, pmPSF *psf, bool ignore);
     102bool pmGrowthCurveGenerate (pmReadout *readout, pmPSF *psf, bool ignore, psMaskType maskVal, psMaskType mark);
    103103pmPSF *pmPSFBuildSimple (char *typeName, float sxx, float syy, float sxy, ...);
    104104
Note: See TracChangeset for help on using the changeset viewer.