IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 39


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

convert to flips2, perl

File:
1 edited

Legend:

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

    r25 r39  
    55if ($ARGV[0] eq "-help") { usage (); }
    66if (@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;
    137
    148# assign the command line arguments
     
    2822# basic camera data
    2923$Nccd      = `cameraconfig -Nccd`;  chop $Nccd;
    30 $answer    = `cameraconfig -ccds`;  @ccds = split (" ", $answer);
    3124if ($Nccd != @inlist) { die "ERROR: mis-matched image list sizes\n"; }
     25@ccds = split (" ", `cameraconfig -ccds`);
     26if ($?) { die "ERROR: cameraconfig error\n"; }
    3227
    3328# 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;
    3530if ($?) { die "ERROR: can't find fringe point file for this image\n"; }
    3631
    3732# each call to getfringe adds a line to $output
    3833for ($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");
    4035    if ($?) { die "ERROR running getfringe\n"; }
    4136}
Note: See TracChangeset for help on using the changeset viewer.