Changeset 27004 for trunk/ppStack/src/ppStackSources.c
- Timestamp:
- Feb 18, 2010, 6:42:01 PM (16 years ago)
- Location:
- trunk/ppStack/src
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
ppStackSources.c (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppStack/src
- Property svn:ignore
-
old new 10 10 stamp-h1 11 11 ppStackVersionDefinitions.h 12 ppStackErrorCodes.c 13 ppStackErrorCodes.h
-
- Property svn:ignore
-
trunk/ppStack/src/ppStackSources.c
r26898 r27004 116 116 psMetadata *airmassZP = psMetadataLookupMetadata(NULL, recipe, "ZP.AIRMASS"); // Airmass terms 117 117 if (!airmassZP) { 118 psError(P S_ERR_UNKNOWN, false, "Unable to find ZP.AIRMASS in recipe.");118 psError(PPSTACK_ERR_CONFIG, false, "Unable to find ZP.AIRMASS in recipe."); 119 119 return false; 120 120 } … … 152 152 if (!isfinite(exptime) || exptime == 0 || !isfinite(airmass) || airmass == 0 || 153 153 !expFilter || strlen(expFilter) == 0) { 154 psError(P S_ERR_UNEXPECTED_NULL, false,154 psError(PPSTACK_ERR_CONFIG, false, 155 155 "Unable to find exposure time (%f), airmass (%f) or filter (%s)", 156 156 exptime, airmass, expFilter); … … 163 163 airmassTerm = psMetadataLookupF32(NULL, airmassZP, filter); 164 164 if (!isfinite(airmassTerm)) { 165 psError(P S_ERR_BAD_PARAMETER_VALUE, false,165 psError(PPSTACK_ERR_CONFIG, false, 166 166 "Unable to find airmass term (ZP.AIRMASS) for filter %s", filter); 167 167 psFree(zp); … … 169 169 } 170 170 } else if (strcmp(filter, expFilter) != 0) { 171 psError(P S_ERR_BAD_PARAMETER_VALUE, false, "Filters don't match: %s vs %s", filter, expFilter);171 psError(PPSTACK_ERR_CONFIG, false, "Filters don't match: %s vs %s", filter, expFilter); 172 172 psFree(zp); 173 173 return false; … … 182 182 psArray *matches = pmSourceMatchSources(sourceLists, radius, true); // List of matches 183 183 if (!matches) { 184 psError(P S_ERR_UNKNOWN, false, "Unable to match sources");184 psError(PPSTACK_ERR_DATA, false, "Unable to match sources"); 185 185 psFree(zp); 186 186 return false; … … 196 196 transIter, transRej, transThresh); // Transparencies per image 197 197 if (!trans) { 198 psError(P S_ERR_UNKNOWN, false, "Unable to measure transparencies");198 psError(PPSTACK_ERR_DATA, false, "Unable to measure transparencies"); 199 199 return false; 200 200 } … … 241 241 psArray *matches = pmSourceMatchSources(sourceLists, radius); // List of matches 242 242 if (!matches) { 243 psError(P S_ERR_UNKNOWN, false, "Unable to match sources");243 psError(PPSTACK_ERR_DATA, false, "Unable to match sources"); 244 244 psFree(zp); 245 245 return false; … … 262 262 iter2, starRej2, starLimit); // Shifts for each image 263 263 if (!offsets) { 264 psError(P S_ERR_UNKNOWN, false, "Unable to measure offsets");264 psError(PPSTACK_ERR_DATA, false, "Unable to measure offsets"); 265 265 return false; 266 266 }
Note:
See TracChangeset
for help on using the changeset viewer.
