IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 4, 2009, 12:13:48 PM (17 years ago)
Author:
Paul Price
Message:

Added new output file rule for ppImage: PPIMAGE.OUTPUT.DETREND. It differs from the usual PPIMAGE.OUTPUT only in the choice of compression. The idea is that for images with a fair gradient across them (like our new flats), we want to force the choice of bscale=1,bzero=32768, because the standard deviation of the image doesn't provide a good basis for choosing these. This file rule should now be enabled for detrend types that signal a fair bit of light in the process and residual stages.

File:
1 edited

Legend:

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

    r22430 r23183  
    124124};
    125125
     126# The output file rule name depends on the detrend type
     127my $FILERULES = { 'FLATMASK'         => 'PPIMAGE.OUTPUT.RESID',
     128                  'DARKMASK'         => 'PPIMAGE.OUTPUT.RESID',
     129                  'MASK'             => 'PPIMAGE.OUTPUT.RESID',
     130                  'BIAS'             => 'PPIMAGE.OUTPUT.RESID',
     131                  'DARK'             => 'PPIMAGE.OUTPUT.RESID',
     132                  'DARK_PREMASK'     => 'PPIMAGE.OUTPUT.RESID',
     133                  'SHUTTER'          => 'PPIMAGE.OUTPUT.DETREND',
     134                  'FLAT_PREMASK'     => 'PPIMAGE.OUTPUT.DETREND',
     135                  'DOMEFLAT_PREMASK' => 'PPIMAGE.OUTPUT.DETREND',
     136                  'SKYFLAT_PREMASK'  => 'PPIMAGE.OUTPUT.DETREND',
     137                  'FLAT_RAW'         => 'PPIMAGE.OUTPUT.DETREND',
     138                  'DOMEFLAT_RAW'     => 'PPIMAGE.OUTPUT.DETREND',
     139                  'SKYFLAT_RAW'      => 'PPIMAGE.OUTPUT.DETREND',
     140                  'FLAT'             => 'PPIMAGE.OUTPUT.DETREND',
     141                  'DOMEFLAT'         => 'PPIMAGE.OUTPUT.DETREND',
     142                  'SKYFLAT'          => 'PPIMAGE.OUTPUT.DETREND',
     143                  'FRINGE'           => 'PPIMAGE.OUTPUT.RESID',
     144              };
     145
    126146# outroot examples (HOST components must be set)
    127147# file://data/ipp004.0/gpc1/20080130
     
    149169    $command .= " -recipe JPEG $jpeg_recipe";
    150170    $command .= " -recipe PPSTATS RESIDUAL";
    151     $command .= " -F PPIMAGE.OUTPUT PPIMAGE.OUTPUT.RESID";
     171    $command .= " -F PPIMAGE.OUTPUT $FILERULES{$det_type}" if defined $FILERULES{$det_type};
    152172    $command .= " -stats $outputStats";
    153173    $command .= " -tracedest $traceDest -log $logDest";
Note: See TracChangeset for help on using the changeset viewer.