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_CMF.c

    r13034 r13064  
    33 *  @author EAM, IfA
    44 *
    5  *  @version $Revision: 1.20 $ $Name: not supported by cvs2svn $
    6  *  @date $Date: 2007-04-26 01:20:29 $
     5 *  @version $Revision: 1.21 $ $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
     
    6868        lsky = (source->sky < 1.0) ? 0.0 : log10(source->sky);
    6969
    70         shape.sx  = PAR[PM_PAR_SXX];
    71         shape.sy  = PAR[PM_PAR_SYY];
    72         shape.sxy = PAR[PM_PAR_SXY];
    73         axes = psEllipseShapeToAxes (shape, 20.0);
     70        axes = pmPSF_ModelToAxes (PAR, 20.0);
    7471
    7572        row = psMetadataAlloc ();
     
    158155        axes.theta       = psMetadataLookupF32 (&status, row, "THETA");
    159156
    160         shape = psEllipseAxesToShape (axes);
    161 
    162         PAR[PM_PAR_SXX] = shape.sx;
    163         PAR[PM_PAR_SYY] = shape.sy;
    164         PAR[PM_PAR_SXY] = shape.sxy;
     157        pmPSF_AxesToModel (PAR, axes);
    165158
    166159        source->psfMag = psMetadataLookupF32 (&status, row, "MAG_RAW") - ZERO_POINT;
Note: See TracChangeset for help on using the changeset viewer.