Changeset 31333 for trunk/psastro/src/psastroChipAstrom.c
- Timestamp:
- Apr 21, 2011, 10:59:14 AM (15 years ago)
- File:
-
- 1 edited
-
trunk/psastro/src/psastroChipAstrom.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psastro/src/psastroChipAstrom.c
r27639 r31333 60 60 61 61 // select the raw objects for this readout 62 psArray *gridrawstars = psMetadataLookupPtr (&status, readout->analysis, "PSASTRO.GRID.RAWSTARS.SUBSET"); 63 if (gridrawstars == NULL) { 64 gridrawstars = rawstars; 65 } else { 66 // the absolute minimum number of stars is 4 (for order = 1) 67 if (gridrawstars->n < 4) { 68 readout->data_exists = false; 69 psLogMsg ("psastro", 3, "insufficient gird rawstars (%ld)", gridrawstars->n); 70 continue; 71 } 72 } 73 62 74 psArray *refstars = psMetadataLookupPtr (&status, readout->analysis, "PSASTRO.REFSTARS.SUBSET"); 63 75 if (refstars == NULL) { continue; } … … 80 92 81 93 // XXX update the header with info to reflect the failure 82 if (!psastroOneChipGrid (fpa, chip, refstars, rawstars, recipe, updates)) {94 if (!psastroOneChipGrid (fpa, chip, refstars, gridrawstars, recipe, updates)) { 83 95 readout->data_exists = false; 84 96 psLogMsg ("psastro", 3, "failed to find a solution\n");
Note:
See TracChangeset
for help on using the changeset viewer.
