Changeset 39
- Timestamp:
- Feb 14, 2003, 1:55:17 AM (23 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/perl/src/fr.getfringe (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/perl/src/fr.getfringe
r25 r39 5 5 if ($ARGV[0] eq "-help") { usage (); } 6 6 if (@ARGV != 3) { die "USAGE: fr.getfringe (inlist) (binning) (output)\n" } 7 8 # define the path to include FLIPS:9 $flipsconf=`gconfig -q FLIPSCONF`; chop $flipsconf;10 $flipspath=`gconfig -q FLIPSPATH`; chop $flipspath;11 $ENV{'PATH'} = "$ENV{'PATH'}:$flipspath";12 $ENV{'FLIPSDIR'} = $flipsconf;13 7 14 8 # assign the command line arguments … … 28 22 # basic camera data 29 23 $Nccd = `cameraconfig -Nccd`; chop $Nccd; 30 $answer = `cameraconfig -ccds`; @ccds = split (" ", $answer);31 24 if ($Nccd != @inlist) { die "ERROR: mis-matched image list sizes\n"; } 25 @ccds = split (" ", `cameraconfig -ccds`); 26 if ($?) { die "ERROR: cameraconfig error\n"; } 32 27 33 28 # find fringe coordinate file 34 $coordfile = `detsearch - image $inlist[0] $ccds[0] split -type frpts`; chop $coordfile;29 $coordfile = `detsearch -quiet -image $inlist[0] $ccds[0] split -type frpts`; chop $coordfile; 35 30 if ($?) { die "ERROR: can't find fringe point file for this image\n"; } 36 31 37 32 # each call to getfringe adds a line to $output 38 33 for ($ccd = 0; $ccd < $Nccd; $ccd++) { 39 vsystem ("getfringe $inlist[$ccd] $ccds[$ccd] $coordfile $bin $output");34 vsystem ("getfringe $inlist[$ccd] $ccds[$ccd] $coordfile $bin >> $output"); 40 35 if ($?) { die "ERROR running getfringe\n"; } 41 36 }
Note:
See TracChangeset
for help on using the changeset viewer.
