IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 19071


Ignore:
Timestamp:
Aug 14, 2008, 2:46:25 PM (18 years ago)
Author:
eugene
Message:

need to use the DARKSTATS recipe for dark images (allows stats on 0th readout of 3D cell)

Location:
trunk/ippScripts/scripts
Files:
2 edited

Legend:

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

    r18877 r19071  
    6262
    6363my $RECIPE_PPIMAGE = 'PPIMAGE_N'; # Recipe to use with ppImage
    64 my $RECIPE_PPSTATS = 'CHIPSTATS'; # Recipe to use with ppStats
    6564
    6665# Define which detrend types we normalise
     
    117116my $outFile = ($det_type_real eq "mask") ? 'PPIMAGE.OUTPUT.DETMASK' : 'PPIMAGE.OUTPUT';; # XXXX something of a hack (too many places to control things...)
    118117
     118my $RECIPE_PPSTATS = ($det_type_real eq "dark") ? 'DARKSTATS' : 'CHIPSTATS';; # XXXX something of a hack (too many places to control things...)
     119
    119120my $output    = $ipprc->filename($outFile,        $outroot, $class_id) or &my_die("Missing entry from camera config", $det_id, $iter, $class_id, $PS_EXIT_CONFIG_ERROR);
    120121my $b1name    = $ipprc->filename("PPIMAGE.BIN1",  $outroot, $class_id) or &my_die("Missing entry from camera config", $det_id, $iter, $class_id, $PS_EXIT_CONFIG_ERROR);
  • trunk/ippScripts/scripts/detrend_stack.pl

    r18877 r19071  
    2525use Pod::Usage qw( pod2usage );
    2626
    27 my ( $det_id, $iter, $class_id, $det_type, $camera, $outroot, $dbname, $reduction, $verbose, $save_temps,
     27my ( $det_id, $iter, $class_id, $det_type, $camera, $outroot, $dbname, $reduction, $threads, $verbose, $save_temps,
    2828     $no_update, $no_op, $redirect );
    2929GetOptions(
     
    3636    'dbname|d=s'        => \$dbname,    # Database name
    3737    'reduction=s'       => \$reduction, # Reduction class for processing
     38    'threads=s'         => \$threads,
    3839    'verbose'           => \$verbose,   # Print to stdout
    3940    'save-temps'        => \$save_temps, # Save temporary files?
     
    4243    'redirect-output'   => \$redirect,
    4344) or pod2usage( 2 );
    44 
    4545
    4646pod2usage( -msg => "Unknown option: @ARGV", -exitval => 2 ) if @ARGV;
     
    106106&my_die("Unrecognised detrend type: $det_type", $det_id, $iter, $class_id, $PS_EXIT_SYS_ERROR) unless defined $output_filerule;
    107107
     108# The output file rule name depends on the detrend type
     109my $STATRECIPES = { 'FLATMASK'     => 'CHIPSTATS',
     110                   'DARKMASK'     => 'CHIPSTATS',
     111                   'MASK'         => 'CHIPSTATS',
     112                   'BIAS'         => 'CHIPSTATS',
     113                   'DARK'         => 'DARKSTATS',
     114                   'DARK_PREMASK' => 'DARKSTATS',
     115                   'SHUTTER'      => 'DARKSTATS',
     116                   'FLAT'         => 'CHIPSTATS',
     117                   'FLAT_PREMASK' => 'CHIPSTATS',
     118                   'DOMEFLAT'     => 'CHIPSTATS',
     119                   'SKYFLAT'      => 'CHIPSTATS',
     120                   'FRINGE'       => 'CHIPSTATS',
     121              };
     122my $statrecipe = $STATRECIPES->{$det_type}; # File rule for output
    108123
    109124# Get list of files to stack
     
    176191$command .= ' -type ' . uc($det_type); # Type of stacking to perform
    177192$command .= " -stats $outputStats";     # Statistics output filename
    178 $command .= " -recipe PPSTATS CHIPSTATS";
     193$command .= " -recipe PPSTATS $statrecipe";
    179194$command .= " -tracedest $traceDest -log $logDest";
    180195$command .= " -dbname $dbname" if defined $dbname;
     196$command .= " -threads $threads" if defined $threads;
    181197
    182198# Stack the files
Note: See TracChangeset for help on using the changeset viewer.