Changeset 18536
- Timestamp:
- Jul 15, 2008, 9:57:30 AM (18 years ago)
- Location:
- trunk/ippScripts/scripts
- Files:
-
- 2 edited
-
ipp_image_path.pl (modified) (3 diffs)
-
ipp_serial_mops.pl (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/ipp_image_path.pl
r18433 r18536 2 2 3 3 # ipp_image_path.pl print out the unix path name(s) for rawImage files for an exposure 4 # Note this program should really be called gpc1_image_path since the camera is 5 # hardcoded to gpc1 and the telescope is gpc1 4 6 # 5 7 … … 39 41 my $ota_num; 40 42 if ($class_id) { 43 # we accept class_id in 3 formats (all we care about is the number) 44 # xy23 45 # ota23 46 # 23 41 47 $class_id = lc($class_id); 42 48 my $extra; … … 68 74 if ($from_registered) { 69 75 $query = "SELECT exp_id, class_id, uri FROM rawImfile" 70 . " WHERE exp_name = \'$exp_name\'"; 76 . " WHERE exp_name = \'$exp_name\'" 77 . " AND camera = \'gpc1\' AND telescope = \'ps1\'"; 71 78 $query .= " AND class_id = \'xy$ota_num\'" if ($ota_num); 72 79 } else { 73 $query = "SELECT exp_id FROM newExp WHERE tmp_exp_name = ?"; 80 $query = "SELECT exp_id FROM newExp WHERE tmp_exp_name = ?" 81 . " AND tmp_camera = \'gpc1\' AND tmp_telescope = \'ps1\'"; 74 82 my $stmt = $dbh->prepare($query); 75 83 $stmt->execute($exp_name); -
trunk/ippScripts/scripts/ipp_serial_mops.pl
r18150 r18536 106 106 } 107 107 108 print $dsFile "${output}|ipp-mops\n"; 108 # format: filename|filesize|md5sum|filetype| 109 # note: since we omit filesize and md5sum, dsreg will calculate them 110 print $dsFile "${output}|||ipp-mops|\n"; 109 111 } 110 112 close $dsFile; … … 112 114 # Register new files with the data store 113 115 unless ($no_update) { 114 my $command = "$dsreg --add --product mops_transient_detections --type MOPS_TRANSIENT_DETECTIONS --fileset $fileset--list $dsName --copy --abspath --dbname DataStore";116 my $command = "$dsreg --add $fileset --product mops_transient_detections --type MOPS_TRANSIENT_DETECTIONS --list $dsName --copy --abspath --dbname DataStore"; 115 117 my $success = run( command => $command, verbose => $verbose ); 116 118 die "Couldn't register files with data store.\n" unless $success;
Note:
See TracChangeset
for help on using the changeset viewer.
