Changeset 24764 for trunk/ippScripts/scripts/detrend_resid_imfile.pl
- Timestamp:
- Jul 12, 2009, 11:06:44 AM (17 years ago)
- File:
-
- 1 edited
-
trunk/ippScripts/scripts/detrend_resid_imfile.pl (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/detrend_resid_imfile.pl
r24741 r24764 74 74 defined $detrend; 75 75 76 # force det_type to be upper-case in this script 77 $det_type = uc($det_type); 78 76 79 my $ipprc = PS::IPP::Config->new( $camera ) or my_die( "Unable to set up", $det_id, $iter, $exp_id, $class_id, $PS_EXIT_CONFIG_ERROR ); # IPP configuration 77 80 my $logDest = $ipprc->filename("LOG.IMFILE", $outroot, $class_id) or my_die( "Unable to find LOG.IMFILE", $det_id, $iter, $exp_id, $class_id, $PS_EXIT_CONFIG_ERROR ); … … 83 86 my $recipe; # Name of recipe to use 84 87 if ($mode eq 'master') { 85 $recipe = uc($det_type). '_RESID';88 $recipe = $det_type . '_RESID'; 86 89 } elsif ($mode eq 'verify') { 87 $recipe = uc($det_type). '_VERIFY';90 $recipe = $det_type . '_VERIFY'; 88 91 } else { 89 92 &my_die("Unrecognised mode: $mode", $det_id, $iter, $exp_id, $class_id, $PS_EXIT_PROG_ERROR); … … 92 95 print "raw recipe: $recipe\n"; 93 96 my $ppimage_recipe = $ipprc->reduction($reduction, $recipe); 94 my $jpeg_recipe = $ipprc->reduction($reduction, uc($det_type). '_JPEG_RESID');97 my $jpeg_recipe = $ipprc->reduction($reduction, $det_type . '_JPEG_RESID'); 95 98 print "real recipe: $recipe\n"; 96 99 97 100 # Flags to specify the particular detrend to use 98 101 use constant DETRENDS => { 99 ' bias' => '-bias', # Specify the bias frame100 ' dark' => '-dark', # Specify the dark frame101 ' darktest'=> '-dark', # Specify the dark frame102 ' dark_premask'=> '-dark', # Specify the dark frame103 ' shutter' => '-shutter', # Specify the shutter frame104 ' flat_premask' => '-flat', # Specify the flat frame105 ' domeflat_premask' => '-flat', # Specify the flat frame106 ' skyflat_premask' => '-flat', # Specify the flat frame107 ' flat_raw' => '-flat', # Specify the flat frame108 ' domeflat_raw' => '-flat', # Specify the flat frame109 ' skyflat_raw' => '-flat', # Specify the flat frame110 ' flat' => '-flat', # Specify the flat frame111 ' domeflat' => '-flat', # Specify the flat frame112 ' skyflat' => '-flat', # Specify the flat frame113 ' fringe' => '-fringe', # Specify the fringe frame114 ' mask' => '-mask', # Specify the mask frame115 ' darkmask' => '-mask', # Specify the mask frame116 ' flatmask' => '-mask', # Specify the mask frame117 ' ctemask' => '-mask', # Specify the mask frame102 'BIAS' => '-bias', # Specify the bias frame 103 'DARK' => '-dark', # Specify the dark frame 104 'DARK_PREMASK' => '-dark', # Specify the dark frame 105 'DARKTEST' => '-dark', # Specify the dark frame 106 'SHUTTER' => '-shutter', # Specify the shutter frame 107 'FLAT_PREMASK' => '-flat', # Specify the flat frame 108 'DOMEFLAT_PREMASK' => '-flat', # Specify the flat frame 109 'SKYFLAT_PREMASK' => '-flat', # Specify the flat frame 110 'FLAT_RAW' => '-flat', # Specify the flat frame 111 'DOMEFLAT_RAW' => '-flat', # Specify the flat frame 112 'SKYFLAT_RAW' => '-flat', # Specify the flat frame 113 'FLAT' => '-flat', # Specify the flat frame 114 'DOMEFLAT' => '-flat', # Specify the flat frame 115 'SKYFLAT' => '-flat', # Specify the flat frame 116 'FRINGE' => '-fringe', # Specify the fringe frame 117 'MASK' => '-mask', # Specify the mask frame 118 'DARKMASK' => '-mask', # Specify the mask frame 119 'FLATMASK' => '-mask', # Specify the mask frame 120 'CTEMASK' => '-mask', # Specify the mask frame 118 121 }; 119 122 … … 174 177 175 178 # Detrend to use in processing 176 my $detFlag = DETRENDS->{ lc($det_type)};179 my $detFlag = DETRENDS->{$det_type}; 177 180 &my_die("Unrecognised detrend type: $det_type", $det_id, $iter, $exp_id, $class_id, $PS_EXIT_PROG_ERROR) unless defined $detFlag; 178 181 $command .= " $detFlag $detrend";
Note:
See TracChangeset
for help on using the changeset viewer.
