IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 17, 2014, 12:32:26 PM (12 years ago)
Author:
eugene
Message:

merge changes (from past YEAR) into trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-ops-20130712/ppSim/src/ppSimInsertStars.c

    r35770 r37067  
    7878
    7979    FILE *outfile = fopen (outname, "w");
     80    psAssert (outfile, "cannot write output");
    8081
    8182    float radius = -1.0;
     
    115116        // (inserting flux with a variable radius introduces a flux-dependent bias)
    116117        if (radius < 0) {
    117           radius = model->modelRadius (model->params, nSigmaLim * roughNoise);
     118          radius = model->class->modelRadius (model->params, nSigmaLim * roughNoise);
    118119          radius = PS_MAX (radius,  1.0);
    119120          radius = PS_MIN (radius, 50.0);
     
    125126        // XXX set the mag & err values (should this be done in pmSourceFromModel?)
    126127        // XXX i should be applying the gain and the correct effective area
    127         psEllipseAxes axes = pmPSF_ModelToAxes (model->params->data.F32, model->type);
     128        psEllipseAxes axes = pmPSF_ModelToAxes (model->params->data.F32, model->class->useReff);
    128129        float Area = 2.0 * M_PI * axes.major * axes.minor;
    129130
Note: See TracChangeset for help on using the changeset viewer.