IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 18128


Ignore:
Timestamp:
Jun 13, 2008, 2:48:20 PM (18 years ago)
Author:
eugene
Message:

add the premask types

Location:
trunk/ippScripts/scripts
Files:
3 edited

Legend:

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

    r18048 r18128  
    6464my $RECIPE_PPSTATS = 'CHIPSTATS'; # Recipe to use with ppStats
    6565
    66 my $isMaskType = 0;
    67 if (lc($det_type) eq "mask") { $isMaskType = 1; }
    68 if (lc($det_type) eq "darkmask") { $isMaskType = 1; }
    69 if (lc($det_type) eq "flatmask") { $isMaskType = 1; }
     66# Define which detrend types we normalise
     67use constant DETTYPE => {
     68    'bias'             => 'bias',
     69    'dark'             => 'dark',   
     70    'dark_premask'     => 'dark',
     71    'shutter'          => 'shutter',
     72    'flat'             => 'flat',
     73    'domeflat'         => 'flat',
     74    'skyflat'          => 'flat',   
     75    'flat_premask'     => 'flat',
     76    'domeflat_premask' => 'flat',
     77    'skyflat_premask'  => 'flat',
     78    'fringe'           => 'fringe',   
     79    'mask'             => 'mask',
     80    'darkmask'         => 'mask',
     81    'flatmask'         => 'mask',
     82    };
     83
     84# convert supplied detrend type to a controlled namespace
     85&my_die("Unrecognised detrend type: $det_type", $det_id, $iter, $class_id, $PS_EXIT_PROG_ERROR) unless exists DETTYPE()->{lc($det_type)};
     86my $det_type_real = DETTYPE()->{lc($det_type)};
    7087
    7188# values to extract from output metadata and the stats to calculate
     
    98115$ipprc->outroot_prepare($outroot);
    99116
    100 my $outFile = $isMaskType ? 'PPIMAGE.OUTPUT.DETMASK' : 'PPIMAGE.OUTPUT';; # XXXX something of a hack (too many places to control things...)
     117my $outFile = ($det_type_real eq "mask") ? 'PPIMAGE.OUTPUT.DETMASK' : 'PPIMAGE.OUTPUT';; # XXXX something of a hack (too many places to control things...)
    101118
    102119my $output    = $ipprc->filename($outFile,        $outroot, $class_id) or &my_die("Missing entry from camera config", $det_id, $iter, $class_id, $PS_EXIT_CONFIG_ERROR);
     
    113130    $command .= " -recipe PPSTATS $RECIPE_PPSTATS";
    114131    $command .= " -F PPIMAGE.OUTPUT $outFile" unless $outFile eq 'PPIMAGE.OUTPUT';
    115     $command .= ' -isfringe' if lc($det_type) eq 'fringe';
    116     $command .= ' -isdark' if lc($det_type) eq 'dark';
     132    $command .= ' -isfringe' if $det_type_real eq 'fringe';
     133    $command .= ' -isdark' if $det_type_real eq 'dark';
    117134    $command .= " -tracedest $traceDest -log $logDest";
    118135    $command .= " -dbname $dbname" if defined $dbname;
  • trunk/ippScripts/scripts/detrend_norm_calc.pl

    r17671 r18128  
    4949# Define which detrend types we normalise
    5050use constant NORMALIZE => {
    51     'bias'     => 0,
    52     'dark'     => 0,
    53     'shutter'  => 0,
    54     'flat'     => 1,
    55     'domeflat' => 1,
    56     'skyflat'  => 1,
    57     'fringe'   => 0,
    58     'mask'     => 0,
    59     'darkmask' => 0,
    60     'flatmask' => 0,
     51    'bias'             => 0,
     52    'dark'             => 0,   
     53    'dark_premask'     => 0,
     54    'shutter'          => 0,
     55    'flat'             => 1,
     56    'domeflat'         => 1,
     57    'skyflat'          => 1,   
     58    'flat_premask'     => 1,
     59    'domeflat_premask' => 1,
     60    'skyflat_premask'  => 1,
     61    'fringe'           => 0,   
     62    'mask'             => 0,
     63    'darkmask'         => 0,
     64    'flatmask'         => 0,
    6165    };
    6266
  • trunk/ippScripts/scripts/detrend_resid.pl

    r18107 r18128  
    105105# Flags to specify the particular detrend to use
    106106use constant DETRENDS => {
    107     'bias'     => '-bias',      # Specify the bias frame
    108     'dark'     => '-dark',      # Specify the dark frame
    109     'shutter'  => '-shutter',   # Specify the shutter frame
    110     'flat'     => '-flat',      # Specify the flat frame
    111     'domeflat' => '-flat',      # Specify the flat frame
    112     'skyflat'  => '-flat',      # Specify the flat frame
    113     'fringe'   => '-fringe',    # Specify the fringe frame
    114     'mask'     => '-mask',      # Specify the mask frame
    115     'darkmask' => '-mask',      # Specify the mask frame
    116     'flatmask' => '-mask',      # Specify the mask frame
     107    'bias'             => '-bias',      # Specify the bias frame
     108    'dark'             => '-dark',      # Specify the dark frame
     109    'dark_premask'     => '-dark',      # Specify the dark frame
     110    'shutter'          => '-shutter',   # Specify the shutter frame
     111    'flat'             => '-flat',      # Specify the flat frame
     112    'domeflat'         => '-flat',      # Specify the flat frame
     113    'skyflat'          => '-flat',      # Specify the flat frame
     114    'flat_premask'     => '-flat',      # Specify the flat frame
     115    'domeflat_premask' => '-flat',      # Specify the flat frame
     116    'skyflat_premask'  => '-flat',      # Specify the flat frame
     117    'fringe'           => '-fringe',    # Specify the fringe frame
     118    'mask'             => '-mask',      # Specify the mask frame
     119    'darkmask'         => '-mask',      # Specify the mask frame
     120    'flatmask'         => '-mask',      # Specify the mask frame
    117121};
    118122
Note: See TracChangeset for help on using the changeset viewer.