Changeset 32753
- Timestamp:
- Nov 22, 2011, 10:28:50 AM (15 years ago)
- Location:
- tags/ipp-20111110
- Files:
-
- 3 edited
-
ippScripts/scripts/videophot_process.pl (modified) (5 diffs, 1 prop)
-
ippTools/src/vptool.c (modified) (5 diffs, 1 prop)
-
ippconfig/recipes/filerules-split.mdc (modified) (1 diff, 1 prop)
Legend:
- Unmodified
- Added
- Removed
-
tags/ipp-20111110/ippScripts/scripts/videophot_process.pl
-
Property svn:mergeinfo
set to (toggle deleted branches)
/branches/eam_branches/ipp-20110710/ippScripts/scripts/videophot_process.pl merged eligible /branches/eam_branches/ipp-20110906/ippScripts/scripts/videophot_process.pl merged eligible /trunk/ippScripts/scripts/videophot_process.pl merged eligible /branches/czw_branch/20101203/ippScripts/scripts/videophot_process.pl 29907-30631 /branches/eam_branches/ipp-20101103/ippScripts/scripts/videophot_process.pl 29657-29920 /branches/eam_branches/ipp-20101205/ippScripts/scripts/videophot_process.pl 29959-30585 /branches/eam_branches/ipp-20110213/ippScripts/scripts/videophot_process.pl 30628-31149 /branches/eam_branches/ipp-20110404/ippScripts/scripts/videophot_process.pl 31166-31444 /branches/eam_branches/ipp-20110505/ippScripts/scripts/videophot_process.pl 31458-31658
r32556 r32753 37 37 } 38 38 my ($vp_id, $camera, $outroot, $dest_id, $dbname, $verbose, $no_update, $no_op, $redirect, $save_temps); 39 my ($product, $ ds_dbname, $ds_dbhost);39 my ($product, $save_video_cube, $ds_dbname, $ds_dbhost); 40 40 41 41 GetOptions( … … 45 45 'dest_id=s' => \$dest_id, 46 46 'product=s' => \$product, 47 'save-video-cube' => \$save_video_cube, 47 48 'ds_dbname=s' => \$ds_dbname, 48 49 'ds_dbhost=s' => \$ds_dbhost, … … 141 142 } 142 143 # dump the video cell and the video table to a file 143 unless ($no_op) {144 if ($save_video_cube) { 144 145 my $output = $path_base . ".fits"; 145 146 my $extname = "$cell_id"; 146 147 my $command = "$dumpvideo $uri $extname $output -includetable"; 147 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 148 run(command => $command, verbose => $verbose); 149 unless ($success) { 150 $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR); 151 &my_die("Unable to perform dumpvideo: $error_code", $vp_id, $error_code); 148 unless ($no_op) { 149 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 150 run(command => $command, verbose => $verbose); 151 unless ($success) { 152 $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR); 153 &my_die("Unable to perform dumpvideo: $error_code", $vp_id, $error_code); 154 } 155 } else { 156 print "Not executing: $command\n"; 152 157 } 153 } else {154 print "Not executing: $command\n";155 158 } 156 159 … … 193 196 print $reglist "$logDest|||text|\n"; 194 197 } 195 my @exts = qw( vpt fits ); 196 my @types = qw( table fits ); 198 # list of extensions and types for files to distribute 199 my @exts = qw( vpt ); 200 my @types = qw( table ); 201 if ($save_video_cube) { 202 push @exts, 'fits'; 203 push @types, 'fits'; 204 } 197 205 foreach my $cell (@$cells) { 198 206 my $path_base = $cell->{path_base}; … … 203 211 print $reglist "$file|||$type|\n"; 204 212 } 205 206 213 } 207 214 close $reglist or &my_die("failed to close $reglistName", $vp_id, $PS_EXIT_UNKNOWN_ERROR); -
Property svn:mergeinfo
set to (toggle deleted branches)
-
tags/ipp-20111110/ippTools/src/vptool.c
-
Property svn:mergeinfo
set to (toggle deleted branches)
/branches/eam_branches/ipp-20110906/ippTools/src/vptool.c merged eligible /trunk/ippTools/src/vptool.c merged eligible /branches/czw_branch/20100427/ippTools/src/vptool.c 27784-28042 /branches/czw_branch/20100519/ippTools/src/vptool.c 28044-28338 /branches/czw_branch/20100817/ippTools/src/vptool.c 28947-29832 /branches/czw_branch/20101203/ippTools/src/vptool.c 29907-30048 /branches/czw_branch/20110406/ippTools/src/vptool.c 31215-31434 /branches/eam_branches/ipp-20100823/ippTools/src/vptool.c 29016-29536 /branches/eam_branches/ipp-20101103/ippTools/src/vptool.c 29657-29920 /branches/eam_branches/ipp-20101205/ippTools/src/vptool.c 29959-30585 /branches/eam_branches/ipp-20110213/ippTools/src/vptool.c 30628-31149 /branches/eam_branches/ipp-20110404/ippTools/src/vptool.c 31166-31444 /branches/eam_branches/ipp-20110505/ippTools/src/vptool.c 31458-31658 /branches/eam_branches/ipp-20110710/ippTools/src/vptool.c 31852-32345 /branches/haf_branches/haf_add2011/ippTools/src/vptool.c 31110-31370 /branches/haf_branches/ipp.20100512/ippTools/src/vptool.c 27935-28180 /branches/haf_branches/ipp.rsync.20101015/ippTools/src/vptool.c 29433-29526 /branches/pap/ippTools/src/vptool.c 27706-28005,28177-28485,28498-28535 /tags/ipp-20101029/ippTools/src/vptool.c 29619-29901
r32511 r32753 282 282 psFree(where); 283 283 284 psStringAppend(&query, "\nGROUP BY vp_id HAVING");285 284 psStringAppend(&query, "\nORDER BY priority DESC, vp_id"); 286 285 … … 597 596 static bool processedcellMode(pxConfig *config) 598 597 { 599 return false;600 #ifdef notyet601 598 PS_ASSERT_PTR_NON_NULL(config, NULL); 602 599 603 600 PXOPT_LOOKUP_U64(limit, config->args, "-limit", false, false); 604 601 PXOPT_LOOKUP_BOOL(simple, config->args, "-simple", false); 605 PXOPT_LOOKUP_BOOL(faulted, config->args, "-faulted", false);606 PXOPT_LOOKUP_BOOL(allfiles, config->args, "-allfiles", false);607 if (allfiles) {608 faulted = false;609 }610 PXOPT_LOOKUP_BOOL(pstamp_order, config->args, "-pstamp_order", false);611 602 612 603 psMetadata *where = psMetadataAlloc(); 613 604 pxchipGetSearchArgs (config, where); // chipRun, chipProcessedImfile, rawExp 614 PXOPT_COPY_S64(config->args, where, "-chip_id", "chipRun.chip_id", "=="); 615 PXOPT_COPY_S64(config->args, where, "-chip_imfile_id", "chipImfile.chip_imfile_id", "=="); 616 PXOPT_COPY_STR(config->args, where, "-class_id", "chipProcessedImfile.class_id", "=="); 617 PXOPT_COPY_STR(config->args, where, "-reduction", "chipRun.reduction", "=="); 618 pxAddLabelSearchArgs (config, where, "-label", "chipRun.label", "LIKE"); 619 pxAddLabelSearchArgs (config, where, "-data_group", "chipRun.data_group", "LIKE"); 620 PXOPT_COPY_S64(config->args, where, "-magicked", "chipProcessedImfile.magicked", "=="); 621 622 psString where2 = NULL; 623 pxmagicAddWhere(config, &where2, "chipProcessedImfile"); 624 // add cuts on ra and decl if supplied 625 if (!pxspaceAddWhere(config, &where2, "rawExp")) { 626 psError(psErrorCodeLast(), false, "pxSpaceAddWhere failed"); 627 return false; 628 } 605 PXOPT_COPY_S64(config->args, where, "-vp_id", "vp_id", "=="); 606 PXOPT_COPY_STR(config->args, where, "-class_id", "class_id", "=="); 607 PXOPT_COPY_STR(config->args, where, "-cell_id", "cell_id", "=="); 608 pxAddLabelSearchArgs (config, where, "-label", "vpRun.label", "LIKE"); 609 pxAddLabelSearchArgs (config, where, "-data_group", "vpRun.data_group", "LIKE"); 629 610 630 611 psString query = pxDataGet("vptool_processedcell.sql"); … … 636 617 if (psListLength(where->list)) { 637 618 psString whereClause = psDBGenerateWhereConditionSQL(where, NULL); 638 psStringAppend(&query, " WHERE %s %s", whereClause, where2 ? where2 : "");619 psStringAppend(&query, " WHERE %s", whereClause); 639 620 psFree(whereClause); 640 } else if (psMetadataLookupBool(NULL, config->args, "-all") || (faulted || where2)) {641 psStringAppend(&query, " WHERE chipRun.chip_id IS NOT NULL %s", where2 ? where2 : "");642 621 } else { 643 622 psFree(where); 644 psError(PXTOOLS_ERR_CONFIG, false, "search parameters (or -all)are required");623 psError(PXTOOLS_ERR_CONFIG, false, "search parameters are required"); 645 624 return false; 646 625 } 647 626 psFree(where); 648 627 649 if (faulted) {650 // list only faulted rows651 psStringAppend(&query, " %s", "AND chipProcessedImfile.fault != 0");652 } else if (!allfiles) {653 // don't list faulted rows654 psStringAppend(&query, " %s", "AND chipProcessedImfile.fault = 0");655 }656 657 if (pstamp_order) {658 // put runs in order of exposure id with newest chip Runs first659 // The postage stamp parser depends on this behavior660 psStringAppend(&query, "\nORDER by exp_id, chip_id DESC");661 }662 663 // treat limit == 0 as "no limit"664 628 if (limit) { 665 629 psString limitString = psDBGenerateLimitSQL(limit); … … 687 651 688 652 // negative simple so the default is true 689 if (!ippdbPrintMetadatas(stdout, output, " chipProcessedImfile", !simple)) {653 if (!ippdbPrintMetadatas(stdout, output, "vpProcessedCell", !simple)) { 690 654 psError(PS_ERR_UNKNOWN, false, "failed to print array"); 691 655 psFree(output); … … 696 660 697 661 return true; 698 #endif699 662 } 700 663 -
Property svn:mergeinfo
set to (toggle deleted branches)
-
tags/ipp-20111110/ippconfig/recipes/filerules-split.mdc
- Property svn:mergeinfo set to
r31717 r32753 220 220 221 221 #psvideophot 222 PSVIDEOPHOT.OUTPUT OUTPUT {OUTPUT}.{CHIP.NAME}.vid OBJ NONE CHIP TRUE NONE 223 PSVIDEOPHOT.CHIP OUTPUT {OUTPUT}.{CHIP.NAME}.vid OBJ NONE CHIP TRUE NONE 222 PSVIDEOPHOT.OUTPUT OUTPUT {OUTPUT}.vpt OBJ NONE CELL TRUE NONE 224 223 225 224 # used by staticsky with single input
Note:
See TracChangeset
for help on using the changeset viewer.
