Changeset 33919 for trunk/ippTools/src/staticskytool.c
- Timestamp:
- May 25, 2012, 11:17:45 AM (14 years ago)
- File:
-
- 1 edited
-
trunk/ippTools/src/staticskytool.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/staticskytool.c
r33385 r33919 29 29 30 30 #include "pxtools.h" 31 #include "pxspace.h" 31 32 #include "staticskytool.h" 32 33 … … 131 132 pxAddLabelSearchArgs(config, whereMD, "-select_data_group", "stackRun.data_group", "LIKE"); 132 133 pxAddLabelSearchArgs(config, whereMD, "-select_filter", "stackRun.filter", "LIKE"); 134 PXOPT_COPY_F32(config->args, whereMD, "-select_glat_min", "skycell.glat", ">="); 135 PXOPT_COPY_F32(config->args, whereMD, "-select_glat_max", "skycell.glat", "<="); 133 136 134 137 // find the number of requested filters: … … 390 393 391 394 psMetadata *where = psMetadataAlloc(); 392 PXOPT_COPY_S64(config->args, where, "-sky_id", "sky_id", "=="); 393 PXOPT_COPY_STR(config->args, where, "-label", "label", "=="); 394 PXOPT_COPY_STR(config->args, where, "-state", "state", "=="); 395 PXOPT_COPY_S64(config->args, where, "-sky_id", "sky_id", "=="); 396 PXOPT_COPY_STR(config->args, where, "-label", "staticskyRun.label", "=="); 397 PXOPT_COPY_STR(config->args, where, "-state", "staticskyRun.state", "=="); 398 PXOPT_COPY_STR(config->args, where, "-tess_id", "stackRun.tess_id", "=="); 399 PXOPT_COPY_STR(config->args, where, "-skycell_id", "stackRun.skycell_id", "=="); 400 if (!pxskycellAddWhere(config, where)) { 401 psError(PXTOOLS_ERR_CONFIG, false, "failed to add skycell search arguments"); 402 return false; 403 } 395 404 if (!psListLength(where->list)) { 396 405 psFree(where); … … 399 408 } 400 409 401 psString query = psStringCopy("UPDATE staticskyRun ");410 psString query = psStringCopy("UPDATE staticskyRun JOIN staticskyInput USING(sky_id) JOIN stackRun using(stack_id) JOIN skycell USING(tess_id, skycell_id)"); 402 411 403 412 // pxUpdateRun gets parameters from config->args and updates … … 638 647 PXOPT_COPY_STR(config->args, where, "-skycell_id", "stackRun.skycell_id", "LIKE"); 639 648 PXOPT_COPY_S16(config->args, where, "-fault", "staticskyResult.fault", "=="); 649 pxskycellAddWhere(config, where); 640 650 PXOPT_LOOKUP_S32(num_filters, config->args, "-num_filters", false, false); 641 651
Note:
See TracChangeset
for help on using the changeset viewer.
