Changeset 17672 for branches/eam_branch_20080511/ppSim/src/ppSimLoadStars.c
- Timestamp:
- May 13, 2008, 4:56:38 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branch_20080511/ppSim/src/ppSimLoadStars.c
r17557 r17672 1 # include "ppSim.h"1 # include "ppSim.h" 2 2 3 3 bool ppSimLoadStars (psArray *stars, pmFPA *fpa, pmConfig *config) { … … 24 24 float pa = psMetadataLookupF32(NULL, recipe, "PA"); // Position angle (radians) 25 25 float seeing = psMetadataLookupF32(NULL, recipe, "SEEING"); // Seeing SIGMA (pixels) 26 float scale = psMetadataLookupF32(NULL, recipe, " SCALE") * M_PI / 3600.0 / 180.0; // Plate scale (radians/pixel)26 float scale = psMetadataLookupF32(NULL, recipe, "PIXEL.SCALE") * M_PI / 3600.0 / 180.0; // Plate scale (radians/pixel) 27 27 float expTime = psMetadataLookupF32(NULL, recipe, "EXPTIME"); // Exposure time (sec) 28 28 … … 40 40 psMetadataAdd(astroRecipe, PS_LIST_TAIL, "DEC_MAX", PS_DATA_F32 | PS_META_REPLACE, "", dec0 + radius); 41 41 psArray *refStars = psastroLoadRefstars(config); 42 if (!refStars || refStars->n == 0) {42 if (!refStars) { 43 43 psError(PS_ERR_UNKNOWN, false, "Unable to find reference stars."); 44 44 psFree(refStars);
Note:
See TracChangeset
for help on using the changeset viewer.
