Changeset 14898
- Timestamp:
- Sep 19, 2007, 2:04:03 PM (19 years ago)
- Location:
- trunk/ippScripts/scripts
- Files:
-
- 2 edited
-
diff_skycell.pl (modified) (8 diffs)
-
stack_skycell.pl (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/diff_skycell.pl
r14383 r14898 88 88 89 89 # Identify the input and the template 90 my ($input, $inputMask, $inputWeight, $inputPath ); # Input files and path91 my ($template, $templateMask, $templateWeight, $templatePath ); # Template files and path90 my ($input, $inputMask, $inputWeight, $inputPath, $inputPSF); # Input files and path 91 my ($template, $templateMask, $templateWeight, $templatePath, $templateSources); # Template files and path 92 92 my $tess_id; # Tesselation identifier 93 93 my $skycell_id; # Skycell identifier … … 100 100 $templateMask = "PPSTACK.OUTPUT.MASK"; 101 101 $templateWeight = "PPSTACK.OUTPUT.WEIGHT"; 102 $templateSources = "PPSTACK.OUTPUT.SOURCES"; 102 103 } else { 103 104 $templateMask = "PSWARP.OUTPUT.MASK"; 104 105 $templateWeight = "PSWARP.OUTPUT.WEIGHT"; 106 $templateSources = "PSWARP.OUTPUT.SOURCES"; 105 107 } 106 108 } else { … … 110 112 $inputMask = "PPSTACK.OUTPUT.MASK"; 111 113 $inputWeight = "PPSTACK.OUTPUT.WEIGHT"; 114 die "ppStack doesn't output a PSF model yet."; 112 115 } else { 113 116 $inputMask = "PSWARP.OUTPUT.MASK"; 114 117 $inputWeight = "PSWARP.OUTPUT.WEIGHT"; 118 $inputPSF = "PSPHOT.PSF.SAVE"; 115 119 } 116 120 } … … 144 148 $templateWeight = $ipprc->filename($templateWeight, $templatePath); 145 149 $inputWeight = $ipprc->filename($inputWeight, $inputPath); 150 $inputPSF = $ipprc->filename($inputPSF, $inputPath); 151 $templateSources = $ipprc->filename($templateSources, $templatePath); 146 152 147 153 &my_die("Couldn't find input: $template", $diff_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($template); … … 151 157 &my_die("Couldn't find input: $inputMask", $diff_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($inputMask); 152 158 &my_die("Couldn't find input: $inputWeight", $diff_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($inputWeight); 159 &my_die("Couldn't find input: $inputPSF", $diff_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($inputPSF); 160 &my_die("Couldn't find input: $templateSources", $diff_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($templateSources); 153 161 154 162 # Get the output filenames … … 158 166 my $outputMask = $ipprc->filename("PPSUB.OUTPUT.MASK", $outputRoot); 159 167 my $outputWeight = $ipprc->filename("PPSUB.OUTPUT.WEIGHT", $outputRoot); 168 my $outputSources = $ipprc->filename("PSPHOT.OUTPUT", $outputRoot); 160 169 #my $bin1Name = $ipprc->filename("PPSUB.BIN1", $outputRoot); 161 170 #my $bin2Name = $ipprc->filename("PPSUB.BIN2", $outputRoot); … … 177 186 $command .= " -stats $outputStats"; 178 187 $command .= " -recipe PPSTATS WARPSTATS"; 188 $command .= " -sources $templateSources"; 189 $command .= " -psf $inputPSF"; 179 190 180 191 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = … … 187 198 &my_die("Couldn't find expected output file: $outputMask", $diff_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($outputMask); 188 199 &my_die("Couldn't find expected output file: $outputWeight", $diff_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($outputWeight); 200 &my_die("Couldn't find expected output file: $outputSources", $diff_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($outputSources); 189 201 # &my_die("Couldn't find expected output file: $bin1Name", $diff_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($bin1Name); 190 202 # &my_die("Couldn't find expected output file: $bin2Name", $diff_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($bin2Name); -
trunk/ippScripts/scripts/stack_skycell.pl
r14718 r14898 120 120 UNLINK => !$save_temps ); 121 121 my $num = 0; 122 my $inputSources; # Sources to use as stamps 122 123 foreach my $file (@$files) { 123 124 print $listFile "INPUT$num\tMETADATA\n"; … … 141 142 142 143 print $listFile "END\n\n"; 144 145 unless (defined $inputSources) { 146 $inputSources = $ipprc->filename("PSWARP.OUTPUT.SOURCES", $file->{path_base}); 147 &my_die("Source file $inputSources does not exist", $stack_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists( $inputSources ); 148 } 149 143 150 } 144 151 … … 149 156 my $outputMask = $ipprc->filename("PPSTACK.OUTPUT.MASK", $outputRoot); 150 157 my $outputWeight = $ipprc->filename("PPSTACK.OUTPUT.WEIGHT", $outputRoot); 158 my $outputSources = $ipprc->filename("PPSTACK.OUTPUT.SOURCES", $outputRoot); 151 159 #my $bin1Name = $ipprc->filename("PPSTACK.BIN1", $outputRoot); 152 160 #my $bin2Name = $ipprc->filename("PPSTACK.BIN2", $outputRoot); … … 158 166 $command .= " -stats $outputStats"; 159 167 $command .= " -recipe PPSTATS WARPSTATS"; 168 $command .= " -sources $inputSources"; 169 $command .= " -target 5.0"; 170 $command .= " -photometry"; 171 172 print "\n\nWARNING: Convolving to 1 arcsec FWHM seeing!\n\n"; 160 173 161 174 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = … … 168 181 &my_die("Couldn't find expected output file: $outputMask", $stack_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($outputMask); 169 182 &my_die("Couldn't find expected output file: $outputWeight", $stack_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($outputWeight); 183 &my_die("Couldn't find expected output file: $outputSources", $stack_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($outputSources); 170 184 # &my_die("Couldn't find expected output file: $bin1Name", $stack_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($bin1Name); 171 185 # &my_die("Couldn't find expected output file: $bin2Name", $stack_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($bin2Name);
Note:
See TracChangeset
for help on using the changeset viewer.
