Changeset 18536 for trunk/ippScripts/scripts/ipp_image_path.pl
- Timestamp:
- Jul 15, 2008, 9:57:30 AM (18 years ago)
- File:
-
- 1 edited
-
trunk/ippScripts/scripts/ipp_image_path.pl (modified) (3 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);
Note:
See TracChangeset
for help on using the changeset viewer.
