IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 36868 for trunk/ppSim


Ignore:
Timestamp:
Jun 13, 2014, 11:09:24 AM (12 years ago)
Author:
eugene
Message:

ensure pmPSF_AxesToModel and pmPSF_ModelToAxes uses class->useReff (not the old model->type)

Location:
trunk/ppSim/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppSim/src/ppSimInsertGalaxies.c

    r36862 r36868  
    145145            axes.minor       = galaxy->Rmin;
    146146            axes.theta       = galaxy->theta;
    147             pmPSF_AxesToModel (PAR, axes, type);
     147            pmPSF_AxesToModel (PAR, axes, model->class->useReff);
    148148        }
    149149        psF64 Area = 2.0 * M_PI * galaxy->Rmaj * galaxy->Rmin;
  • trunk/ppSim/src/ppSimInsertStars.c

    r36862 r36868  
    126126        // XXX set the mag & err values (should this be done in pmSourceFromModel?)
    127127        // XXX i should be applying the gain and the correct effective area
    128         psEllipseAxes axes = pmPSF_ModelToAxes (model->params->data.F32, model->type);
     128        psEllipseAxes axes = pmPSF_ModelToAxes (model->params->data.F32, model->class->useReff);
    129129        float Area = 2.0 * M_PI * axes.major * axes.minor;
    130130
Note: See TracChangeset for help on using the changeset viewer.