Changeset 30631 for branches/czw_branch/20101203/ippScripts
- Timestamp:
- Feb 14, 2011, 1:05:28 PM (15 years ago)
- Location:
- branches/czw_branch/20101203
- Files:
-
- 8 edited
-
. (modified) (1 prop)
-
ippScripts/scripts/diff_skycell.pl (modified) (3 diffs)
-
ippScripts/scripts/ipp_apply_burntool_single.pl (modified) (1 prop)
-
ippScripts/scripts/ipp_cleanup.pl (modified) (1 diff)
-
ippScripts/scripts/magic_destreak_cleanup.pl (modified) (4 diffs)
-
ippScripts/scripts/magic_process.pl (modified) (1 diff)
-
ippScripts/scripts/stack_skycell.pl (modified) (1 diff)
-
ippScripts/scripts/warp_skycell.pl (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/czw_branch/20101203
- Property svn:mergeinfo changed
-
branches/czw_branch/20101203/ippScripts/scripts/diff_skycell.pl
r28593 r30631 117 117 } 118 118 119 # ppSub does (input) - (template) after PSF-match convolution. 120 # one of the files needs to be assigned to 'input' and the other to 'template'. 121 # if either of these is a WARP, then we can perform magic on it. If we are going to 122 # run magic, then we need to save the convolved version of the OTHER image 123 # (see magic_process.pl:155) 124 119 125 foreach my $file (@$files) { 120 126 if (defined $file->{template} and $file->{template}) { 121 # $template = $file->{uri};122 127 $templatePath = $file->{path_base}; 123 128 if ($file->{warp_id} == 0) { … … 142 147 $templateSources = "PSWARP.OUTPUT.SOURCES"; 143 148 $templateMagic = $file->{magicked}; 144 $saveRefConv = 1; 145 } 146 } else { 147 # $input = $file->{uri}; 149 $saveInConv = 1; 150 } 151 } else { 148 152 $inputPath = $file->{path_base}; 149 153 $inputMagic = $file->{magicked}; # if input is a stack the output can't be "magicked" … … 165 169 $inputVariance = "PSWARP.OUTPUT.VARIANCE"; 166 170 $inputSources = "PSWARP.OUTPUT.SOURCES"; 167 $save InConv = 1;171 $saveRefConv = 1; 168 172 } 169 173 } -
branches/czw_branch/20101203/ippScripts/scripts/ipp_apply_burntool_single.pl
-
Property svn:mergeinfo
set to (toggle deleted branches)
/branches/czw_branch/20101203/ippScripts/scripts/ipp_apply_burntool_single.pl merged eligible /branches/eam_branches/ipp-20101205/ippScripts/scripts/ipp_apply_burntool_single.pl merged eligible /trunk/ippScripts/scripts/ipp_apply_burntool_single.pl merged eligible /branches/eam_branches/ipp-20101103/ippScripts/scripts/ipp_apply_burntool_single.pl 29657-29920
-
Property svn:mergeinfo
set to (toggle deleted branches)
-
branches/czw_branch/20101203/ippScripts/scripts/ipp_cleanup.pl
r30587 r30631 1900 1900 { 1901 1901 my $files = shift; # reference to a list of files to unlink 1902 # my $test_verbose = 1; 1903 1904 # if ($test_verbose == 1) { 1905 # open(TMPLOG,">>/tmp/czw.cleanup.log"); 1906 # flock(TMPLOG,2); 1907 # } 1908 1909 # this script is, of course, very dangerous. 1902 1910 1903 foreach my $file (@$files) { 1911 1904 print STDERR "unlinking $stage $stage_id $file"; 1912 unless ($ipprc->file_exists($file)) { 1913 print STDERR "\t File not found\n"; 1914 } 1915 else { 1916 print STDERR "\n"; 1917 } 1918 1919 # if ($test_verbose == 1) { 1920 # print TMPLOG "$stage $stage_id $file"; 1921 1922 # else { 1923 # print TMPLOG "\n"; 1924 # } 1925 # } 1926 1927 $ipprc->file_delete($file); 1928 } 1929 1930 # if ($test_verbose == 1) { 1931 # flock(TMPLOG,8); 1932 # close(TMPLOG); 1933 # } 1905 1906 my $error_code = $ipprc->kill_file($file); 1907 1908 &my_die("failed to kill $file", $stage, $stage_id, $PS_EXIT_CONFIG_ERROR) if $error_code; 1909 } 1934 1910 1935 1911 return 1; -
branches/czw_branch/20101203/ippScripts/scripts/magic_destreak_cleanup.pl
r30587 r30631 44 44 'magic_ds_id=s' => \$magic_ds_id,# Magic destreak run identifier 45 45 'camera=s' => \$camera, # camera for evaluating file rules 46 'stage=s' => \$stage, # camera for evaluating file rules46 'stage=s' => \$stage, # ipp stage for this magicDSRun 47 47 'save-temps' => \$save_temps, # Save temporary files? 48 48 'dbname=s' => \$dbname, # Database name … … 160 160 my $backup_path_base = $comp->{backup_path_base}; 161 161 my ($bimage, $bmask, $bch_mask, $bweight, $bsources, $bastrom); 162 my ($rimage, $rmask, $rch_mask, $rweight, $rsources, $rastrom);162 # my ($rimage, $rmask, $rch_mask, $rweight, $rsources, $rastrom); 163 163 164 164 if ($stage eq "chip") { … … 219 219 } 220 220 221 delete_files($bimage, $bmask, $bweight, $bsources, $bastrom, $bch_mask , $rch_mask);221 delete_files($bimage, $bmask, $bweight, $bsources, $bastrom, $bch_mask); 222 222 223 223 if ($stage eq "diff" and $warp_warp) { … … 252 252 foreach my $file (@_) { 253 253 if ($file) { 254 if ($ipprc->file_exists($file)) { 255 if (!$no_update) { 256 print STDERR "deleting $file\n" if $verbose; 257 $ipprc->file_delete($file, 1) or my_die("Failed to delete $file", $magic_ds_id, $PS_EXIT_UNKNOWN_ERROR); 258 } else { 259 print STDERR "skipping delete $file\n"; 260 } 261 } else { 262 print STDERR "$file not found\n" if $verbose; 263 } 254 my $error_code = $ipprc->kill_file($file); 255 my_die("Failed to delete $file", $magic_ds_id, $error_code) if $error_code; 264 256 } 265 257 } -
branches/czw_branch/20101203/ippScripts/scripts/magic_process.pl
r29625 r30631 151 151 &my_die("failed to resolve inputs", $magic_id, $node, $PS_EXIT_DATA_ERROR); 152 152 } 153 154 # to run magic on a diff image, we need the convolved version 155 # of the corresponding TEMPLATE image 156 # (see diff_skycell.pl:124) 153 157 154 158 my $diff_base = $innode->{diff_path_base}; # Base name for diff -
branches/czw_branch/20101203/ippScripts/scripts/stack_skycell.pl
r30419 r30631 270 270 $command .= " -image_id $image_id" if defined $image_id; 271 271 $command .= " -source_id $source_id" if defined $source_id; 272 273 $command .= " -stack_id $stack_id" if defined $stack_id; 274 $command .= " -skycell_id $skycell_id" if defined $skycell_id; 275 $command .= " -tess_id $tess_base" if defined $tess_base; 276 272 277 if ($run_state eq 'new') { 273 278 $command .= " -dumpconfig $configuration"; -
branches/czw_branch/20101203/ippScripts/scripts/warp_skycell.pl
r30587 r30631 159 159 my $outputWeight = prepare_output ("PSWARP.OUTPUT.VARIANCE", $outroot, $skycell_id, 1); 160 160 my $outputSources = prepare_output ("PSWARP.OUTPUT.SOURCES", $outroot, $skycell_id, 1); 161 my $outputPSF = prepare_output ("PSPHOT.PSF.SKY.SAVE", $outroot, 1);161 my $outputPSF = prepare_output ("PSPHOT.PSF.SKY.SAVE", $outroot, $skycell_id, 1); 162 162 my $outputBin1 = prepare_output ("PSWARP.BIN1", $outroot, $skycell_id, 1); 163 163 my $outputBin2 = prepare_output ("PSWARP.BIN2", $outroot, $skycell_id, 1);
Note:
See TracChangeset
for help on using the changeset viewer.
