Changeset 10855 for trunk/psastro/src/psastroChipAstrom.c
- Timestamp:
- Dec 29, 2006, 8:36:33 AM (20 years ago)
- File:
-
- 1 edited
-
trunk/psastro/src/psastroChipAstrom.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psastro/src/psastroChipAstrom.c
r10785 r10855 49 49 if (refstars == NULL) { continue; } 50 50 51 // the absolute minimum number of stars is 4 (for order = 1) 52 if ((rawstars->n < 4) || (refstars->n < 4)) { 53 psLogMsg ("psastro", 3, "insufficient rawstars (%ld) or refstars (%ld)", 54 rawstars->n, refstars->n); 55 continue; 56 } 57 51 58 // save WCS and analysis metadata in update header 52 59 psMetadata *updates = psMetadataAlloc(); 53 60 61 // XXX update the header with info to reflect the failure 54 62 if (!psastroOneChip (fpa, chip, refstars, rawstars, recipe, updates)) { 55 psError (PSASTRO_ERR_DATA, false, "failed to find a solution\n"); 56 return false; 63 psLogMsg ("psastro", 3, "failed to find a solution\n"); 64 psFree (updates); 65 continue; 57 66 } 58 67 pmAstromWriteWCS (updates, fpa, chip, NONLIN_TOL);
Note:
See TracChangeset
for help on using the changeset viewer.
