IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 5810


Ignore:
Timestamp:
Dec 18, 2005, 4:08:58 PM (21 years ago)
Author:
magnier
Message:

adding ApTrend(x,y,rflux), with appropriate masks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_rel9_b0/psModules/src/objects/pmPSF.c

    r5803 r5810  
    66 *  @author EAM, IfA
    77 *
    8  *  @version $Revision: 1.1.10.2 $ $Name: not supported by cvs2svn $
    9  *  @date $Date: 2005-12-17 20:30:43 $
     8 *  @version $Revision: 1.1.10.3 $ $Name: not supported by cvs2svn $
     9 *  @date $Date: 2005-12-19 02:08:58 $
    1010 *
    1111 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    7070 X-center
    7171 Y-center
    72  ???: Sky background value?
    73  ???: Zo?
     72 Sky background value
     73 Object Normalization
    7474 *****************************************************************************/
    7575pmPSF *pmPSFAlloc (pmModelType type)
     
    8484    psf->dApResid = 0.0;
    8585    psf->skyBias  = 0.0;
    86     psf->ApTrend = psPolynomial3DAlloc (1, 1, 1, PS_POLYNOMIAL_ORD);
    87     // XXX EAM : need to set the coefficient masks
     86
     87    // the ApTrend components are (x, y, rflux)
     88    psf->ApTrend = psPolynomial3DAlloc (2, 2, 1, PS_POLYNOMIAL_ORD);
     89
     90    // we do not allow any rflux vs X,Y cross-terms
     91    psf->ApTrend->mask[0][1][1] = 1;  // rflux x^0 y^1
     92    psf->ApTrend->mask[0][2][1] = 1;  // rflux x^0 y^2
     93    psf->ApTrend->mask[1][0][1] = 1;  // rflux x^1 y^0
     94    psf->ApTrend->mask[1][1][1] = 1;  // rflux x^1 y^1
     95    psf->ApTrend->mask[1][2][1] = 1;  // rflux x^1 y^2
     96    psf->ApTrend->mask[2][0][1] = 1;  // rflux x^2 y^0
     97    psf->ApTrend->mask[2][1][1] = 1;  // rflux x^2 y^1
     98    psf->ApTrend->mask[2][2][1] = 1;  // rflux x^2 y^2
     99
     100    // only 2nd order terms, no such combinations
     101    psf->ApTrend->mask[2][2][0] = 1;  // x^2 y^2
     102    psf->ApTrend->mask[2][1][0] = 1;  // x^2 y^1
     103    psf->ApTrend->mask[1][2][0] = 1;  // x^1 y^2
     104
     105    // total free parameters = 18 - 11 = 7
    88106
    89107    Nparams = pmModelParameterCount (type);
Note: See TracChangeset for help on using the changeset viewer.