Changeset 18128
- Timestamp:
- Jun 13, 2008, 2:48:20 PM (18 years ago)
- Location:
- trunk/ippScripts/scripts
- Files:
-
- 3 edited
-
detrend_norm_apply.pl (modified) (3 diffs)
-
detrend_norm_calc.pl (modified) (1 diff)
-
detrend_resid.pl (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/detrend_norm_apply.pl
r18048 r18128 64 64 my $RECIPE_PPSTATS = 'CHIPSTATS'; # Recipe to use with ppStats 65 65 66 my $isMaskType = 0; 67 if (lc($det_type) eq "mask") { $isMaskType = 1; } 68 if (lc($det_type) eq "darkmask") { $isMaskType = 1; } 69 if (lc($det_type) eq "flatmask") { $isMaskType = 1; } 66 # Define which detrend types we normalise 67 use constant DETTYPE => { 68 'bias' => 'bias', 69 'dark' => 'dark', 70 'dark_premask' => 'dark', 71 'shutter' => 'shutter', 72 'flat' => 'flat', 73 'domeflat' => 'flat', 74 'skyflat' => 'flat', 75 'flat_premask' => 'flat', 76 'domeflat_premask' => 'flat', 77 'skyflat_premask' => 'flat', 78 'fringe' => 'fringe', 79 'mask' => 'mask', 80 'darkmask' => 'mask', 81 'flatmask' => 'mask', 82 }; 83 84 # convert supplied detrend type to a controlled namespace 85 &my_die("Unrecognised detrend type: $det_type", $det_id, $iter, $class_id, $PS_EXIT_PROG_ERROR) unless exists DETTYPE()->{lc($det_type)}; 86 my $det_type_real = DETTYPE()->{lc($det_type)}; 70 87 71 88 # values to extract from output metadata and the stats to calculate … … 98 115 $ipprc->outroot_prepare($outroot); 99 116 100 my $outFile = $isMaskType? 'PPIMAGE.OUTPUT.DETMASK' : 'PPIMAGE.OUTPUT';; # XXXX something of a hack (too many places to control things...)117 my $outFile = ($det_type_real eq "mask") ? 'PPIMAGE.OUTPUT.DETMASK' : 'PPIMAGE.OUTPUT';; # XXXX something of a hack (too many places to control things...) 101 118 102 119 my $output = $ipprc->filename($outFile, $outroot, $class_id) or &my_die("Missing entry from camera config", $det_id, $iter, $class_id, $PS_EXIT_CONFIG_ERROR); … … 113 130 $command .= " -recipe PPSTATS $RECIPE_PPSTATS"; 114 131 $command .= " -F PPIMAGE.OUTPUT $outFile" unless $outFile eq 'PPIMAGE.OUTPUT'; 115 $command .= ' -isfringe' if lc($det_type)eq 'fringe';116 $command .= ' -isdark' if lc($det_type)eq 'dark';132 $command .= ' -isfringe' if $det_type_real eq 'fringe'; 133 $command .= ' -isdark' if $det_type_real eq 'dark'; 117 134 $command .= " -tracedest $traceDest -log $logDest"; 118 135 $command .= " -dbname $dbname" if defined $dbname; -
trunk/ippScripts/scripts/detrend_norm_calc.pl
r17671 r18128 49 49 # Define which detrend types we normalise 50 50 use constant NORMALIZE => { 51 'bias' => 0, 52 'dark' => 0, 53 'shutter' => 0, 54 'flat' => 1, 55 'domeflat' => 1, 56 'skyflat' => 1, 57 'fringe' => 0, 58 'mask' => 0, 59 'darkmask' => 0, 60 'flatmask' => 0, 51 'bias' => 0, 52 'dark' => 0, 53 'dark_premask' => 0, 54 'shutter' => 0, 55 'flat' => 1, 56 'domeflat' => 1, 57 'skyflat' => 1, 58 'flat_premask' => 1, 59 'domeflat_premask' => 1, 60 'skyflat_premask' => 1, 61 'fringe' => 0, 62 'mask' => 0, 63 'darkmask' => 0, 64 'flatmask' => 0, 61 65 }; 62 66 -
trunk/ippScripts/scripts/detrend_resid.pl
r18107 r18128 105 105 # Flags to specify the particular detrend to use 106 106 use constant DETRENDS => { 107 'bias' => '-bias', # Specify the bias frame 108 'dark' => '-dark', # Specify the dark frame 109 'shutter' => '-shutter', # Specify the shutter frame 110 'flat' => '-flat', # Specify the flat frame 111 'domeflat' => '-flat', # Specify the flat frame 112 'skyflat' => '-flat', # Specify the flat frame 113 'fringe' => '-fringe', # Specify the fringe frame 114 'mask' => '-mask', # Specify the mask frame 115 'darkmask' => '-mask', # Specify the mask frame 116 'flatmask' => '-mask', # Specify the mask frame 107 'bias' => '-bias', # Specify the bias frame 108 'dark' => '-dark', # Specify the dark frame 109 'dark_premask' => '-dark', # Specify the dark frame 110 'shutter' => '-shutter', # Specify the shutter frame 111 'flat' => '-flat', # Specify the flat frame 112 'domeflat' => '-flat', # Specify the flat frame 113 'skyflat' => '-flat', # Specify the flat frame 114 'flat_premask' => '-flat', # Specify the flat frame 115 'domeflat_premask' => '-flat', # Specify the flat frame 116 'skyflat_premask' => '-flat', # Specify the flat frame 117 'fringe' => '-fringe', # Specify the fringe frame 118 'mask' => '-mask', # Specify the mask frame 119 'darkmask' => '-mask', # Specify the mask frame 120 'flatmask' => '-mask', # Specify the mask frame 117 121 }; 118 122
Note:
See TracChangeset
for help on using the changeset viewer.
