IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 5, 2009, 4:47:00 PM (17 years ago)
Author:
Paul Price
Message:

Merging pap_branch_20090128. Resolved a small number of conflicts. Compiles, but not tested in detail.

File:
1 edited

Legend:

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

    r20367 r21365  
    3939    float skyRate = psMetadataLookupF32(NULL, recipe, "SKY.RATE"); // Sky rate
    4040    if (isnan(skyRate)) {
    41         float zp      = psMetadataLookupF32(&mdok, recipe, "ZEROPOINT"); assert (mdok);
    42         float scale   = psMetadataLookupF32(&mdok, recipe, "PIXEL.SCALE");     assert (mdok);
    43         float skyMags = psMetadataLookupF32(&mdok, recipe, "SKY.MAGS");  assert (mdok);
     41        float zp      = psMetadataLookupF32(&mdok, recipe, "ZEROPOINT"); assert (mdok);
     42        float scale   = psMetadataLookupF32(&mdok, recipe, "PIXEL.SCALE");     assert (mdok);
     43        float skyMags = psMetadataLookupF32(&mdok, recipe, "SKY.MAGS");  assert (mdok);
    4444        skyRate = scale * scale * ppSimMagToFlux (skyMags, zp);
    4545    }
     
    7575    FILE *outfile = fopen (outname, "w");
    7676
    77     // add sources to the readout image & weight
     77    // add sources to the readout image & variance
    7878    psTrace("ppSim", 1, "Inserting %ld stars...\n", stars->n);
    7979    for (long i = 0; i < stars->n; i++) {
     
    118118        psF64 Area = 2.0 * M_PI * axes.major * axes.minor;
    119119
    120         // this value is the pure (input) flux, and is saved in the output source cmf files
     120        // this value is the pure (input) flux, and is saved in the output source cmf files
    121121        source->psfMag = -2.5*log10(star->flux);
    122122        source->errMag = sqrt(Area*PS_SQR(roughNoise) + flux) / flux;
     
    132132        // Blow away the image parts of the source, which makes the memory explode
    133133        RESET(source->pixels);
    134         RESET(source->weight);
     134        RESET(source->variance);
    135135        RESET(source->maskObj);
    136136        RESET(source->maskView);
Note: See TracChangeset for help on using the changeset viewer.