Changeset 19652 for trunk/ippScripts/scripts/detrend_resid_imfile.pl
- Timestamp:
- Sep 22, 2008, 3:48:05 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/ippScripts/scripts/detrend_resid_imfile.pl (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/detrend_resid_imfile.pl
r19642 r19652 44 44 'dbname|d=s' => \$dbname, # Database name 45 45 'reduction=s' => \$reduction, # Reduction class 46 'threads=s' => \$threads, # Number of threads to use for ppImage46 'threads=s' => \$threads, # Number of threads to use for ppImage 47 47 'verbose' => \$verbose, # Print to stdout 48 48 'no-update' => \$no_update, … … 87 87 88 88 print "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'; 90 91 print "real recipe: $recipe\n"; 91 92 92 93 # Flags to specify the particular detrend to use 93 94 use constant DETRENDS => { 94 'bias' => '-bias', # Specify the bias frame95 'dark' => '-dark', # Specify the dark frame95 'bias' => '-bias', # Specify the bias frame 96 'dark' => '-dark', # Specify the dark frame 96 97 'dark_premask' => '-dark', # Specify the dark frame 97 'shutter' => '-shutter', # Specify the shutter frame98 'shutter' => '-shutter', # Specify the shutter frame 98 99 'flat_premask' => '-flat', # Specify the flat frame 99 100 'domeflat_premask' => '-flat', # Specify the flat frame … … 102 103 'domeflat_raw' => '-flat', # Specify the flat frame 103 104 'skyflat_raw' => '-flat', # Specify the flat frame 104 'flat' => '-flat', # Specify the flat frame105 'domeflat' => '-flat', # Specify the flat frame106 'skyflat' => '-flat', # Specify the flat frame107 'fringe' => '-fringe', # Specify the fringe frame108 'mask' => '-mask', # Specify the mask frame109 'darkmask' => '-mask', # Specify the mask frame110 'flatmask' => '-mask', # Specify the mask frame105 '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 111 112 }; 112 113 … … 146 147 unless ($no_op) { 147 148 my $command = "$ppImage -file $input_uri $outroot"; 148 $command .= " -recipe PPIMAGE $recipe"; 149 $command .= " -recipe PPIMAGE $ppimage_recipe"; 150 $command .= " -recipe JPEG $jpeg_recipe"; 149 151 $command .= " -recipe PPSTATS RESIDUAL"; 150 152 $command .= " -F PPIMAGE.OUTPUT PPIMAGE.OUTPUT.RESID"; … … 235 237 $command .= " -det_id $det_id"; 236 238 $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"; 239 241 $command .= " -exp_id $exp_id"; 240 242 $command .= " -class_id $class_id"; 241 $command .= " -path_base $outroot";243 $command .= " -path_base $outroot"; 242 244 $command .= " -code $exit_code"; 243 245 $command .= " -dbname $dbname" if defined $dbname;
Note:
See TracChangeset
for help on using the changeset viewer.
