IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 27, 2007, 12:14:08 PM (19 years ago)
Author:
magnier
Message:

converting the PSF model fits to the polariation terms (replacing Sx,Sy,Sxy)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/objects/pmSourceIO_CMP.c

    r13034 r13064  
    33 *  @author EAM, IfA
    44 *
    5  *  @version $Revision: 1.27 $ $Name: not supported by cvs2svn $
    6  *  @date $Date: 2007-04-26 01:20:29 $
     5 *  @version $Revision: 1.28 $ $Name: not supported by cvs2svn $
     6 *  @date $Date: 2007-04-27 22:14:08 $
    77 *
    88 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    5353    float lsky = 0;
    5454    bool status;
    55     psEllipseShape shape;
    5655    psEllipseAxes axes;
    5756
     
    119118        lsky = (source->sky < 1.0) ? 0.0 : log10(source->sky);
    120119
    121         shape.sx  = PAR[PM_PAR_SXX];
    122         shape.sy  = PAR[PM_PAR_SYY];
    123         shape.sxy = PAR[PM_PAR_SXY];
    124         axes = psEllipseShapeToAxes (shape, 20.0);
     120        axes = pmPSF_ModelToAxes (PAR, 20.0);
    125121
    126122        float errMag = isfinite(source->errMag) ? source->errMag : 999;
     
    155151    int Ninstar;
    156152    psF32 *PAR, *dPAR;
    157     psEllipseShape shape;
    158153    psEllipseAxes axes;
    159154
     
    274269                goto skip_source;
    275270
    276             shape = psEllipseAxesToShape (axes);
    277 
    278             PAR[PM_PAR_SXX] = shape.sx;
    279             PAR[PM_PAR_SYY] = shape.sy;
    280             PAR[PM_PAR_SXY] = shape.sxy;
     271            pmPSF_AxesToModel (PAR, axes);
    281272
    282273            psArrayAdd (sources, 100, source);
Note: See TracChangeset for help on using the changeset viewer.