IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 6440


Ignore:
Timestamp:
Feb 16, 2006, 4:49:07 PM (20 years ago)
Author:
magnier
Message:

changed polynomials to work with pslib.0.10.0 defs

Location:
branches/eam_rel9_p0/psModules/src/objects
Files:
2 edited

Legend:

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

    r6378 r6440  
    66 *  @author EAM, IfA
    77 *
    8  *  @version $Revision: 1.3.4.4 $ $Name: not supported by cvs2svn $
    9  *  @date $Date: 2006-02-08 06:13:39 $
     8 *  @version $Revision: 1.3.4.5 $ $Name: not supported by cvs2svn $
     9 *  @date $Date: 2006-02-17 02:48:57 $
    1010 *
    1111 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    8888
    8989    // the ApTrend components are (x, y, r2rflux, flux)
    90     psf->ApTrend = psPolynomial4DAlloc (2, 2, 1, 1, PS_POLYNOMIAL_ORD);
     90    psf->ApTrend = psPolynomial4DAlloc (PS_POLYNOMIAL_ORD, 2, 2, 1, 1);
    9191    pmPSF_MaskApTrend (psf, PM_PSF_SKYBIAS);
    9292
     
    103103    for (int i = 0; i < psf->params->n; i++) {
    104104        // XXX EAM : make this a user-defined value?
    105         psf->params->data[i] = psPolynomial2DAlloc(1, 1, PS_POLYNOMIAL_ORD);
     105        psf->params->data[i] = psPolynomial2DAlloc(PS_POLYNOMIAL_ORD, 1, 1);
    106106    }
    107107
  • branches/eam_rel9_p0/psModules/src/objects/pmPSFtry.c

    r6378 r6440  
    55 *  @author EAM, IfA
    66 *
    7  *  @version $Revision: 1.3.4.4 $ $Name: not supported by cvs2svn $
    8  *  @date $Date: 2006-02-08 06:13:39 $
     7 *  @version $Revision: 1.3.4.5 $ $Name: not supported by cvs2svn $
     8 *  @date $Date: 2006-02-17 02:49:07 $
    99 *
    1010 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    210210    // fit ApTrend only to r2rflux, ignore x,y,flux variations for now
    211211    // linear clipped fit of ApResid to r2rflux
    212     psPolynomial1D *poly = psPolynomial1DAlloc (1, PS_POLYNOMIAL_ORD);
     212    psPolynomial1D *poly = psPolynomial1DAlloc (PS_POLYNOMIAL_ORD, 1);
    213213    poly = psVectorClipFitPolynomial1D (poly, stats, psfTry->mask, PSFTRY_MASK_ALL, psfTry->metric, NULL, r2rflux);
    214214    psLogMsg ("pmPSFtryMetric", 4, "fit stats: %f +/- %f\n", stats->sampleMedian, stats->sampleStdev);
Note: See TracChangeset for help on using the changeset viewer.