- Timestamp:
- May 3, 2010, 8:50:52 AM (16 years ago)
- Location:
- branches/simtest_nebulous_branches
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/simtest_nebulous_branches
- Property svn:mergeinfo changed
-
branches/simtest_nebulous_branches/ppSim
-
Property svn:mergeinfo
set to (toggle deleted branches)
/trunk/ppSim merged eligible /branches/eam_branches/stackphot.20100406/ppSim 27629-27654 /branches/pap_delete/ppSim 27530-27595
-
Property svn:mergeinfo
set to (toggle deleted branches)
-
branches/simtest_nebulous_branches/ppSim/src/ppSimLoop.c
r24486 r27840 30 30 ppSimType type = ppSimTypeFromString (typeStr); // Type of image to simulate 31 31 int binning = psMetadataLookupS32(NULL, recipe, "BINNING"); // Binning in x and y 32 33 ppSimUpdateConceptsFPA (fpa, config); 34 if (fpa->hdu) { // XXX only do this if there is no INPUT image 35 if (!ppSimInitHeader(config, fpa, NULL, NULL)) ESCAPE (PS_ERR_UNKNOWN, "problem setting output header"); 36 } 32 37 33 38 psArray *stars = psArrayAllocEmpty (1); … … 43 48 if (!ppSimMakeStars (stars, fpa, config, rng)) ESCAPE (PS_ERR_UNKNOWN, "failed to make random stars"); 44 49 50 // Add random stars 51 if (!ppSimMakeStarGrid (stars, fpa, config, rng)) ESCAPE (PS_ERR_UNKNOWN, "failed to make random stars"); 52 45 53 // Add random galaxies 46 54 if (!ppSimMakeGalaxies (galaxies, fpa, config, rng)) ESCAPE (PS_ERR_UNKNOWN, "failed to make random galaxies"); … … 57 65 psFree(view); 58 66 return false; 59 }60 61 ppSimUpdateConceptsFPA (fpa, config);62 if (fpa->hdu) { // XXX only do this if there is no INPUT image63 if (!ppSimInitHeader(config, fpa, NULL, NULL)) ESCAPE (PS_ERR_UNKNOWN, "problem setting output header");64 67 } 65 68
Note:
See TracChangeset
for help on using the changeset viewer.
