Changeset 18011 for trunk/ppSim/src/ppSimMakeGalaxies.c
- Timestamp:
- Jun 8, 2008, 4:03:31 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/ppSim/src/ppSimMakeGalaxies.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppSim/src/ppSimMakeGalaxies.c
r17557 r18011 9 9 10 10 bool galaxyFake = psMetadataLookupBool(&mdok, recipe, "GALAXY.FAKE"); // Density of fakes 11 if (!galaxyFake) return NULL;11 if (!galaxyFake) return true; 12 12 13 13 float galaxyLum = psMetadataLookupF32(&mdok, recipe, "GALAXY.LUM"); // Galaxy luminosity func slope … … 35 35 float zp = psMetadataLookupF32(&mdok, recipe, "ZEROPOINT"); // Photometric zero point 36 36 float seeing = psMetadataLookupF32(&mdok, recipe, "SEEING"); // Seeing sigma (pix) 37 float scale = psMetadataLookupF32(&mdok, recipe, " SCALE") * M_PI / 3600.0 / 180.0; // Plate scale (radians/pixel)37 float scale = psMetadataLookupF32(&mdok, recipe, "PIXEL.SCALE") * M_PI / 3600.0 / 180.0; // Plate scale (radians/pixel) 38 38 float skyRate = psMetadataLookupF32(&mdok, recipe, "SKY.RATE"); // Sky rate 39 39 if (isnan(skyRate)) { … … 42 42 } 43 43 44 if (galaxyDensity <= 0) return NULL;44 if (galaxyDensity <= 0) return true; 45 45 46 46 // Size of FPA … … 66 66 psLogMsg("ppSim", PS_LOG_INFO, 67 67 "Image noise is above brightest random galaxy --- no random galaxy added."); 68 return NULL;68 return true; 69 69 } 70 70 … … 138 138 } 139 139 } 140 return galaxies;140 return true; 141 141 }
Note:
See TracChangeset
for help on using the changeset viewer.
