Changeset 101
- Timestamp:
- Oct 7, 2003, 11:49:08 PM (23 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/perl/src/ckvalid (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/perl/src/ckvalid
r17 r101 35 35 $runid = "none"; 36 36 37 # load ccd config information 38 @ccdn = split (" ", `cameraconfig -ccdn`); if ($?) { &goodbye ("ERROR in cameraconfig"); } 39 @ccds = split (" ", `cameraconfig -ccds`); if ($?) { &goodbye ("ERROR in cameraconfig"); } 40 37 41 # determine image mode (SPLIT / MEF / SINGLE) 38 42 $mode = ckimmode ($name); … … 55 59 # create the name of a real file: 56 60 if ($mode eq SPLIT) { 57 $tmpname = "$name/$root" . "00.fits";61 $tmpname = sprintf "%s/%s%s.fits", $name, $root, $ccdn[0]; 58 62 } else { 59 63 $tmpname = $name; … … 106 110 if ($mode eq "SPLIT") { 107 111 # we only need the name of an single representative file on disk 108 $tmpname = sprintf "%s/%s% 02d.fits", $name, $root, 0;112 $tmpname = sprintf "%s/%s%s.fits", $name, $root, $ccdn[0]; 109 113 } else { 110 114 $tmpname = $name; … … 118 122 119 123 # check on PHOTOMETRY 120 $answer = `ckphotom $tmpname 00$mode`;124 $answer = `ckphotom $tmpname $ccds[0] $mode`; 121 125 if ($?) { 122 126 if ($VEROSE) { print STDERR "photom failed: $answer\n"; }
Note:
See TracChangeset
for help on using the changeset viewer.
