Changeset 18011 for trunk/ppSim/src/ppSimMakeStars.c
- Timestamp:
- Jun 8, 2008, 4:03:31 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/ppSim/src/ppSimMakeStars.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppSim/src/ppSimMakeStars.c
r17616 r18011 1 1 # include "ppSim.h" 2 3 # define ESCAPE(MSG) { \ 4 psError(PS_ERR_BAD_PARAMETER_VALUE, true, MSG); \ 5 return false; } 2 6 3 7 bool ppSimMakeStars(psArray *stars, pmFPA *fpa, pmConfig *config, const psRandom *rng) { … … 23 27 float zp = psMetadataLookupF32(&status, recipe, "ZEROPOINT"); // Photometric zero point 24 28 float seeing = psMetadataLookupF32(&status, recipe, "SEEING"); // Seeing SIGMA (pixels) 25 float scale = psMetadataLookupF32(&status, recipe, "SCALE") * M_PI / 3600.0 / 180.0; // Plate scale (radians/pixel) 29 float scale = psMetadataLookupF32(&status, recipe, "PIXEL.SCALE") * M_PI / 3600.0 / 180.0; // Plate scale (radians/pixel) 30 31 if (isnan(darkRate)) darkRate = 0.0; 32 if (isnan(expTime)) ESCAPE("EXPTIME is not defined"); 33 if (isnan(zp)) ESCAPE("ZEROPOINT is not defined"); 34 if (isnan(seeing)) ESCAPE("SEEING is not defined"); 35 if (isnan(scale)) ESCAPE("PIXEL.SCALE is not defined"); 26 36 27 37 bool flatLum = psMetadataLookupBool(&status,recipe, "STARS.FLAT.LUM"); // were real stars generated? … … 47 57 refMag = psMetadataLookupF32(&status, fpa->concepts, "STARS.REAL.MAG.PEAK"); // Star brightest magnitude 48 58 refSum = psMetadataLookupF32(&status, fpa->concepts, "STARS.REAL.SUM.PEAK"); // Star brightest magnitude 49 assert (status); 59 60 // if we tried and failed to load reference stars, set more artificial limits 61 if (!status) { 62 refMag = brightMag; 63 refSum = 1; 64 } 50 65 } else { 51 66 refMag = brightMag;
Note:
See TracChangeset
for help on using the changeset viewer.
