IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 9653


Ignore:
Timestamp:
Oct 19, 2006, 11:16:49 AM (20 years ago)
Author:
rhl
Message:

Use pmSource->sky not params[PM_PAR_SKY]

Location:
trunk/psModules/src/objects
Files:
5 edited

Legend:

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

    r9652 r9653  
    33 *  @author EAM, IfA
    44 *
    5  *  @version $Revision: 1.10 $ $Name: not supported by cvs2svn $
    6  *  @date $Date: 2006-10-19 21:13:21 $
     5 *  @version $Revision: 1.11 $ $Name: not supported by cvs2svn $
     6 *  @date $Date: 2006-10-19 21:16:49 $
    77 *
    88 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    6363
    6464        type = pmSourceDophotType (source);
    65         #if 0
    66 
    67         float sky = PAR[PM_PAR_SKY];
    68         #else
    69 
    70         float sky = source->sky;
    71         #endif
    72 
    73         lsky = (sky < 1.0) ? 0.0 : log10(sky);
     65        lsky = (source->sky < 1.0) ? 0.0 : log10(source->sky);
    7466
    7567        shape.sx  = PAR[PM_PAR_SXX];
  • trunk/psModules/src/objects/pmSourceIO_CMP.c

    r9652 r9653  
    33 *  @author EAM, IfA
    44 *
    5  *  @version $Revision: 1.16 $ $Name: not supported by cvs2svn $
    6  *  @date $Date: 2006-10-19 21:13:21 $
     5 *  @version $Revision: 1.17 $ $Name: not supported by cvs2svn $
     6 *  @date $Date: 2006-10-19 21:16:49 $
    77 *
    88 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    117117
    118118        type = pmSourceDophotType (source);
    119         #if 0
    120 
    121         float sky = PAR[PM_PAR_SKY];
    122         #else
    123 
    124         float sky = source->sky;
    125         #endif
    126 
    127         lsky = (sky < 1.0) ? 0.0 : log10(sky);
     119        lsky = (source->sky < 1.0) ? 0.0 : log10(source->sky);
    128120
    129121        shape.sx  = PAR[PM_PAR_SXX];
  • trunk/psModules/src/objects/pmSourceIO_OBJ.c

    r9528 r9653  
    33 *  @author EAM, IfA
    44 *
    5  *  @version $Revision: 1.6 $ $Name: not supported by cvs2svn $
    6  *  @date $Date: 2006-10-13 02:29:14 $
     5 *  @version $Revision: 1.7 $ $Name: not supported by cvs2svn $
     6 *  @date $Date: 2006-10-19 21:16:49 $
    77 *
    88 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    8181        psLineAdd (line, "%8.3f", source->psfMag);
    8282        psLineAdd (line, "%6.3f", dmag);
    83         psLineAdd (line, "%9.2f", PAR[PM_PAR_SKY]);
     83        psLineAdd (line, "%9.2f", source->sky);
    8484        psLineAdd (line, "%9.3f", axes.major);
    8585        psLineAdd (line, "%9.3f", axes.minor);
  • trunk/psModules/src/objects/pmSourceIO_RAW.c

    r9561 r9653  
    33 *  @author EAM, IfA
    44 *
    5  *  @version $Revision: 1.7 $ $Name: not supported by cvs2svn $
    6  *  @date $Date: 2006-10-14 00:54:37 $
     5 *  @version $Revision: 1.8 $ $Name: not supported by cvs2svn $
     6 *  @date $Date: 2006-10-19 21:16:49 $
    77 *
    88 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    8787
    8888        fprintf (f, "%7.1f %7.1f  %7.1f %8.4f  %7.4f %7.4f  ",
    89                  PAR[PM_PAR_XPOS], PAR[PM_PAR_YPOS], PAR[PM_PAR_SKY],
     89                 PAR[PM_PAR_XPOS], PAR[PM_PAR_YPOS], source->sky,
    9090                 source->psfMag, source->errMag, dPos);
    9191
     
    149149
    150150        fprintf (f, "%7.1f %7.1f  %7.1f %8.4f  %7.4f %7.4f  ",
    151                  PAR[PM_PAR_XPOS], PAR[PM_PAR_YPOS], PAR[PM_PAR_SKY],
     151                 PAR[PM_PAR_XPOS], PAR[PM_PAR_YPOS], source->sky,
    152152                 source->extMag, source->errMag, dPos);
    153153
  • trunk/psModules/src/objects/pmSourceIO_SX.c

    r8882 r9653  
    33 *  @author EAM, IfA
    44 *
    5  *  @version $Revision: 1.5 $ $Name: not supported by cvs2svn $
    6  *  @date $Date: 2006-09-22 12:24:38 $
     5 *  @version $Revision: 1.6 $ $Name: not supported by cvs2svn $
     6 *  @date $Date: 2006-10-19 21:16:49 $
    77 *
    88 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    7171        psLineAdd (line, "%9.4f",  source->psfMag);
    7272        psLineAdd (line, "%9.4f",  source->errMag);
    73         psLineAdd (line, "%13.4f", PAR[PM_PAR_SKY]);
     73        psLineAdd (line, "%13.4f", source->sky);
    7474        psLineAdd (line, "%9.2f",  axes.major);
    7575        psLineAdd (line, "%9.2f",  axes.minor);
Note: See TracChangeset for help on using the changeset viewer.