Changeset 8807
- Timestamp:
- Sep 13, 2006, 9:22:32 AM (20 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/psphotApResid.c (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphotApResid.c
r8780 r8807 124 124 return false; 125 125 } 126 } 127 128 // constant and skybias only 129 if (!strcasecmp (ApTrendOption, "SKYBIAS")) { 126 } else if (!strcasecmp (ApTrendOption, "SKYBIAS")) { // constant and skybias only 130 127 // first clip out objects which are too far from the median 131 128 stats->clipIter = 2; … … 145 142 return false; 146 143 } 147 } 148 149 if (!strcasecmp (ApTrendOption, "SKYSAT")) { 144 } else if (!strcasecmp (ApTrendOption, "SKYSAT")) { 150 145 // first clip out objects which are too far from the median 151 146 stats->clipIter = 2; … … 174 169 return false; 175 170 } 176 } 177 178 // constant and linear X,Y only 179 if (!strcasecmp (ApTrendOption, "XY_LIN")) { 171 } else if (!strcasecmp (ApTrendOption, "XY_LIN")) { // constant and linear X,Y only 180 172 // first clip out objects which are too far from the median 181 173 stats->clipIter = 2; … … 195 187 return false; 196 188 } 197 } 198 199 // constant and quadratic X,Y only 200 if (!strcasecmp (ApTrendOption, "XY_QUAD")) { 189 } else if (!strcasecmp (ApTrendOption, "XY_QUAD")) { // constant and quadratic X,Y only 201 190 // first clip out objects which are too far from the median 202 191 stats->clipIter = 2; … … 216 205 return false; 217 206 } 218 } 219 220 // constant and sky, linear X,Y only 221 if (!strcasecmp (ApTrendOption, "SKY_XY_LIN")) { 207 } else if (!strcasecmp (ApTrendOption, "SKY_XY_LIN")) { // constant and sky, linear X,Y only 222 208 // first clip out objects which are too far from the median 223 209 stats->clipIter = 2; … … 237 223 return false; 238 224 } 239 } 240 241 // constant and sky, linear X,Y only 242 if (!strcasecmp (ApTrendOption, "SKYSAT_XY_LIN")) { 225 } else if (!strcasecmp (ApTrendOption, "SKYSAT_XY_LIN")) { // constant and sky, linear X,Y only 243 226 // first clip out objects which are too far from the median 244 227 stats->clipIter = 2; … … 267 250 return false; 268 251 } 269 } 270 271 if (!strcasecmp (ApTrendOption, "ALL")) { 252 } else if (!strcasecmp (ApTrendOption, "ALL")) { 272 253 // first clip out objects which are too far from the median 273 254 stats->clipIter = 2; … … 296 277 return false; 297 278 } 279 } else { 280 psError(PSPHOT_ERR_PHOTOM, true, "Unknown APTREND value: %s", ApTrendOption); 281 return false; 298 282 } 299 283
Note:
See TracChangeset
for help on using the changeset viewer.
