IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 27, 2006, 9:35:47 AM (20 years ago)
Author:
Paul Price
Message:

Changing name conventions to match those in doc/ippTools/filenames.txt

File:
1 edited

Legend:

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

    r8983 r9004  
    2222    'det_type|t=s'      => \$det_type,
    2323    'input_uri|u=s'     => \$input_uri,
    24     'output_uri|o=s'    => \$output_uri,
    2524) or pod2usage( 2 );
    2625
    2726pod2usage( -msg => "Unknown option: @ARGV", -exitval => 2 ) if @ARGV;
    2827pod2usage(
    29     -msg => "Required options: --det_id --exp_id --class_id --det_type --input_uri --output_uri",
     28    -msg => "Required options: --det_id --exp_id --class_id --det_type --input_uri",
    3029    -exitval => 3,
    3130) unless defined $det_id
     
    3332    and defined $class_id
    3433    and defined $det_type
    35     and defined $input_uri
    36     and defined $output_uri;
     34    and defined $input_uri;
    3735
    3836# Recipes to use, as a function of the detrend type
     
    4139    'dark' => 'PPIMAGE_OB',     # Overscan and bias only
    4240    'flat' => 'PPIMAGE_OBD',    # Overscan, bias and dark only
    43 };
    44 
    45 # Prefix to add to filenames
    46 use constant PREFIX => {
    47     'bias' => 'o',              # Overscan only
    48     'dark' => 'ob',             # Overscan and bias only
    49     'flat' => 'obd',            # Overscan, bias and dark only
    5041};
    5142
     
    6152my $recipe = RECIPES->{$det_type};
    6253die "Unrecognised detrend type: $det_type\n" if not defined $recipe;
    63 die "Unrecognised detrend type: $det_type\n" if not defined PREFIX->{$det_type};
    6454
    6555### Output file name --- must match camera configuration!
    66 my $outputRoot =  PREFIX->{$det_type} . '_' . $output_uri;
     56my $outputRoot =  $exp_id . '.detproc' ;
    6757my $outputName = $outputRoot . '.' . $class_id ;
    68 my $outputImage = $outputName . '.fit';
     58my $outputImage = $outputName . '.fits';
    6959my $outputStats = $outputName . '.stats';
    7060
Note: See TracChangeset for help on using the changeset viewer.