Changeset 26259 for trunk/psastro/src/psastroMosaicSetMatch.c
- Timestamp:
- Nov 22, 2009, 2:57:41 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/psastro/src/psastroMosaicSetMatch.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psastro/src/psastroMosaicSetMatch.c
r21422 r26259 26 26 double RADIUS = psMetadataLookupF32 (&status, recipe, radiusWord); 27 27 if (!status) { 28 psError(PS_ERR_IO, false, "Failed to lookup matching radius: %s", radiusWord); 29 psFree (view); 30 return false; 28 psAbort("Failed to lookup matching radius: %s", radiusWord); 29 } 30 31 int uniqIter = psMetadataLookupS32 (&status, recipe, "PSASTRO.MOSAIC.UNIQ.ITER"); 32 if (!status) { 33 psAbort("Failed to lookup matching PSASTRO.MOSAIC.UNIQ.ITER"); 31 34 } 32 35 … … 58 61 59 62 // select the raw objects for this readout 60 psArray *rawstars = psMetadataLookupPtr (NULL, readout->analysis, "PSASTRO.RAWSTARS ");63 psArray *rawstars = psMetadataLookupPtr (NULL, readout->analysis, "PSASTRO.RAWSTARS.SUBSET"); 61 64 if (rawstars == NULL) { continue; } 62 65 63 66 // select the raw objects for this readout 64 psArray *refstars = psMetadataLookupPtr (NULL, readout->analysis, "PSASTRO.REFSTARS ");67 psArray *refstars = psMetadataLookupPtr (NULL, readout->analysis, "PSASTRO.REFSTARS.SUBSET"); 65 68 if (refstars == NULL) { continue; } 66 69 psTrace ("psastro", 4, "Trying %ld refstars\n", refstars->n); … … 68 71 psArray *matches = pmAstromRadiusMatchChip (rawstars, refstars, RADIUS); 69 72 psTrace ("psastro", 4, "Matched %ld refstars\n", matches->n); 73 74 if (iteration >= uniqIter) { 75 psArray *unique = pmAstromRadiusMatchUniq (rawstars, refstars, matches); 76 if (!unique) { 77 psLogMsg ("psastro", 3, "failed to generate a uniq set of matched sources\n"); 78 return false; 79 } 80 psFree (matches); 81 matches = unique; 82 } 70 83 71 84 pmAstromVisualPlotMosaicMatches(rawstars, refstars, matches, iteration, recipe);
Note:
See TracChangeset
for help on using the changeset viewer.
