Changeset 27838 for branches/tap_branches/psastro/src/psastroFixChips.c
- Timestamp:
- May 3, 2010, 8:41:49 AM (16 years ago)
- Location:
- branches/tap_branches
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
psastro/src/psastroFixChips.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/tap_branches
- Property svn:mergeinfo changed
-
branches/tap_branches/psastro/src/psastroFixChips.c
r21422 r27838 248 248 badAstrom |= fabs(obsAngle - refAngle) > angleTol; 249 249 250 fprintf (stderr, "chip %d, angle: %f, pixel: %f,%f\n", view->chip, obsAngle - refAngle, obsCoord.x - refCoord.x, obsCoord.y - refCoord.y); 250 fprintf (stderr, "chip %d, angle: %f, pixel: %f,%f : ", view->chip, obsAngle - refAngle, obsCoord.x - refCoord.x, obsCoord.y - refCoord.y); 251 if (badAstrom) { 252 fprintf (stderr, "BAD ASTROM\n"); 253 } else { 254 fprintf (stderr, "GOOD ASTROM\n"); 255 } 251 256 252 257 // XXX for now, just use first readout … … 265 270 psMetadataAddF32 (updates, PS_LIST_TAIL, "AST_DY", PS_META_REPLACE, "chip y offset wrt model", obsCoord.y - refCoord.y); 266 271 psMetadataAddF32 (updates, PS_LIST_TAIL, "AST_DT", PS_META_REPLACE, "chip rot offset wrt model", obsAngle - refAngle); 272 273 continue; 267 274 268 275 // for successful chips, save the measured offsets in the header … … 319 326 } 320 327 321 psastroUpdateChipToFPA (input->fpa, obsChip , rawstars, refstars);328 psastroUpdateChipToFPA (input->fpa, obsChip); 322 329 323 330 // XXX update the header with info to reflect the failure 324 if (!psastroOneChipFit (input->fpa, obsChip, re fstars, rawstars, recipe, updates)) {331 if (!psastroOneChipFit (input->fpa, obsChip, readout, refstars, rawstars, recipe, updates)) { 325 332 readout->data_exists = false; 326 333 psLogMsg ("psastro", 3, "failed to find a solution\n");
Note:
See TracChangeset
for help on using the changeset viewer.
