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/pmPSF.c

    r5765 r5958  
    66 *  @author EAM, IfA
    77 *
    8  *  @version $Revision: 1.3 $ $Name: not supported by cvs2svn $
    9  *  @date $Date: 2005-12-12 21:14:38 $
     8 *  @version $Revision: 1.3.4.1 $ $Name: not supported by cvs2svn $
     9 *  @date $Date: 2006-01-10 04:46:03 $
    1010 *
    1111 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    6969 X-center
    7070 Y-center
    71  ???: Sky background value?
    72  ???: Zo?
     71 Sky background value
     72 Object Normalization
    7373 *****************************************************************************/
    7474pmPSF *pmPSFAlloc (pmModelType type)
     
    8383    psf->dApResid = 0.0;
    8484    psf->skyBias  = 0.0;
     85
     86    // the ApTrend components are (x, y, rflux)
     87    psf->ApTrend = psPolynomial3DAlloc (2, 2, 1, PS_POLYNOMIAL_ORD);
     88
     89    // we do not allow any rflux vs X,Y cross-terms
     90    psf->ApTrend->mask[0][1][1] = 1;  // rflux x^0 y^1
     91    psf->ApTrend->mask[0][2][1] = 1;  // rflux x^0 y^2
     92    psf->ApTrend->mask[1][0][1] = 1;  // rflux x^1 y^0
     93    psf->ApTrend->mask[1][1][1] = 1;  // rflux x^1 y^1
     94    psf->ApTrend->mask[1][2][1] = 1;  // rflux x^1 y^2
     95    psf->ApTrend->mask[2][0][1] = 1;  // rflux x^2 y^0
     96    psf->ApTrend->mask[2][1][1] = 1;  // rflux x^2 y^1
     97    psf->ApTrend->mask[2][2][1] = 1;  // rflux x^2 y^2
     98
     99    // only 2nd order terms, no such combinations
     100    psf->ApTrend->mask[2][2][0] = 1;  // x^2 y^2
     101    psf->ApTrend->mask[2][1][0] = 1;  // x^2 y^1
     102    psf->ApTrend->mask[1][2][0] = 1;  // x^1 y^2
     103
     104    // total free parameters = 18 - 11 = 7
    85105
    86106    Nparams = pmModelParameterCount (type);
Note: See TracChangeset for help on using the changeset viewer.