Changeset 16072
- Timestamp:
- Jan 14, 2008, 4:53:20 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/psastro/src/psastroConvert.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psastro/src/psastroConvert.c
r16014 r16072 57 57 float iMagMin = psMetadataLookupF32 (&status, recipe, "PSASTRO.MIN.INST.MAG.RAW"); 58 58 59 // we are going to select the brighter Nmax subset for astrometry 60 pmSourceMode skip = PM_SOURCE_MODE_DEFAULT; 61 char *ignoreList = psMetadataLookupStr (&status, recipe, "PSASTRO.IGNORE"); 62 if (ignoreList != NULL) { 63 psArray *list = psStringSplitArray (ignoreList, ",", false); 64 for (int i = 0; i < list->n; i++) { 65 pmSourceMode mode = pmSourceModeFromString (list->data[i]); 66 if (mode == PM_SOURCE_MODE_DEFAULT) { 67 psWarning ("unknown source mode in PSASTRO.IGNORE, skipping"); 68 continue; 69 } 70 skip |= mode; 71 } 72 psFree (list); 73 } 59 74 60 75 // choose the first nMax sources … … 69 84 pmSource *source = sources->data[n]; 70 85 // XXX this needs to be flexible 71 if (source->mode & PM_SOURCE_MODE_SATSTAR) continue; 72 if (source->mode & PM_SOURCE_MODE_BLEND) continue; 86 if (source->mode & skip) continue; 73 87 if ((iMagMax != 0.0) && (source->psfMag > iMagMax)) continue; 74 88 if ((iMagMin != 0.0) && (source->psfMag < iMagMin)) continue;
Note:
See TracChangeset
for help on using the changeset viewer.
