Changeset 26136
- Timestamp:
- Nov 13, 2009, 5:03:05 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/20091113/psastro/src/psastroChipAstrom.c
r25299 r26136 56 56 57 57 // select the raw objects for this readout 58 psArray *rawstars = psMetadataLookupPtr (&status, readout->analysis, "PSASTRO.RAWSTARS"); 59 if (rawstars == NULL) { continue; } 58 psArray *rawstarsAll = psMetadataLookupPtr (&status, readout->analysis, "PSASTRO.RAWSTARS"); 59 if (rawstarsAll == NULL) { continue; } 60 psArray *rawstars = psastroRemoveClumpsIterate(rawstarsAll, 150, 3); 60 61 61 62 // select the raw objects for this readout 62 psArray *refstars = psMetadataLookupPtr (&status, readout->analysis, "PSASTRO.REFSTARS"); 63 if (refstars == NULL) { continue; } 63 psArray *refstarsAll = psMetadataLookupPtr (&status, readout->analysis, "PSASTRO.REFSTARS"); 64 if (refstarsAll == NULL) { continue; } 65 psArray *refstars = psastroRemoveClumpsIterate(refstarsAll, 150, 2); 64 66 65 67 // the absolute minimum number of stars is 4 (for order = 1) 66 68 if ((rawstars->n < 4) || (refstars->n < 4)) { 67 69 readout->data_exists = false; 68 psLogMsg ("psastro", 3, "insufficient rawstars (%ld) or refstars (%ld)", 69 rawstars->n, refstars->n); 70 psLogMsg ("psastro", 3, "insufficient rawstars (%ld) or refstars (%ld)", rawstars->n, refstars->n); 71 psFree (rawstars); 72 psFree (refstars); 70 73 continue; 71 74 } … … 84 87 readout->data_exists = false; 85 88 psLogMsg ("psastro", 3, "failed to find a solution\n"); 89 psFree (rawstars); 90 psFree (refstars); 86 91 continue; 87 92 } … … 90 95 readout->data_exists = false; 91 96 psLogMsg ("psastro", 3, "failed to find a solution\n"); 97 psFree (rawstars); 98 psFree (refstars); 92 99 continue; 93 100 } 101 102 psFree (rawstars); 103 psFree (refstars); 94 104 95 105 numGoodRO++;
Note:
See TracChangeset
for help on using the changeset viewer.
