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