IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 38


Ignore:
Timestamp:
Feb 14, 2003, 1:53:56 AM (23 years ago)
Author:
eugene
Message:

ccd name / number abstractions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/perl/src/fr.detrend

    r17 r38  
    2323$Nccd = `cameraconfig -Nccd`; chop ($Nccd);
    2424if ($Nccd != @outlist) { die "ERROR: mis-matched number of images\n"; }
    25 $answer  = `cameraconfig -ccds`;
    26 @ccds    = split (" ", $answer);
     25@ccds    = split (" ", `cameraconfig -ccds`);
     26if ($?) { die "ERROR: cameraconfig error\n"; }
     27@ccdn    = split (" ", `cameraconfig -ccdn`);
     28if ($?) { die "ERROR: cameraconfig error\n"; }
    2729
    2830# run flatten.flips for each input and output image:
    2931for ($ccd = 0; $ccd < $Nccd; $ccd++) {
    3032   
    31     $infile  = mk_filename ($path, $root, $mode, $ccds[$ccd]);
     33    $infile  = mk_filename ($path, $root, $mode, $ccdn[$ccd]);
    3234    $outfile = $outlist[$ccd];
    3335
Note: See TracChangeset for help on using the changeset viewer.