Changeset 16071
- Timestamp:
- Jan 14, 2008, 4:52:43 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/psastro/src/psastroChipAstrom.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psastro/src/psastroChipAstrom.c
r15196 r16071 49 49 readout->data_exists = false; 50 50 psLogMsg ("psastro", 3, "insufficient rawstars (%ld) or refstars (%ld)", 51 rawstars->n, refstars->n);51 rawstars->n, refstars->n); 52 52 continue; 53 53 } 54 55 char *filename = NULL;56 char *chipname = psMetadataLookupStr (NULL, chip->concepts, "CHIP.NAME");57 54 58 55 // save WCS and analysis metadata in update header … … 60 57 61 58 // XXX update the header with info to reflect the failure 62 if (!psastroOneChip (fpa, chip, refstars, rawstars, recipe, updates)) {59 if (!psastroOneChipGrid (fpa, chip, refstars, rawstars, recipe, updates)) { 63 60 readout->data_exists = false; 64 61 psLogMsg ("psastro", 3, "failed to find a solution\n"); … … 66 63 continue; 67 64 } 65 // XXX update the header with info to reflect the failure 66 if (!psastroOneChipFit (fpa, chip, refstars, rawstars, recipe, updates)) { 67 readout->data_exists = false; 68 psLogMsg ("psastro", 3, "failed to find a solution\n"); 69 psFree (updates); 70 continue; 71 } 72 68 73 pmAstromWriteWCS (updates, fpa, chip, NONLIN_TOL); 69 74 psMetadataAdd (readout->analysis, PS_LIST_TAIL, "PSASTRO.HEADER", PS_DATA_METADATA, "psastro header stats", updates); … … 71 76 72 77 if (psTraceGetLevel("psastro.dump") > 0) { 78 79 char *filename = NULL; 80 char *chipname = psMetadataLookupStr (NULL, chip->concepts, "CHIP.NAME"); 81 73 82 psStringAppend (&filename, "rawstars.ch.%s.dat", chipname); 74 83 psastroDumpStars (rawstars, filename); … … 85 94 } 86 95 96 // psastroDumpCorners ("corners.chipAstrom.dat", input->fpa); 97 98 # if (0) 99 if (!psastroFixChipsTest (config, recipe)) { 100 psError(PSASTRO_ERR_UNKNOWN, false, "failed to align problematic chips"); 101 return false; 102 } 103 # endif 104 105 if (!psastroFixChips (config, recipe)) { 106 psError(PSASTRO_ERR_UNKNOWN, false, "failed to align problematic chips"); 107 return false; 108 } 109 110 // psastroDumpCorners ("corners.fixChips.dat", input->fpa); 111 87 112 psFree (view); 88 113 return true;
Note:
See TracChangeset
for help on using the changeset viewer.
