Changeset 19716 for trunk/ippScripts/scripts/ipp_serial_mops.pl
- Timestamp:
- Sep 23, 2008, 2:53:09 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/ippScripts/scripts/ipp_serial_mops.pl (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/ipp_serial_mops.pl
r18536 r19716 31 31 $outroot, # Output directory 32 32 $fileset, # File set 33 $label, # Data label to search for 33 34 $verbose, # Verbose output? 34 35 $no_update, # Don't update state? … … 45 46 'outroot=s' => \$outroot, 46 47 'fileset=s' => \$fileset, 48 'label=s' => \$label, 47 49 'verbose' => \$verbose, 48 50 'no-update' => \$no_update, # Don't update the database? … … 69 71 die "Unable to connect to database: $DBI::errstr"; 70 72 71 my $sql = "SELECT exp_id, diff_id, skycell_id, warp_id, diffSkyfile.path_base AS diff_path_base, warpSkyfile.path_base AS warp_path_base FROM diffSkyfile JOIN diffRun using(diff_id) JOIN diffInputSkyfile USING(diff_id,tess_id,skycell_id) JOIN warpRun USING(warp_id,tess_id) JOIN warpSkyfile USING(warp_id,skycell_id,tess_id) JOIN fakeRun using(fake_id) JOIN camRun USING(cam_id) JOIN chipRun USING(chip_id) JOIN rawExp USING(exp_id) WHERE diffSkyfile.fault = 0 AND rawExp.camera = \'$camera\';"; 73 my $sql = "SELECT exp_id, diff_id, skycell_id, warp_id, diffSkyfile.path_base AS diff_path_base, warpSkyfile.path_base AS warp_path_base FROM diffSkyfile JOIN diffRun using(diff_id) JOIN diffInputSkyfile USING(diff_id,tess_id,skycell_id) JOIN warpRun USING(warp_id,tess_id) JOIN warpSkyfile USING(warp_id,skycell_id,tess_id) JOIN fakeRun using(fake_id) JOIN camRun USING(cam_id) JOIN chipRun USING(chip_id) JOIN rawExp USING(exp_id) WHERE diffSkyfile.fault = 0 AND rawExp.camera = \'$camera\'"; 74 $sql .= " AND diffRun.label = \'$label\'" if defined $label; 75 $sql .= ';'; 72 76 73 77 my $rows = $db->selectall_arrayref( $sql, { Slice => {} } ) or die "Unable to execute SQL: $DBI::errstr"; … … 106 110 } 107 111 108 # format: filename|filesize|md5sum|filetype| 112 # format: filename|filesize|md5sum|filetype| 109 113 # note: since we omit filesize and md5sum, dsreg will calculate them 110 114 print $dsFile "${output}|||ipp-mops|\n";
Note:
See TracChangeset
for help on using the changeset viewer.
