Changeset 11723
- Timestamp:
- Feb 8, 2007, 3:21:15 PM (19 years ago)
- Location:
- trunk/ippTools
- Files:
-
- 5 edited
-
configure.ac (modified) (1 diff)
-
src/pxtables.c (modified) (2 diffs)
-
src/warptool.c (modified) (24 diffs)
-
src/warptool.h (modified) (1 diff)
-
src/warptoolConfig.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/configure.ac
r11625 r11723 16 16 AC_PROG_LIBTOOL 17 17 18 PKG_CHECK_MODULES([PSLIB], [pslib >= 1. 0.0])19 PKG_CHECK_MODULES([PSMODULES], [psmodules >= 1. 0.0])20 PKG_CHECK_MODULES([IPPDB], [ippdb >= 1. 0.0])18 PKG_CHECK_MODULES([PSLIB], [pslib >= 1.1.0]) 19 PKG_CHECK_MODULES([PSMODULES], [psmodules >= 1.1.0]) 20 PKG_CHECK_MODULES([IPPDB], [ippdb >= 1.1.3]) 21 21 22 22 PXTOOLS_CFLAGS="${PSLIB_CFLAGS=} ${PSMODULES_CFLAGS=} ${IPPDB_CFLAGS=}" -
trunk/ippTools/src/pxtables.c
r11047 r11723 79 79 CREATE_TABLE(detResidExpCreateTable); 80 80 CREATE_TABLE(detRunSummaryCreateTable); 81 CREATE_TABLE(skyCellCreateTable); 82 CREATE_TABLE(skyCellMapCreateTable); 81 83 CREATE_TABLE(p4RunCreateTable); 82 CREATE_TABLE(p4InputImfileCreateTable); 83 CREATE_TABLE(p4WarpedImfileCreateTable); 84 CREATE_TABLE(p4StackedImfileCreateTable); 85 CREATE_TABLE(p4DiffImfileCreateTable); 86 CREATE_TABLE(p4MagicMaskImfileCreateTable); 84 CREATE_TABLE(p4InputExpCreateTable); 85 CREATE_TABLE(p4ScfileCreateTable); 86 CREATE_TABLE(p4InputScfileCreateTable); 87 CREATE_TABLE(p4DiffScfileCreateTable); 87 88 88 89 return true; … … 152 153 DROP_TABLE(detRunSummaryDropTable); 153 154 DROP_TABLE(p4RunDropTable); 154 DROP_TABLE(p4InputImfileDropTable); 155 DROP_TABLE(p4WarpedImfileDropTable); 156 DROP_TABLE(p4StackedImfileDropTable); 157 DROP_TABLE(p4DiffImfileDropTable); 158 DROP_TABLE(p4MagicMaskImfileDropTable); 155 DROP_TABLE(p4InputExpDropTable); 156 DROP_TABLE(p4ScfileDropTable); 157 DROP_TABLE(p4InputScfileDropTable); 158 DROP_TABLE(p4DiffScfileDropTable); 159 159 160 160 return status; -
trunk/ippTools/src/warptool.c
r11702 r11723 32 32 33 33 static bool definerunMode(pxConfig *config); 34 static bool addinput imfileMode(pxConfig *config);35 static bool to warpedimfileMode(pxConfig *config);36 static bool add warpedimfileMode(pxConfig *config);37 static bool warpedimfileMode(pxConfig *config);34 static bool addinputexpMode(pxConfig *config); 35 static bool toscfileMode(pxConfig *config); 36 static bool addscfileMode(pxConfig *config); 37 static bool scfileMode(pxConfig *config); 38 38 static bool tostackedimfileMode(pxConfig *config); 39 static bool addstackedimfileMode(pxConfig *config);39 //static bool addstackedimfileMode(pxConfig *config); 40 40 static bool stackedimfileMode(pxConfig *config); 41 41 static bool todiffimfileMode(pxConfig *config); 42 static bool adddiffimfileMode(pxConfig *config);42 //static bool adddiffimfileMode(pxConfig *config); 43 43 static bool diffimfileMode(pxConfig *config); 44 44 … … 58 58 switch (config->mode) { 59 59 MODECASE(P4TOOL_MODE_DEFINERUN, definerunMode); 60 MODECASE(P4TOOL_MODE_ADDINPUT IMFILE, addinputimfileMode);61 MODECASE(P4TOOL_MODE_TO WARPEDIMFILE, towarpedimfileMode);62 MODECASE(P4TOOL_MODE_ADD WARPEDIMFILE, addwarpedimfileMode);63 MODECASE(P4TOOL_MODE_ WARPEDIMFILE, warpedimfileMode);60 MODECASE(P4TOOL_MODE_ADDINPUTEXP, addinputexpMode); 61 MODECASE(P4TOOL_MODE_TOSCFILE, toscfileMode); 62 MODECASE(P4TOOL_MODE_ADDSCFILE, addscfileMode); 63 MODECASE(P4TOOL_MODE_SCFILE, scfileMode); 64 64 MODECASE(P4TOOL_MODE_TOSTACKEDIMFILE, tostackedimfileMode); 65 MODECASE(P4TOOL_MODE_ADDSTACKEDIMFILE, addstackedimfileMode);65 // MODECASE(P4TOOL_MODE_ADDSTACKEDIMFILE, addstackedimfileMode); 66 66 MODECASE(P4TOOL_MODE_STACKEDIMFILE, stackedimfileMode); 67 67 MODECASE(P4TOOL_MODE_TODIFFIMFILE, todiffimfileMode); 68 MODECASE(P4TOOL_MODE_ADDDIFFIMFILE, adddiffimfileMode);68 // MODECASE(P4TOOL_MODE_ADDDIFFIMFILE, adddiffimfileMode); 69 69 MODECASE(P4TOOL_MODE_DIFFIMFILE, diffimfileMode); 70 70 default: … … 94 94 // required options 95 95 bool status = false; 96 psString survey_mode = psMetadataLookupStr(&status, config->args, "-survey_mode");96 psString mode = psMetadataLookupStr(&status, config->args, "-mode"); 97 97 if (!status) { 98 98 psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -survey_mode"); 99 99 return false; 100 100 } 101 if (! survey_mode) {102 psError(PS_ERR_UNKNOWN, true, "- survery_mode is required");101 if (!mode) { 102 psError(PS_ERR_UNKNOWN, true, "-mode is required"); 103 103 return false; 104 104 } … … 111 111 if (!workdir) { 112 112 psError(PS_ERR_UNKNOWN, true, "-workdir is required"); 113 return false;114 }115 116 psString filter = psMetadataLookupStr(&status, config->args, "-filter");117 if (!status) {118 psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -filter");119 return false;120 }121 if (!filter) {122 psError(PS_ERR_UNKNOWN, true, "-survery_mode is required");123 return false;124 }125 126 psString skycell_id = psMetadataLookupStr(&status, config->args, "-skycell_id");127 if (!status) {128 psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -skycell_id");129 return false;130 }131 if (!skycell_id) {132 psError(PS_ERR_UNKNOWN, true, "-survery_mode is required");133 return false;134 }135 136 psString tess_id = psMetadataLookupStr(&status, config->args, "-tess_id");137 if (!status) {138 psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -tess_id");139 return false;140 }141 if (!tess_id) {142 psError(PS_ERR_UNKNOWN, true, "-survery_mode is required");143 return false;144 }145 146 psS32 imfiles = psMetadataLookupS32(&status, config->args, "-imfiles");147 if (!status) {148 psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -imfiles");149 return false;150 }151 if (imfiles < 1) {152 psError(PS_ERR_UNKNOWN, true, "-imfiles is required");153 return false;154 }155 156 // optional options157 psF64 ra = psMetadataLookupS32(&status, config->args, "-ra");158 if (!status) {159 psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -ra");160 return false;161 }162 163 psF64 decl = psMetadataLookupS32(&status, config->args, "-decl");164 if (!status) {165 psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -decl");166 return false;167 }168 169 psString input_ss = psMetadataLookupStr(&status, config->args, "-input_ss");170 if (!status) {171 psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -input_ss");172 return false;173 }174 175 psString output_ss = psMetadataLookupStr(&status, config->args, "-output_ss");176 if (!status) {177 psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -output_ss");178 113 return false; 179 114 } … … 195 130 196 131 p4RunRow *p4Run = p4RunRowAlloc( 197 0, 198 survey_mode,199 "r un",132 0, // ID 133 mode, 134 "reg", // state 200 135 workdir, 201 filter, 202 skycell_id, 203 tess_id, 204 ra, 205 decl, 206 input_ss, 207 output_ss 136 registered 208 137 ); 209 138 psFree(registered); … … 240 169 } 241 170 242 static bool addinput imfileMode(pxConfig *config)171 static bool addinputexpMode(pxConfig *config) 243 172 { 244 173 PS_ASSERT_PTR_NON_NULL(config, NULL); … … 265 194 } 266 195 267 psString class_id = psMetadataLookupStr(&status, config->args, "-class_id");268 if (!status) {269 psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -class_id");270 return false;271 }272 if (!class_id) {273 psError(PS_ERR_UNKNOWN, true, "-class_id is required");274 return false;275 }276 277 196 // defaults to 0 278 197 psS32 p3_version = psMetadataLookupS32(&status, config->args, "-p3_version"); … … 282 201 } 283 202 203 // defaults to false 204 bool magiced = psMetadataLookupBool(&status, config->args, "-p3_version"); 205 if (!status) { 206 psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -p3_version"); 207 return false; 208 } 209 284 210 // XXX need to validate the p4_id here 285 if (!p4Input ImfileInsert(config->dbh,211 if (!p4InputExpInsert(config->dbh, 286 212 (psS32)atoi(p4_id), 287 213 exp_tag, 288 214 p3_version, 289 class_id215 magiced 290 216 )) { 291 217 psError(PS_ERR_UNKNOWN, false, "database error"); … … 296 222 } 297 223 298 static bool to warpedimfileMode(pxConfig *config)224 static bool toscfileMode(pxConfig *config) 299 225 { 300 226 PS_ASSERT_PTR_NON_NULL(config, NULL); … … 326 252 327 253 if (config->where) { 328 psString whereClause = psDBGenerateWhereConditionSQL(config->where, "p4Input Imfile");254 psString whereClause = psDBGenerateWhereConditionSQL(config->where, "p4InputExp"); 329 255 psStringAppend(&query, " AND %s", whereClause); 330 256 psFree(whereClause); … … 360 286 361 287 // negative simple so the default is true 362 if (!ippdbPrintMetadatas(stdout, output, "p4Input Imfile", !simple)) {288 if (!ippdbPrintMetadatas(stdout, output, "p4InputExp", !simple)) { 363 289 psError(PS_ERR_UNKNOWN, false, "failed to print array"); 364 290 psFree(output); … … 371 297 } 372 298 373 static bool add warpedimfileMode(pxConfig *config)299 static bool addscfileMode(pxConfig *config) 374 300 { 375 301 PS_ASSERT_PTR_NON_NULL(config, NULL); … … 386 312 } 387 313 314 psString skycell_id = psMetadataLookupStr(&status, config->args, "-skycell_id"); 315 if (!status) { 316 psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -skycell_id"); 317 return false; 318 } 319 if (!skycell_id) { 320 psError(PS_ERR_UNKNOWN, true, "-skycell_id is required"); 321 return false; 322 } 323 324 psString tess_id = psMetadataLookupStr(&status, config->args, "-tess_id"); 325 if (!status) { 326 psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -tess_id"); 327 return false; 328 } 329 if (!tess_id) { 330 psError(PS_ERR_UNKNOWN, true, "-tess_id is required"); 331 return false; 332 } 333 388 334 psString exp_tag = psMetadataLookupStr(&status, config->args, "-exp_tag"); 389 335 if (!status) { … … 396 342 } 397 343 398 psString class_id = psMetadataLookupStr(&status, config->args, "-class_id");399 if (!status) {400 psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -class_id");401 return false;402 }403 if (!class_id) {404 psError(PS_ERR_UNKNOWN, true, "-class_id is required");405 return false;406 }407 408 344 psString uri = psMetadataLookupStr(&status, config->args, "-uri"); 409 345 if (!status) { … … 424 360 425 361 // optional 426 psString b1_uri = psMetadataLookupStr(&status, config->args, "-b1_uri"); 427 if (!status) { 428 psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -b1_uri"); 429 return false; 430 } 431 432 psString b2_uri = psMetadataLookupStr(&status, config->args, "-b2_uri"); 433 if (!status) { 434 psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -b2_uri"); 435 return false; 436 } 362 psF64 bg = psMetadataLookupF64(&status, config->args, "-bg"); 363 if (!status) { 364 psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -bg"); 365 return false; 366 } 367 368 psF64 bg_mean_stdev = psMetadataLookupF64(&status, config->args, "-bg_mean_stdev"); 369 if (!status) { 370 psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -bg_mean_stdev"); 371 return false; 372 } 373 437 374 438 375 // XXX need to validate that this coresponds to an p4InputImfile 439 if (!p4 WarpedImfileInsert(config->dbh,376 if (!p4ScfileInsert(config->dbh, 440 377 (psS32)atoi(p4_id), 378 skycell_id, 379 tess_id, 441 380 exp_tag, 442 381 p3_version, 443 class_id,444 382 uri, 445 b 1_uri,446 b 2_uri383 bg, 384 bg_mean_stdev 447 385 )) { 448 386 psError(PS_ERR_UNKNOWN, false, "database error"); … … 453 391 } 454 392 455 static bool warpedimfileMode(pxConfig *config)393 static bool scfileMode(pxConfig *config) 456 394 { 457 395 PS_ASSERT_PTR_NON_NULL(config, NULL); … … 459 397 psString query = psStringCopy( 460 398 " SELECT DISTINCT" 461 " p4 WarpedImfile.*"399 " p4Scfile.*" 462 400 " FROM p4Run" 463 " JOIN p4 WarpedImfile"401 " JOIN p4Scfile" 464 402 " USING(p4_id)" 465 403 " WHERE" … … 468 406 469 407 if (config->where) { 470 psString whereClause = psDBGenerateWhereConditionSQL(config->where, "p4 WarpedImfile");408 psString whereClause = psDBGenerateWhereConditionSQL(config->where, "p4Scfile"); 471 409 psStringAppend(&query, " AND %s", whereClause); 472 410 psFree(whereClause); … … 486 424 } 487 425 if (!psArrayLength(output)) { 488 psError(PS_ERR_UNKNOWN, false, "no p4 WarpedImfile rows found");426 psError(PS_ERR_UNKNOWN, false, "no p4Scfile rows found"); 489 427 psFree(output); 490 428 return true; … … 502 440 503 441 // negative simple so the default is true 504 if (!ippdbPrintMetadatas(stdout, output, "p4 WarpedImfile", !simple)) {442 if (!ippdbPrintMetadatas(stdout, output, "p4Scfile", !simple)) { 505 443 psError(PS_ERR_UNKNOWN, false, "failed to print array"); 506 444 psFree(output); … … 578 516 } 579 517 518 #if 0 580 519 static bool addstackedimfileMode(pxConfig *config) 581 520 { … … 640 579 return true; 641 580 } 581 #endif 642 582 643 583 static bool stackedimfileMode(pxConfig *config) … … 774 714 } 775 715 716 #if 0 776 717 static bool adddiffimfileMode(pxConfig *config) 777 718 { … … 855 796 return true; 856 797 } 798 #endif 857 799 858 800 static bool diffimfileMode(pxConfig *config) -
trunk/ippTools/src/warptool.h
r10642 r11723 26 26 P4TOOL_MODE_NONE = 0x0, 27 27 P4TOOL_MODE_DEFINERUN, 28 P4TOOL_MODE_ADDINPUT IMFILE,29 P4TOOL_MODE_TO WARPEDIMFILE,30 P4TOOL_MODE_ADD WARPEDIMFILE,31 P4TOOL_MODE_ WARPEDIMFILE,28 P4TOOL_MODE_ADDINPUTEXP, 29 P4TOOL_MODE_TOSCFILE, 30 P4TOOL_MODE_ADDSCFILE, 31 P4TOOL_MODE_SCFILE, 32 32 P4TOOL_MODE_TOSTACKEDIMFILE, 33 33 P4TOOL_MODE_ADDSTACKEDIMFILE, -
trunk/ippTools/src/warptoolConfig.c
r11702 r11723 48 48 // -definerun 49 49 psMetadata *definerunArgs = psMetadataAlloc(); 50 psMetadataAddStr(definerunArgs, PS_LIST_TAIL, "- survey_mode", 0,51 "define the type of suvery(required)", NULL);50 psMetadataAddStr(definerunArgs, PS_LIST_TAIL, "-mode", 0, 51 "define mode (required)", NULL); 52 52 psMetadataAddStr(definerunArgs, PS_LIST_TAIL, "-workdir", 0, 53 53 "define workdir (required)", NULL); 54 psMetadataAddStr(definerunArgs, PS_LIST_TAIL, "-filter", 0,55 "define filter (required)", NULL);56 psMetadataAddStr(definerunArgs, PS_LIST_TAIL, "-skycell_id", 0,57 "define skycell ID (required)", NULL);58 psMetadataAddStr(definerunArgs, PS_LIST_TAIL, "-tess_id", 0,59 "define tessellation ID (required)", NULL);60 psMetadataAddF64(definerunArgs, PS_LIST_TAIL, "-ra", 0,61 "define RA", NAN);62 psMetadataAddF64(definerunArgs, PS_LIST_TAIL, "-decl", 0,63 "define DEC", NAN);64 psMetadataAddStr(definerunArgs, PS_LIST_TAIL, "-input_ss", 0,65 "define input static sky ", NULL);66 psMetadataAddStr(definerunArgs, PS_LIST_TAIL, "-output_ss", 0,67 "define output static sky ", NULL);68 psMetadataAddF64(definerunArgs, PS_LIST_TAIL, "-imfiles", 0,69 "define number of imfiles in the sky cell", 0);70 54 psMetadataAddStr(definerunArgs, PS_LIST_TAIL, "-registered", 0, 71 55 "time detrend run was registered", now); … … 73 57 "use the simple output format", false); 74 58 75 // -addinput imfile76 psMetadata *addinput imfileArgs = psMetadataAlloc();77 psMetadataAddStr(addinput imfileArgs, PS_LIST_TAIL, "-p4_id", 0,78 "define p4 ID (required)", NULL); 79 psMetadataAddStr(addinput imfileArgs, PS_LIST_TAIL, "-exp_tag", 0,80 "define exposure tag (required)", NULL); 81 psMetadataAddS32(addinput imfileArgs, PS_LIST_TAIL, "-p3_version", 0,82 "define phase 3 version of exposure tag (required)", 0); 83 psMetadataAdd Str(addinputimfileArgs, PS_LIST_TAIL, "-class_id",0,84 " define class ID (required)", 0);59 // -addinputexp 60 psMetadata *addinputexpArgs = psMetadataAlloc(); 61 psMetadataAddStr(addinputexpArgs, PS_LIST_TAIL, "-p4_id", 0, 62 "define p4 ID (required)", NULL); 63 psMetadataAddStr(addinputexpArgs, PS_LIST_TAIL, "-exp_tag", 0, 64 "define exposure tag (required)", NULL); 65 psMetadataAddS32(addinputexpArgs, PS_LIST_TAIL, "-p3_version", 0, 66 "define phase 3 version of exposure tag (required)", 0); 67 psMetadataAddBool(definerunArgs, PS_LIST_TAIL, "-magiced", 0, 68 "has this exposure been magiced", false); 85 69 86 // -towarpedimfile 87 psMetadata *towarpedimfileArgs = psMetadataAlloc(); 88 psMetadataAddStr(towarpedimfileArgs, PS_LIST_TAIL, "-p4_id", 0, 89 "search by p4 ID", NULL); 90 psMetadataAddBool(towarpedimfileArgs, PS_LIST_TAIL, "-simple", 0, 91 "use the simple output format", false); 92 93 // -addwarpedimfile 94 psMetadata *addwarpedimfileArgs = psMetadataAlloc(); 95 psMetadataAddStr(addwarpedimfileArgs, PS_LIST_TAIL, "-p4_id", 0, 96 "define p4 ID (required)", NULL); 97 psMetadataAddStr(addwarpedimfileArgs, PS_LIST_TAIL, "-exp_tag", 0, 98 "define exposure tag (required)", NULL); 99 psMetadataAddS32(addwarpedimfileArgs, PS_LIST_TAIL, "-p3_version", 0, 100 "define phase 3 version of exposure tag (required)", 0); 101 psMetadataAddStr(addwarpedimfileArgs, PS_LIST_TAIL, "-class_id", 0, 102 "define class ID (required)", 0); 103 psMetadataAddStr(addwarpedimfileArgs, PS_LIST_TAIL, "-uri", 0, 70 // -toscfile 71 psMetadata *toscfileArgs = psMetadataAlloc(); 72 psMetadataAddStr(toscfileArgs, PS_LIST_TAIL, "-p4_id", 0, 73 "search by p4 ID", NULL); 74 psMetadataAddBool(toscfileArgs, PS_LIST_TAIL, "-simple", 0, 75 "use the simple output format", false); 76 77 // -addscfile 78 psMetadata *addscfileArgs = psMetadataAlloc(); 79 psMetadataAddStr(addscfileArgs, PS_LIST_TAIL, "-p4_id", 0, 80 "define p4 ID (required)", NULL); 81 psMetadataAddStr(addscfileArgs, PS_LIST_TAIL, "-skycell_id", 0, 82 "define skycell ID (required)", NULL); 83 psMetadataAddStr(addscfileArgs, PS_LIST_TAIL, "-tess_id", 0, 84 "define tessellation ID (required)", NULL); 85 psMetadataAddStr(addscfileArgs, PS_LIST_TAIL, "-exp_tag", 0, 86 "define exposure tag (required)", NULL); 87 psMetadataAddS32(addscfileArgs, PS_LIST_TAIL, "-p3_version", 0, 88 "define phase 3 version of exposure tag (required)", 0); 89 psMetadataAddStr(addscfileArgs, PS_LIST_TAIL, "-uri", 0, 104 90 "define URI of file (required)", 0); 105 psMetadataAddStr(addwarpedimfileArgs, PS_LIST_TAIL, "-b1_uri", 0, 106 "define banana 1", NULL); 107 psMetadataAddStr(addwarpedimfileArgs, PS_LIST_TAIL, "-b2_uri", 0, 108 "define banana 2", NULL); 109 110 // -warpedimfile 111 psMetadata *warpedimfileArgs = psMetadataAlloc(); 112 psMetadataAddStr(warpedimfileArgs, PS_LIST_TAIL, "-p4_id", 0, 113 "search by p4 ID", NULL); 114 psMetadataAddBool(warpedimfileArgs, PS_LIST_TAIL, "-simple", 0, 91 psMetadataAddF64(addscfileArgs, PS_LIST_TAIL, "-bg", 0, 92 "define exposue background", NAN); 93 psMetadataAddF64(addscfileArgs, PS_LIST_TAIL, "-bg_mean_stdev", 0, "define exposue background mean stdev", NAN); 94 95 96 // -scfile 97 psMetadata *scfileArgs = psMetadataAlloc(); 98 psMetadataAddStr(scfileArgs, PS_LIST_TAIL, "-p4_id", 0, 99 "search by p4 ID", NULL); 100 psMetadataAddStr(scfileArgs, PS_LIST_TAIL, "-skycell_id", 0, 101 "define skycell ID (required)", NULL); 102 psMetadataAddStr(scfileArgs, PS_LIST_TAIL, "-tess_id", 0, 103 "define tessellation ID (required)", NULL); 104 psMetadataAddStr(scfileArgs, PS_LIST_TAIL, "-exp_tag", 0, 105 "define exposure tag (required)", NULL); 106 psMetadataAddS32(scfileArgs, PS_LIST_TAIL, "-p3_version", 0, 107 "define phase 3 version of exposure tag (required)", 0); 108 psMetadataAddBool(scfileArgs, PS_LIST_TAIL, "-simple", 0, 115 109 "use the simple output format", false); 116 110 … … 199 193 psMetadata *argSets = psMetadataAlloc(); 200 194 // find which mode we're running under 201 PXTOOL_MODE("-definerun", P4TOOL_MODE_DEFINERUN, definerunArgs);202 PXTOOL_MODE("-addinput imfile", P4TOOL_MODE_ADDINPUTIMFILE, addinputimfileArgs);203 PXTOOL_MODE("-to warpedimfile", P4TOOL_MODE_TOWARPEDIMFILE, towarpedimfileArgs);204 PXTOOL_MODE("-add warpedimfile", P4TOOL_MODE_ADDWARPEDIMFILE, addwarpedimfileArgs);205 PXTOOL_MODE("- warpedimfile", P4TOOL_MODE_WARPEDIMFILE, warpedimfileArgs);195 PXTOOL_MODE("-definerun", P4TOOL_MODE_DEFINERUN, definerunArgs); 196 PXTOOL_MODE("-addinputexp", P4TOOL_MODE_ADDINPUTEXP, addinputexpArgs); 197 PXTOOL_MODE("-toscfile", P4TOOL_MODE_TOSCFILE, toscfileArgs); 198 PXTOOL_MODE("-addscfile", P4TOOL_MODE_ADDSCFILE, addscfileArgs); 199 PXTOOL_MODE("-scfile", P4TOOL_MODE_SCFILE, scfileArgs); 206 200 PXTOOL_MODE("-tostackedimfile", P4TOOL_MODE_TOSTACKEDIMFILE, tostackedimfileArgs); 207 201 PXTOOL_MODE("-addstackedimfile", P4TOOL_MODE_ADDSTACKEDIMFILE, addstackedimfileArgs);
Note:
See TracChangeset
for help on using the changeset viewer.
