Changeset 13164
- Timestamp:
- May 2, 2007, 3:00:14 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/psastro/src/psastroChooseRefstars.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psastro/src/psastroChooseRefstars.c
r12806 r13164 24 24 float fieldExtra = psMetadataLookupS32 (&status, recipe, "PSASTRO.FIELD.EXTRA"); 25 25 if (!status) fieldExtra = 0.0; 26 27 bool matchLumFunc = psMetadataLookupBool (&status, recipe, "PSASTRO.MATCH.LUMFUNC"); 26 28 27 29 pmFPAview *view = pmFPAviewAlloc (0); … … 77 79 psTrace ("psastro", 4, "Added %ld refstars\n", refstars->n); 78 80 79 psMetadataAdd (readout->analysis, PS_LIST_TAIL, "PSASTRO.REFSTARS", PS_DATA_ARRAY, "astrometry matches", refstars);80 psFree (refstars);81 psMetadataAdd (readout->analysis, PS_LIST_TAIL, "PSASTRO.REFSTARS", PS_DATA_ARRAY, "astrometry matches", refstars); 82 psFree (refstars); 81 83 82 // XXX TEST : skip the luminosity function selection 83 continue; 84 85 // XXX this error means the readout fails, but should probably not kill the entire program 86 // in this case, no PSASTRO.REFSTARS is added to readout->analysis 87 if (!psastroRefstarSubset (readout)) { 88 psError(PSASTRO_ERR_DATA, false, "Can't determine an appropriate refstar subset\n"); 89 return false; 84 if (matchLumFunc) { 85 // in this case, no PSASTRO.REFSTARS is added to readout->analysis 86 if (!psastroRefstarSubset (readout)) { 87 psError(PSASTRO_ERR_DATA, false, "Can't determine an appropriate refstar subset\n"); 88 return false; 89 } 90 90 } 91 91 }
Note:
See TracChangeset
for help on using the changeset viewer.
