IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 7, 2006, 10:38:05 AM (20 years ago)
Author:
Paul Price
Message:

Output images from ppImage are specified by the FILERULES in the camera configuration.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippScripts/scripts/detrend_resid.pl

    r9869 r9892  
    2020
    2121my ($det_id, $iter, $exp_tag, $class_id, $det_type, $detrend,
    22         $input_uri, $no_update);
     22        $input_uri, $camera, $no_update);
    2323GetOptions(
    2424    'det_id|d=s'        => \$det_id,
    2525    'iteration=s'       => \$iter,
    26     'exp_tag|e=s'        => \$exp_tag,
     26    'exp_tag|e=s'       => \$exp_tag,
    2727    'class_id|i=s'      => \$class_id,
    2828    'det_type|t=s'      => \$det_type,
    2929    'detrend=s'         => \$detrend,
    3030    'input_uri|u=s'     => \$input_uri,
     31    'camera|c=s'        => \$camera,
    3132    'no-update'         => \$no_update
    3233) or pod2usage( 2 );
     
    3435pod2usage( -msg => "Unknown option: @ARGV", -exitval => 2 ) if @ARGV;
    3536pod2usage(
    36     -msg => "Required options: --det_id --iteration --exp_tag --class_id --det_type --detrend --input_uri",
     37    -msg => "Required options: --det_id --iteration --exp_tag --class_id --det_type --detrend --camera --input_uri",
    3738    -exitval => 3,
    3839) unless defined $det_id
     
    4243    and defined $det_type
    4344    and defined $detrend
    44     and defined $input_uri;
     45    and defined $input_uri
     46    and defined $camera;
     47
     48$ipprc->define_camera($camera);
    4549
    4650# Recipes to use, as a function of the detrend type
     
    8488$input_uri = File::Spec->rel2abs( $input_uri, $ipprc->workdir() );
    8589$detrend = File::Spec->rel2abs( $detrend, $ipprc->workdir() );
    86 my $outputName = $outputRoot . '.' . $class_id . '.fits'; # Name for
     90
     91my $outputName = $ipprc->filename("PPIMAGE.OUTPUT", $outputRoot, $class_id);
     92my $bin1Name =  $ipprc->filename("PPIMAGE.BIN1", $outputRoot, $class_id);
     93my $bin2Name =  $ipprc->filename("PPIMAGE.BIN2", $outputRoot, $class_id);
     94
    8795my $outputStats = $outputRoot . '.' . $class_id . '.stats';
    88 my $bin1Name = $outputRoot . '.' . $class_id . '.b1.fits';
    89 my $bin2Name =  $outputRoot . '.' . $class_id . '.b2.fits';
    9096
    9197# Run ppImage
Note: See TracChangeset for help on using the changeset viewer.