Changeset 18011 for trunk/ppSim/src/ppSimInsertGalaxies.c
- Timestamp:
- Jun 8, 2008, 4:03:31 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/ppSim/src/ppSimInsertGalaxies.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppSim/src/ppSimInsertGalaxies.c
r17557 r18011 10 10 11 11 if (!galaxies->n) { return true; } 12 13 // XXX is this needed?14 // pmFPAfile *simSources = psMetadataLookupPtr(NULL, config->files, "PPSIM.SOURCES"); // Output sources15 12 16 13 pmCell *cell = readout->parent; … … 38 35 if (isnan(skyRate)) { 39 36 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); 41 38 float skyMags = psMetadataLookupF32(&mdok, recipe, "SKY.MAGS"); assert (mdok); 42 39 skyRate = scale * scale * ppSimMagToFlux (skyMags, zp); … … 56 53 int yParityCell = psMetadataLookupS32(NULL, cell->concepts, "CELL.YPARITY"); 57 54 58 int binning = psMetadataLookupS32(NULL, config->arguments, "BINNING"); // Binning in x and y55 int binning = psMetadataLookupS32(NULL, recipe, "BINNING"); // Binning in x and y 59 56 60 57 // determine the galaxy model 61 char *modelName = psMetadataLookupStr(&mdok, config->arguments, "GALAXY.MODEL"); // galaxy model name58 char *modelName = psMetadataLookupStr(&mdok, recipe, "GALAXY.MODEL"); // galaxy model name 62 59 if (modelName == NULL) { 63 60 modelName = defaultModel;
Note:
See TracChangeset
for help on using the changeset viewer.
