IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 8, 2008, 4:03:31 PM (18 years ago)
Author:
eugene
Message:

update from changes on eam_branch_20080511 : adding photometry of fake sources, force photometry; major cleanups

File:
1 edited

Legend:

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

    r17557 r18011  
    1010   
    1111    if (!galaxies->n) { return true; }
    12 
    13     // XXX is this needed?
    14     // pmFPAfile *simSources = psMetadataLookupPtr(NULL, config->files, "PPSIM.SOURCES"); // Output sources
    1512
    1613    pmCell *cell = readout->parent;
     
    3835    if (isnan(skyRate)) {
    3936        float zp      = psMetadataLookupF32(&mdok, recipe, "ZEROPOINT"); assert (mdok);
    40         float scale   = psMetadataLookupF32(&mdok, recipe, "SCALE");    assert (mdok);
     37        float scale   = psMetadataLookupF32(&mdok, recipe, "PIXEL.SCALE"); assert (mdok);
    4138        float skyMags = psMetadataLookupF32(&mdok, recipe, "SKY.MAGS");  assert (mdok);
    4239        skyRate = scale * scale * ppSimMagToFlux (skyMags, zp);
     
    5653    int yParityCell = psMetadataLookupS32(NULL, cell->concepts, "CELL.YPARITY");
    5754
    58     int binning = psMetadataLookupS32(NULL, config->arguments, "BINNING"); // Binning in x and y
     55    int binning = psMetadataLookupS32(NULL, recipe, "BINNING"); // Binning in x and y
    5956
    6057    // determine the galaxy model
    61     char *modelName = psMetadataLookupStr(&mdok, config->arguments, "GALAXY.MODEL"); // galaxy model name
     58    char *modelName = psMetadataLookupStr(&mdok, recipe, "GALAXY.MODEL"); // galaxy model name
    6259    if (modelName == NULL) {
    6360        modelName = defaultModel;
Note: See TracChangeset for help on using the changeset viewer.