IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 22, 2008, 3:48:05 PM (18 years ago)
Author:
Paul Price
Message:

Using new JPEG recipe.

File:
1 edited

Legend:

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

    r19642 r19652  
    4444    'dbname|d=s'        => \$dbname, # Database name
    4545    'reduction=s'       => \$reduction, # Reduction class
    46     'threads=s'         => \$threads,   # Number of threads to use for ppImage
     46    'threads=s'         => \$threads,   # Number of threads to use for ppImage
    4747    'verbose'           => \$verbose,   # Print to stdout
    4848    'no-update'         => \$no_update,
     
    8787
    8888print "raw recipe: $recipe\n";
    89 $recipe = $ipprc->reduction($reduction, $recipe);
     89$ppimage_recipe = $ipprc->reduction($reduction, $recipe);
     90$jpeg_recipe = $ipprc->reduction($reduction, uc($det_type) . '_JPEG_RESID';
    9091print "real recipe: $recipe\n";
    9192
    9293# Flags to specify the particular detrend to use
    9394use constant DETRENDS => {
    94     'bias'             => '-bias',      # Specify the bias frame
    95     'dark'             => '-dark',      # Specify the dark frame
     95    'bias'             => '-bias',      # Specify the bias frame
     96    'dark'             => '-dark',      # Specify the dark frame
    9697    'dark_premask'     => '-dark',      # Specify the dark frame
    97     'shutter'          => '-shutter',   # Specify the shutter frame
     98    'shutter'          => '-shutter',   # Specify the shutter frame
    9899    'flat_premask'     => '-flat',      # Specify the flat frame
    99100    'domeflat_premask' => '-flat',      # Specify the flat frame
     
    102103    'domeflat_raw'     => '-flat',      # Specify the flat frame
    103104    'skyflat_raw'      => '-flat',      # Specify the flat frame
    104     'flat'             => '-flat',      # Specify the flat frame
    105     'domeflat'         => '-flat',      # Specify the flat frame
    106     'skyflat'          => '-flat',      # Specify the flat frame
    107     'fringe'           => '-fringe',    # Specify the fringe frame
    108     'mask'             => '-mask',      # Specify the mask frame
    109     'darkmask'         => '-mask',      # Specify the mask frame
    110     'flatmask'         => '-mask',      # Specify the mask frame
     105    'flat'             => '-flat',      # Specify the flat frame
     106    'domeflat'         => '-flat',      # Specify the flat frame
     107    'skyflat'          => '-flat',      # Specify the flat frame
     108    'fringe'           => '-fringe',    # Specify the fringe frame
     109    'mask'             => '-mask',      # Specify the mask frame
     110    'darkmask'         => '-mask',      # Specify the mask frame
     111    'flatmask'         => '-mask',      # Specify the mask frame
    111112};
    112113
     
    146147unless ($no_op) {
    147148    my $command = "$ppImage -file $input_uri $outroot";
    148     $command .= " -recipe PPIMAGE $recipe";
     149    $command .= " -recipe PPIMAGE $ppimage_recipe";
     150    $command .= " -recipe JPEG $jpeg_recipe";
    149151    $command .= " -recipe PPSTATS RESIDUAL";
    150152    $command .= " -F PPIMAGE.OUTPUT PPIMAGE.OUTPUT.RESID";
     
    235237        $command .= " -det_id $det_id";
    236238        $command .= " -iteration $iter";
    237         $command .= " -ref_det_id $ref_det_id";
    238         $command .= " -ref_iter $ref_iter";
     239        $command .= " -ref_det_id $ref_det_id";
     240        $command .= " -ref_iter $ref_iter";
    239241        $command .= " -exp_id $exp_id";
    240242        $command .= " -class_id $class_id";
    241         $command .= " -path_base $outroot";
     243        $command .= " -path_base $outroot";
    242244        $command .= " -code $exit_code";
    243245        $command .= " -dbname $dbname" if defined $dbname;
Note: See TracChangeset for help on using the changeset viewer.