Changeset 25760
- Timestamp:
- Oct 2, 2009, 3:17:11 PM (17 years ago)
- Location:
- trunk/ppSim/src
- Files:
-
- 3 edited
-
ppSimLoadStars.c (modified) (1 diff)
-
ppSimLoop.c (modified) (2 diffs)
-
ppSimMakeStars.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppSim/src/ppSimLoadStars.c
r23413 r25760 41 41 psMetadataAdd(astroRecipe, PS_LIST_TAIL, "DEC_MIN", PS_DATA_F32 | PS_META_REPLACE, "", dec0 - radius); 42 42 psMetadataAdd(astroRecipe, PS_LIST_TAIL, "DEC_MAX", PS_DATA_F32 | PS_META_REPLACE, "", dec0 + radius); 43 psArray *refStars = psastroLoadRefstars(config, "P SASTRO.INPUT");43 psArray *refStars = psastroLoadRefstars(config, "PPSIM.OUTPUT"); 44 44 if (!refStars) { 45 45 psError(PS_ERR_UNKNOWN, false, "Unable to find reference stars."); -
trunk/ppSim/src/ppSimLoop.c
r24486 r25760 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); … … 57 62 psFree(view); 58 63 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 64 } 65 65 -
trunk/ppSim/src/ppSimMakeStars.c
r18011 r25760 61 61 if (!status) { 62 62 refMag = brightMag; 63 refSum = 1;63 refSum = starsDensity * xSize * ySize * PS_SQR(scale * 180.0 / M_PI); 64 64 } 65 65 } else {
Note:
See TracChangeset
for help on using the changeset viewer.
