IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 12931


Ignore:
Timestamp:
Apr 19, 2007, 4:31:41 PM (19 years ago)
Author:
magnier
Message:

adding pmResiduals.c

Location:
branches/eam_02_branch/psModules/src
Files:
2 added
21 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_02_branch/psModules/src/camera/pmFPAfileIO.c

    r12890 r12931  
    2828#include "pmSourceIO.h"
    2929#include "pmGrowthCurve.h"
     30#include "pmResiduals.h"
    3031#include "pmPSF.h"
    3132#include "pmPSF_IO.h"
  • branches/eam_02_branch/psModules/src/objects/Makefile.am

    r12448 r12931  
    2323     pmSourcePlotPSFModel.c \
    2424     pmSourcePlotMoments.c \
     25     pmResiduals.c \
    2526     pmPSF.c \
    2627     pmPSF_IO.c \
     
    4647     pmSourceIO.h \
    4748     pmSourcePlots.h \
     49     pmResiduals.h \
    4850     pmPSF.h \
    4951     pmPSF_IO.h \
  • branches/eam_02_branch/psModules/src/objects/pmGrowthCurve.c

    r12696 r12931  
    55 *  @author EAM, IfA
    66 *
    7  *  @version $Revision: 1.9 $ $Name: not supported by cvs2svn $
    8  *  @date $Date: 2007-03-30 21:12:56 $
     7 *  @version $Revision: 1.9.2.1 $ $Name: not supported by cvs2svn $
     8 *  @date $Date: 2007-04-20 02:31:41 $
    99 *
    1010 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    2525#include "pmSource.h"
    2626#include "pmGrowthCurve.h"
     27#include "pmResiduals.h"
    2728#include "pmPSF.h"
    2829#include "psVectorBracket.h"
  • branches/eam_02_branch/psModules/src/objects/pmModelGroup.c

    r10256 r12931  
    66 *  @author EAM, IfA
    77 *
    8  *  @version $Revision: 1.12 $ $Name: not supported by cvs2svn $
    9  *  @date $Date: 2006-11-29 02:35:45 $
     8 *  @version $Revision: 1.12.6.1 $ $Name: not supported by cvs2svn $
     9 *  @date $Date: 2007-04-20 02:31:41 $
    1010 *
    1111 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    2727#include "pmGrowthCurve.h"
    2828#include "pmModel.h"
     29#include "pmResiduals.h"
    2930#include "pmPSF.h"
    3031#include "pmSource.h"
  • branches/eam_02_branch/psModules/src/objects/pmPSF.c

    r12816 r12931  
    66 *  @author EAM, IfA
    77 *
    8  *  @version $Revision: 1.19 $ $Name: not supported by cvs2svn $
    9  *  @date $Date: 2007-04-12 18:56:37 $
     8 *  @version $Revision: 1.19.2.1 $ $Name: not supported by cvs2svn $
     9 *  @date $Date: 2007-04-20 02:31:41 $
    1010 *
    1111 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    3030#include "pmSource.h"
    3131#include "pmGrowthCurve.h"
     32#include "pmResiduals.h"
    3233#include "pmPSF.h"
    3334#include "pmModelGroup.h"
     
    7374    psFree (psf->growth);
    7475    psFree (psf->params_NEW);
     76    psFree (psf->residuals);
    7577    return;
    7678}
     
    117119    // don't define a growth curve : user needs to choose radius bins
    118120    psf->growth = NULL;
     121
     122    // by default, we do not construct the residual image
     123    psf->residuals = NULL;
    119124
    120125    Nparams = pmModelParameterCount (type);
  • branches/eam_02_branch/psModules/src/objects/pmPSF.h

    r11253 r12931  
    66 * @author EAM, IfA
    77 *
    8  * @version $Revision: 1.11 $ $Name: not supported by cvs2svn $
    9  * @date $Date: 2007-01-24 02:54:15 $
     8 * @version $Revision: 1.11.6.1 $ $Name: not supported by cvs2svn $
     9 * @date $Date: 2007-04-20 02:31:41 $
    1010 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii
    1111 */
     
    4949    // unfitted elements (So, Io, Xo, Yo) and leave them as NULL
    5050    // I am using a new name to catch all refs to params with gcc
    51     psPolynomial1D *ChiTrend;  ///< Chisq vs flux fit (correction for systematic errors)
    52     psPolynomial4D *ApTrend;  ///< ApResid vs (x,y,rflux) (rflux = ten(0.4*mInst))
    53     //pmGrowthCurve *growth;  ///< apMag vs Radius // move to end as gdb is confused by it here
    54     float ApResid;   ///< apMag - psfMag (for PSF stars)
    55     float dApResid;   ///< scatter of ApResid
    56     float skyBias;   ///< implied residual sky offset from ApResid fit
    57     float skySat;   ///< roll-over of ApResid fit
    58     float chisq;   ///< PSF goodness statistic (unused??)
    59     int nPSFstars;   ///< number of stars used to measure PSF
    60     int nApResid;   ///< number of stars used to measure ApResid
     51    psPolynomial1D *ChiTrend;         ///< Chisq vs flux fit (correction for systematic errors)
     52    psPolynomial4D *ApTrend;            ///< ApResid vs (x,y,rflux) (rflux = ten(0.4*mInst))
     53    float ApResid;                      ///< apMag - psfMag (for PSF stars)
     54    float dApResid;                     ///< scatter of ApResid
     55    float skyBias;                      ///< implied residual sky offset from ApResid fit
     56    float skySat;                       ///< roll-over of ApResid fit
     57    float chisq;                        ///< PSF goodness statistic (unused??)
     58    int nPSFstars;                      ///< number of stars used to measure PSF
     59    int nApResid;                       ///< number of stars used to measure ApResid
    6160    bool poissonErrors;
    62     pmGrowthCurve *growth;  ///< apMag vs Radius
     61    pmGrowthCurve *growth;              ///< apMag vs Radius
     62    pmResiduals *residuals;             ///< normalized residual image (no spatial variation)
    6363}
    6464pmPSF;
  • branches/eam_02_branch/psModules/src/objects/pmPSF_IO.c

    r12832 r12931  
    66 *  @author EAM, IfA
    77 *
    8  *  @version $Revision: 1.13 $ $Name: not supported by cvs2svn $
    9  *  @date $Date: 2007-04-14 03:22:48 $
     8 *  @version $Revision: 1.13.2.1 $ $Name: not supported by cvs2svn $
     9 *  @date $Date: 2007-04-20 02:31:41 $
    1010 *
    1111 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    3737#include "pmGrowthCurve.h"
    3838#include "pmModel.h"
     39#include "pmResiduals.h"
    3940#include "pmPSF.h"
    4041#include "pmPSF_IO.h"
  • branches/eam_02_branch/psModules/src/objects/pmPSFtry.c

    r11158 r12931  
    55 *  @author EAM, IfA
    66 *
    7  *  @version $Revision: 1.34 $ $Name: not supported by cvs2svn $
    8  *  @date $Date: 2007-01-19 04:35:53 $
     7 *  @version $Revision: 1.34.6.1 $ $Name: not supported by cvs2svn $
     8 *  @date $Date: 2007-04-20 02:31:41 $
    99 *
    1010 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    2525#include "pmSource.h"
    2626#include "pmGrowthCurve.h"
     27#include "pmResiduals.h"
    2728#include "pmPSF.h"
    2829#include "pmPSFtry.h"
  • branches/eam_02_branch/psModules/src/objects/pmSourceFitModel.c

    r11687 r12931  
    66 *  @author GLG, MHPCC
    77 *
    8  *  @version $Revision: 1.19 $ $Name: not supported by cvs2svn $
    9  *  @date $Date: 2007-02-07 23:58:17 $
     8 *  @version $Revision: 1.19.4.1 $ $Name: not supported by cvs2svn $
     9 *  @date $Date: 2007-04-20 02:31:41 $
    1010 *
    1111 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    2727#include "pmGrowthCurve.h"
    2828#include "pmModel.h"
     29#include "pmResiduals.h"
    2930#include "pmPSF.h"
    3031#include "pmSource.h"
  • branches/eam_02_branch/psModules/src/objects/pmSourceIO.c

    r12890 r12931  
    33 *  @author EAM, IfA
    44 *
    5  *  @version $Revision: 1.35 $ $Name: not supported by cvs2svn $
    6  *  @date $Date: 2007-04-18 19:42:37 $
     5 *  @version $Revision: 1.35.2.1 $ $Name: not supported by cvs2svn $
     6 *  @date $Date: 2007-04-20 02:31:41 $
    77 *
    88 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    3434#include "pmGrowthCurve.h"
    3535#include "pmModel.h"
     36#include "pmResiduals.h"
    3637#include "pmPSF.h"
    3738#include "pmSource.h"
  • branches/eam_02_branch/psModules/src/objects/pmSourceIO_CMF.c

    r12696 r12931  
    33 *  @author EAM, IfA
    44 *
    5  *  @version $Revision: 1.18 $ $Name: not supported by cvs2svn $
    6  *  @date $Date: 2007-03-30 21:12:56 $
     5 *  @version $Revision: 1.18.2.1 $ $Name: not supported by cvs2svn $
     6 *  @date $Date: 2007-04-20 02:31:41 $
    77 *
    88 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    2828#include "pmGrowthCurve.h"
    2929#include "pmModel.h"
     30#include "pmResiduals.h"
    3031#include "pmPSF.h"
    3132#include "pmSource.h"
  • branches/eam_02_branch/psModules/src/objects/pmSourceIO_CMP.c

    r12888 r12931  
    33 *  @author EAM, IfA
    44 *
    5  *  @version $Revision: 1.25 $ $Name: not supported by cvs2svn $
    6  *  @date $Date: 2007-04-18 19:40:57 $
     5 *  @version $Revision: 1.25.2.1 $ $Name: not supported by cvs2svn $
     6 *  @date $Date: 2007-04-20 02:31:41 $
    77 *
    88 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    3232#include "pmGrowthCurve.h"
    3333#include "pmModel.h"
     34#include "pmResiduals.h"
    3435#include "pmPSF.h"
    3536#include "pmSource.h"
  • branches/eam_02_branch/psModules/src/objects/pmSourceIO_OBJ.c

    r12696 r12931  
    33 *  @author EAM, IfA
    44 *
    5  *  @version $Revision: 1.9 $ $Name: not supported by cvs2svn $
    6  *  @date $Date: 2007-03-30 21:12:56 $
     5 *  @version $Revision: 1.9.2.1 $ $Name: not supported by cvs2svn $
     6 *  @date $Date: 2007-04-20 02:31:41 $
    77 *
    88 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    3232#include "pmGrowthCurve.h"
    3333#include "pmModel.h"
     34#include "pmResiduals.h"
    3435#include "pmPSF.h"
    3536#include "pmSource.h"
  • branches/eam_02_branch/psModules/src/objects/pmSourceIO_PS1_DEV_0.c

    r12704 r12931  
    33 *  @author EAM, IfA
    44 *
    5  *  @version $Revision: 1.6 $ $Name: not supported by cvs2svn $
    6  *  @date $Date: 2007-03-31 03:02:05 $
     5 *  @version $Revision: 1.6.2.1 $ $Name: not supported by cvs2svn $
     6 *  @date $Date: 2007-04-20 02:31:41 $
    77 *
    88 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    3232#include "pmGrowthCurve.h"
    3333#include "pmModel.h"
     34#include "pmResiduals.h"
    3435#include "pmPSF.h"
    3536#include "pmSource.h"
  • branches/eam_02_branch/psModules/src/objects/pmSourceIO_RAW.c

    r12696 r12931  
    33 *  @author EAM, IfA
    44 *
    5  *  @version $Revision: 1.14 $ $Name: not supported by cvs2svn $
    6  *  @date $Date: 2007-03-30 21:12:56 $
     5 *  @version $Revision: 1.14.2.1 $ $Name: not supported by cvs2svn $
     6 *  @date $Date: 2007-04-20 02:31:41 $
    77 *
    88 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    3232#include "pmGrowthCurve.h"
    3333#include "pmModel.h"
     34#include "pmResiduals.h"
    3435#include "pmPSF.h"
    3536#include "pmSource.h"
  • branches/eam_02_branch/psModules/src/objects/pmSourceIO_SMPDATA.c

    r12884 r12931  
    33 *  @author EAM, IfA
    44 *
    5  *  @version $Revision: 1.5 $ $Name: not supported by cvs2svn $
    6  *  @date $Date: 2007-04-18 19:36:01 $
     5 *  @version $Revision: 1.5.2.1 $ $Name: not supported by cvs2svn $
     6 *  @date $Date: 2007-04-20 02:31:41 $
    77 *
    88 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    3232#include "pmGrowthCurve.h"
    3333#include "pmModel.h"
     34#include "pmResiduals.h"
    3435#include "pmPSF.h"
    3536#include "pmSource.h"
  • branches/eam_02_branch/psModules/src/objects/pmSourceIO_SX.c

    r12696 r12931  
    33 *  @author EAM, IfA
    44 *
    5  *  @version $Revision: 1.8 $ $Name: not supported by cvs2svn $
    6  *  @date $Date: 2007-03-30 21:12:56 $
     5 *  @version $Revision: 1.8.2.1 $ $Name: not supported by cvs2svn $
     6 *  @date $Date: 2007-04-20 02:31:41 $
    77 *
    88 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    3232#include "pmGrowthCurve.h"
    3333#include "pmModel.h"
     34#include "pmResiduals.h"
    3435#include "pmPSF.h"
    3536#include "pmSource.h"
  • branches/eam_02_branch/psModules/src/objects/pmSourcePhotometry.c

    r11687 r12931  
    33 *  @author EAM, IfA; GLG, MHPCC
    44 *
    5  *  @version $Revision: 1.22 $ $Name: not supported by cvs2svn $
    6  *  @date $Date: 2007-02-07 23:58:17 $
     5 *  @version $Revision: 1.22.4.1 $ $Name: not supported by cvs2svn $
     6 *  @date $Date: 2007-04-20 02:31:41 $
    77 *
    88 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    2525#include "pmGrowthCurve.h"
    2626#include "pmModel.h"
     27#include "pmResiduals.h"
    2728#include "pmPSF.h"
    2829#include "pmSource.h"
  • branches/eam_02_branch/psModules/src/objects/pmSourcePlotMoments.c

    r12832 r12931  
    55 *  @author EAM, IfA
    66 *
    7  *  @version $Revision: 1.4 $ $Name: not supported by cvs2svn $
    8  *  @date $Date: 2007-04-14 03:22:48 $
     7 *  @version $Revision: 1.4.2.1 $ $Name: not supported by cvs2svn $
     8 *  @date $Date: 2007-04-20 02:31:41 $
    99 *
    1010 *  Copyright 2006 IfA, University of Hawaii
     
    3232#include "pmGrowthCurve.h"
    3333#include "pmModel.h"
     34#include "pmResiduals.h"
    3435#include "pmPSF.h"
    3536#include "pmSource.h"
  • branches/eam_02_branch/psModules/src/objects/pmSourcePlotPSFModel.c

    r12832 r12931  
    55 *  @author EAM, IfA
    66 *
    7  *  @version $Revision: 1.5 $ $Name: not supported by cvs2svn $
    8  *  @date $Date: 2007-04-14 03:22:48 $
     7 *  @version $Revision: 1.5.2.1 $ $Name: not supported by cvs2svn $
     8 *  @date $Date: 2007-04-20 02:31:41 $
    99 *
    1010 *  Copyright 2006 IfA, University of Hawaii
     
    3232#include "pmGrowthCurve.h"
    3333#include "pmModel.h"
     34#include "pmResiduals.h"
    3435#include "pmPSF.h"
    3536#include "pmSource.h"
  • branches/eam_02_branch/psModules/src/psmodules.h

    r12696 r12931  
    8181#include <pmSourcePlots.h>
    8282#include <pmGrowthCurve.h>
     83#include <pmResiduals.h>
    8384#include <pmPSF.h>
    8485#include <pmPSF_IO.h>
Note: See TracChangeset for help on using the changeset viewer.