Changeset 7352
- Timestamp:
- Jun 5, 2006, 2:46:33 PM (20 years ago)
- Location:
- trunk/ippTools/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/dettool.c
r7351 r7352 24 24 static bool normalizedframeMode(pxConfig *config); 25 25 static bool addresidMode(pxConfig *config); 26 static bool residMode(pxConfig *config); 26 27 27 28 static detInputExpRow *rawDetrenTodetInputExpRow(rawDetrendExpRow *rawExp, psS32 det_id); … … 95 96 case DETTOOL_MODE_ADDRESID: 96 97 if (addresidMode(config)) { 98 goto FAIL; 99 } 100 break; 101 case DETTOOL_MODE_RESID: 102 if (residMode(config)) { 97 103 goto FAIL; 98 104 } … … 1449 1455 return true; 1450 1456 } 1457 1458 static bool residMode(pxConfig *config) 1459 { 1460 PS_ASSERT_PTR_NON_NULL(config, false); 1461 return true; 1462 } -
trunk/ippTools/src/dettool.h
r7321 r7352 19 19 DETTOOL_MODE_NORMALIZEDFRAME, 20 20 DETTOOL_MODE_ADDRESID, 21 DETTOOL_MODE_RESID, 21 22 } dettoolMode; 22 23 -
trunk/ippTools/src/dettoolConfig.c
r7335 r7352 184 184 "define as having acceptable residuals", false); 185 185 186 // -normalizedframe 187 psMetadata *residArgs = psMetadataAlloc(); 188 psMetadataAddStr(residArgs, PS_LIST_TAIL, "-det_id", 0, 189 "search for detrend ID (required)", NULL); 190 psMetadataAddStr(residArgs, PS_LIST_TAIL, "-iter", 0, 191 "search for iteration number", NULL); 192 psMetadataAddStr(residArgs, PS_LIST_TAIL, "-class_id", 0, 193 "search for class ID", NULL); 194 psMetadataAddStr(residArgs, PS_LIST_TAIL, "-stats", 0, 195 "search for stats", NULL); 196 psMetadataAddStr(residArgs, PS_LIST_TAIL, "-recipe", 0, 197 "search for recipe", NULL); 198 186 199 #define PXTOOL_MODE(option, modeval, argset) \ 187 200 if ((N = psArgumentGet (argc, argv, option))) { \ … … 217 230 PXTOOL_MODE("-normalizedframe", DETTOOL_MODE_NORMALIZEDFRAME,normalizedframeArgs); 218 231 PXTOOL_MODE("-addresid", DETTOOL_MODE_ADDRESID, addresidArgs); 232 PXTOOL_MODE("-resid", DETTOOL_MODE_RESID, residArgs); 219 233 220 234 bool argErr = false; … … 270 284 psArgumentHelp(addresidArgs); 271 285 psFree(addresidArgs); 286 fprintf (stdout, "-resid "); 287 psArgumentHelp(residArgs); 288 psFree(residArgs); 272 289 273 290 exit(EXIT_FAILURE); … … 285 302 psFree(addnormalizedArgs); 286 303 psFree(addresidArgs); 304 psFree(residArgs); 287 305 288 306 // setup search criterion
Note:
See TracChangeset
for help on using the changeset viewer.
