- Timestamp:
- Jan 8, 2009, 4:53:44 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/pap_branch_20090108/ppStack/src/ppStackSources.c
r21016 r21094 10 10 11 11 12 boolppStackSourcesTransparency(const psArray *sourceLists, const pmFPAview *view, const pmConfig *config)12 float ppStackSourcesTransparency(const psArray *sourceLists, const pmFPAview *view, const pmConfig *config) 13 13 { 14 PS_ASSERT_ARRAY_NON_NULL(sourceLists, false);15 PS_ASSERT_PTR_NON_NULL(view, false);16 PS_ASSERT_PTR_NON_NULL(config, false);14 PS_ASSERT_ARRAY_NON_NULL(sourceLists, NAN); 15 PS_ASSERT_PTR_NON_NULL(view, NAN); 16 PS_ASSERT_PTR_NON_NULL(config, NAN); 17 17 18 18 #ifdef TESTING … … 46 46 if (!airmassZP) { 47 47 psError(PS_ERR_UNKNOWN, false, "Unable to find ZP.AIRMASS in recipe."); 48 return false;48 return NAN; 49 49 } 50 50 … … 69 69 exptime, airmass, expFilter); 70 70 psFree(zp); 71 return false;71 return NAN; 72 72 } 73 73 … … 79 79 "Unable to find airmass term (ZP.AIRMASS) for filter %s", filter); 80 80 psFree(zp); 81 return false;81 return NAN; 82 82 } 83 83 } else if (strcmp(filter, expFilter) != 0) { 84 84 psError(PS_ERR_BAD_PARAMETER_VALUE, false, "Filters don't match: %s vs %s", filter, expFilter); 85 85 psFree(zp); 86 return false;86 return NAN; 87 87 } 88 88 … … 95 95 psError(PS_ERR_UNKNOWN, false, "Unable to match sources"); 96 96 psFree(zp); 97 return false;97 return NAN; 98 98 } 99 99 psVector *trans = pmSourceMatchRelphot(matches, zp, iter, tol, starLimit, transIter, transRej, … … 128 128 if (!trans) { 129 129 psError(PS_ERR_UNKNOWN, false, "Unable to measure transparencies"); 130 return false;130 return NAN; 131 131 } 132 132 … … 158 158 psError(PS_ERR_UNKNOWN, false, "Unable to match sources"); 159 159 psFree(zp); 160 return false;160 return NAN; 161 161 } 162 162 psVector *trans = pmSourceMatchRelphot(matches, zp, iter, tol, starLimit, transIter, transRej, … … 165 165 } 166 166 #endif 167 return true; 167 168 return sumExpTime; 168 169 }
Note:
See TracChangeset
for help on using the changeset viewer.
