IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 29, 2009, 4:26:37 PM (17 years ago)
Author:
Paul Price
Message:

Changing 'weight' to 'variance'. Mainly propagating changes from psModules. Fixed some apparent psphot API changes too.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/pap_branch_20090128/ppSim/src/ppSimLoadForceSources.c

    r18011 r21230  
    5656    // Select the spots within range of this readout.  Project the spots to this chip
    5757    for (int i = 0; i < spots->n; i++) {
    58         pmAstromObj *obj = spots->data[i];
     58        pmAstromObj *obj = spots->data[i];
    5959
    60         psProject (obj->TP, obj->sky, fpa->toSky);
    61         psPlaneTransformApply (obj->FP, fpa->fromTPA, obj->TP);
    62         psPlaneTransformApply (obj->chip, chip->fromFPA, obj->FP);
     60        psProject (obj->TP, obj->sky, fpa->toSky);
     61        psPlaneTransformApply (obj->FP, fpa->fromTPA, obj->TP);
     62        psPlaneTransformApply (obj->chip, chip->fromFPA, obj->FP);
    6363
    64         // limit the X,Y range of the objs to the selected chip
    65         if (obj->chip->x < minX) continue;
    66         if (obj->chip->x > maxX) continue;
    67         if (obj->chip->y < minY) continue;
    68         if (obj->chip->y > maxY) continue;
     64        // limit the X,Y range of the objs to the selected chip
     65        if (obj->chip->x < minX) continue;
     66        if (obj->chip->x > maxX) continue;
     67        if (obj->chip->y < minY) continue;
     68        if (obj->chip->y > maxY) continue;
    6969
    70         // convert the pmAstromObj to pmSource
     70        // convert the pmAstromObj to pmSource
    7171
    7272        // instantiate a model for the PSF at this location, Io = 1.0
     
    7474
    7575        // XXX let the flux limit be a user-defined number of sky sigmas (not just 1.0)
    76         // XXX use a fixed radius??
     76        // XXX use a fixed radius??
    7777        // float radius = model->modelRadius (model->params, roughNoise);
    7878        // radius = PS_MAX (radius, 1.0);
    79         float radius = 5.0;
     79        float radius = 5.0;
    8080
    8181        // construct a source, with model flux pixels set, based on the model
     
    8787        // psF64 Area = 2.0 * M_PI * axes.major * axes.minor;
    8888
    89         // these are not really needed since we will be fitting for them
     89        // these are not really needed since we will be fitting for them
    9090        source->psfMag = NAN;
    9191        source->errMag = NAN;
    9292
    9393        // insert the source flux in the image
    94         // XXX not sure the offset is really 0,0
     94        // XXX not sure the offset is really 0,0
    9595        pmSourceAddWithOffset (source, PM_MODEL_OP_FULL, 0xff, 0.0, 0.0);
    9696        pmSourceAddWithOffset (source, PM_MODEL_OP_FULL | PM_MODEL_OP_NOISE, 0xff, 0.0, 0.0);
     
    9898        // Blow away the image parts of the source, which makes the memory explode
    9999        RESET(source->pixels);
    100         RESET(source->weight);
     100        RESET(source->variance);
    101101        RESET(source->maskObj);
    102102        RESET(source->maskView);
     
    105105        RESET(source->blends);
    106106
    107         psArrayAdd (sources, 100, source);
     107        psArrayAdd (sources, 100, source);
    108108        psFree(source);                 // Drop local reference
    109109    }
Note: See TracChangeset for help on using the changeset viewer.