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_process_imfile.pl

    r9869 r9892  
    1818use Pod::Usage qw( pod2usage );
    1919
    20 my ($det_id, $exp_tag, $class_id, $det_type, $input_uri, $output_uri, $no_update);
     20my ($det_id, $exp_tag, $class_id, $det_type, $input_uri, $camera, $no_update);
    2121GetOptions(
    2222    'det_id|d=s'        => \$det_id,
    23     'exp_tag|e=s'        => \$exp_tag,
     23    'exp_tag|e=s'       => \$exp_tag,
    2424    'class_id|i=s'      => \$class_id,
    2525    'det_type|t=s'      => \$det_type,
    2626    'input_uri|u=s'     => \$input_uri,
     27    'camera|c=s'        => \$camera,
    2728    'no-update'         => \$no_update
    2829) or pod2usage( 2 );
     
    3031pod2usage( -msg => "Unknown option: @ARGV", -exitval => 2 ) if @ARGV;
    3132pod2usage(
    32     -msg => "Required options: --det_id --exp_tag --class_id --det_type --input_uri",
     33    -msg => "Required options: --det_id --exp_tag --class_id --det_type --input_uri --camera",
    3334    -exitval => 3,
    3435) unless defined $det_id
     
    3637    and defined $class_id
    3738    and defined $det_type
    38     and defined $input_uri;
     39    and defined $input_uri
     40    and defined $camera;
     41
     42$ipprc->define_camera($camera);
    3943
    4044# Recipes to use, as a function of the detrend type
     
    5761die "Unrecognised detrend type: $det_type\n" if not defined $recipe;
    5862
    59 ### Output file name --- must match camera configuration!
     63### Output file name
    6064my ($vol, $dir, $file) = File::Spec->splitpath( $input_uri );
    6165my $outputRoot = $exp_tag . '.detproc.' . $det_id; # Root name
    6266$outputRoot = File::Spec->rel2abs( File::Spec->catpath( $vol, $dir, $outputRoot ), $ipprc->workdir() );
    6367$input_uri = File::Spec->rel2abs( $input_uri, $ipprc->workdir() );
    64 my $outputImage = $outputRoot . '.' . $class_id . '.fits';
     68
     69my $outputImage = $ipprc->filename("PPIMAGE.OUTPUT", $outputRoot, $class_id);
     70my $outputBin1 = $ipprc->filename("PPIMAGE.BIN1", $outputRoot, $class_id);
     71my $outputBin2 = $ipprc->filename("PPIMAGE.BIN2", $outputRoot, $class_id);
     72
    6573my $outputStats = $outputRoot . '.' . $class_id . '.stats';
    66 my $outputBin1 = $outputRoot . '.' . $class_id . '.b1.fits';
    67 my $outputBin2 = $outputRoot . '.' . $class_id . '.b2.fits';
    6874
    6975# Run ppImage
Note: See TracChangeset for help on using the changeset viewer.