Changeset 23438 for trunk/ippScripts/scripts
- Timestamp:
- Mar 19, 2009, 2:54:59 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/ippScripts/scripts/diff_skycell.pl (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/diff_skycell.pl
r23435 r23438 95 95 my $tess_id; # Tesselation identifier 96 96 my $camera; # Camera 97 my $magicked_0; 98 my $magicked_1; 97 99 foreach my $file (@$files) { 98 100 if (defined $file->{template} and $file->{template}) { … … 103 105 $templateVariance = "PPSTACK.OUTPUT.VARIANCE"; 104 106 $templateSources = "PSPHOT.OUT.CMF.MEF"; ## this must be consistent with the value in stack_skycell.pl:161 107 # template is a stack so it doesn't need to be magicked 108 $magicked_1 = 1; 105 109 ## use an explicit stack name for psphot output objects 106 110 } else { … … 108 112 $templateVariance = "PSWARP.OUTPUT.VARIANCE"; 109 113 $templateSources = "PSWARP.OUTPUT.SOURCES"; 114 $magicked_1 = $file->{magicked}; 110 115 } 111 116 } else { 112 117 $input = $file->{uri}; 113 118 $inputPath = $file->{path_base}; 119 $magicked_0 = $file->{magicked}; # if input is a stack the output can't be "magicked" 114 120 if ($file->{warp_id} == 0) { 115 121 $inputMask = "PPSTACK.OUTPUT.MASK"; … … 146 152 &my_die("Unable to identify camera", $diff_id, $skycell_id, $PS_EXIT_SYS_ERROR) unless defined $camera; 147 153 $ipprc->define_camera($camera); 154 155 # Compute the magicked status of the output. 156 # The output file will be considered magicked if the input has been magicked and the 157 # template is either a stack or a warp that has been magicked. 158 # note that difftool -inputskyfile outputs the magicked boolean as an int not T or F 159 # because the output is constructed from a union of two selects 160 my $magicked = $magicked_0 && $magicked_1; 148 161 149 162 # Recipes to use based on reduction class … … 265 278 my $command = "$difftool -adddiffskyfile -diff_id $diff_id -skycell_id $skycell_id -uri $outputName -path_base $outroot"; 266 279 $command .= " $cmdflags"; 280 $command .= " -magicked" if $magicked; 267 281 $command .= (" -dtime_script " . ((DateTime->now->mjd - $mjd_start) * 86400)); 268 282 $command .= " -hostname $host" if defined $host;
Note:
See TracChangeset
for help on using the changeset viewer.
