Changeset 24650
- Timestamp:
- Jul 2, 2009, 3:41:27 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/psastro/src/psastroLoadGhosts.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psastro/src/psastroLoadGhosts.c
r23810 r24650 46 46 pmCell *cell = NULL; 47 47 pmReadout *readout = NULL; 48 float zeropt, exptime ;48 float zeropt, exptime, MAX_MAG; 49 49 psMetadata *md = NULL; 50 50 psPolynomial2D *centerX = NULL; … … 71 71 if (!strcasecmp(ghostFile, "NONE")) return true; 72 72 73 double MAX_MAG = psMetadataLookupF32 (&status, recipe, "GHOST_MAX_MAG");74 75 73 if (!pmConfigFileRead (&ghostModel, ghostFile, "GHOST MODEL")) { 76 74 psError(PSASTRO_ERR_CONFIG, true, "Trouble loading ghost model"); … … 97 95 98 96 // really error-out here? or just skip? 99 if (!psastroZeroPointFromRecipe (&zeropt, &exptime, fpa, recipe)) {97 if (!psastroZeroPointFromRecipe (&zeropt, &exptime, &MAX_MAG, fpa, recipe)) { 100 98 psLogMsg ("psastro", PS_LOG_INFO, "failed to load zeropt data from recipe"); 101 99 goto escape; … … 162 160 // which encompass the full size of the ghost 163 161 pmChip *ghostChip = psastroFindChip (&ghost->chip->x, &ghost->chip->y, fpa, -ghost->srcFP->x, -ghost->srcFP->y); 164 fprintf (stderr, "raw chip position: %f, %f ", ghost->chip->x, ghost->chip->y);162 // fprintf (stderr, "raw chip position: %f, %f ", ghost->chip->x, ghost->chip->y); 165 163 166 164 ghostChip = psastroFindChip (&ghost->chip->x, &ghost->chip->y, fpa, ghost->FP->x, ghost->FP->y); 167 fprintf (stderr, "-> model chip position: %f, %f\n", ghost->chip->x, ghost->chip->y);165 // fprintf (stderr, "-> model chip position: %f, %f\n", ghost->chip->x, ghost->chip->y); 168 166 169 167 if (!ghostChip) goto skip;
Note:
See TracChangeset
for help on using the changeset viewer.
