IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 13, 2008, 4:56:38 PM (18 years ago)
Author:
eugene
Message:

substantial work on argument handling to support externally supplied images

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branch_20080511/ppSim/src/ppSimInsertStars.c

    r17557 r17672  
    4343    if (isnan(skyRate)) {
    4444        float zp      = psMetadataLookupF32(&mdok, recipe, "ZEROPOINT"); assert (mdok);
    45         float scale   = psMetadataLookupF32(&mdok, recipe, "SCALE");     assert (mdok);
     45        float scale   = psMetadataLookupF32(&mdok, recipe, "PIXEL.SCALE");     assert (mdok);
    4646        float skyMags = psMetadataLookupF32(&mdok, recipe, "SKY.MAGS");  assert (mdok);
    4747        skyRate = scale * scale * ppSimMagToFlux (skyMags, zp);
     
    6161    int yParityCell = psMetadataLookupS32(NULL, cell->concepts, "CELL.YPARITY");
    6262
    63     int binning = psMetadataLookupS32(NULL, config->arguments, "BINNING"); // Binning in x and y
     63    int binning = psMetadataLookupS32(NULL, recipe, "BINNING"); // Binning in x and y
    6464
    6565    pmPSF *psf = psMetadataLookupPtr (&mdok, chip->analysis, "PSPHOT.PSF");
Note: See TracChangeset for help on using the changeset viewer.