Changeset 34739
- Timestamp:
- Nov 29, 2012, 2:35:21 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tags/ipp-20121026/ippScripts/scripts/skycalibration.pl
-
Property svn:mergeinfo
set to (toggle deleted branches)
/branches/eam_branches/ipp-20120405/ippScripts/scripts/skycalibration.pl merged eligible /branches/eam_branches/ipp-20120601/ippScripts/scripts/skycalibration.pl merged eligible /branches/eam_branches/ipp-20120627/ippScripts/scripts/skycalibration.pl merged eligible /branches/eam_branches/ipp-20120805/ippScripts/scripts/skycalibration.pl merged eligible /branches/eam_branches/ipp-20120905/ippScripts/scripts/skycalibration.pl merged eligible /trunk/ippScripts/scripts/skycalibration.pl merged eligible /branches/czw_branch/20101203/ippScripts/scripts/skycalibration.pl 29907-30631 /branches/eam_branches/ipp-20101103/ippScripts/scripts/skycalibration.pl 29657-29920 /branches/eam_branches/ipp-20101205/ippScripts/scripts/skycalibration.pl 29959-30585 /branches/eam_branches/ipp-20110213/ippScripts/scripts/skycalibration.pl 30628-31149 /branches/eam_branches/ipp-20110404/ippScripts/scripts/skycalibration.pl 31166-31444 /branches/eam_branches/ipp-20110505/ippScripts/scripts/skycalibration.pl 31458-31658 /branches/eam_branches/ipp-20110710/ippScripts/scripts/skycalibration.pl 31852-32345 /branches/eam_branches/ipp-20110906/ippScripts/scripts/skycalibration.pl 32363-32631 /branches/eam_branches/ipp-20111110/ippScripts/scripts/skycalibration.pl 32645-32694 /branches/haf_add201112/ippScripts/scripts/skycalibration.pl 32980-33029
r34151 r34739 33 33 my $psastro = can_run('psastro') or (warn "Can't find psastro" and $missing_tools = 1); 34 34 my $fhead = can_run('fhead') or (warn "Can't find fhead" and $missing_tools = 1); 35 my $fields = can_run('fields') or (warn "Can't find fields" and $missing_tools = 1); 35 36 my $ppStatsFromMetadata = can_run('ppStatsFromMetadata') or (warn "Can't find ppStatsFromMetadata" and $missing_tools = 1); 36 37 my $ppConfigDump = can_run('ppConfigDump') or (warn "Can't find ppConfigDump" and $missing_tools = 1); … … 191 192 } 192 193 194 my $resolved = $ipprc->file_resolve($file); 195 if (!$resolved) { 196 &my_die("Unable to find input file: $file", $skycal_id, $PS_EXIT_SYS_ERROR); 197 } 198 199 # read the input header to find the number of detections and the number of detections 200 # with extended model 201 my $n_detections = 0; 202 my $n_extended = 0; 203 { 204 my $command = "echo $resolved | $fields -n SkyChip.psf NAXIS2"; 205 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 206 run(command => $command, verbose => 0); 207 # fields does not return 0 on success 208 (undef, $n_detections) = split " ", join "", @$stdout_buf; 209 chomp $n_detections; 210 &my_die("Unable to find number of detections from $file: ", $skycal_id, $PS_EXIT_SYS_ERROR) 211 unless defined $n_detections; 212 213 $command = "echo $resolved | $fields -n SkyChip.hdr NDET_EXT"; 214 ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 215 run(command => $command, verbose => 0); 216 (undef, $n_extended) = split " ", join "", @$stdout_buf; 217 chomp $n_extended; 218 &my_die("Unable to find number of extended objects from $file: ", $skycal_id, $PS_EXIT_SYS_ERROR) 219 unless defined $n_extended; 220 } 221 222 193 223 # Perform psastro analysis 194 224 my $output_sources_filerule = 'PSASTRO.OUTPUT.CMF'; … … 246 276 { 247 277 my $command = "$staticskytool -skycal_id $skycal_id"; 278 $command .= " -n_detections $n_detections"; 279 $command .= " -n_extended $n_extended"; 248 280 $command .= " -addskycalresult -path_base $outroot"; 249 281 $command .= " $cmdflags"; -
Property svn:mergeinfo
set to (toggle deleted branches)
Note:
See TracChangeset
for help on using the changeset viewer.
