Changeset 32792
- Timestamp:
- Nov 23, 2011, 2:26:50 PM (15 years ago)
- Location:
- tags/ipp-20111110
- Files:
-
- 3 edited
-
ippScripts/scripts/videophot_process.pl (modified) (3 diffs, 1 prop)
-
psvideophot/src (modified) (2 props)
-
psvideophot/src/psvideoLoop.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
tags/ipp-20111110/ippScripts/scripts/videophot_process.pl
- Property svn:mergeinfo changed
/trunk/ippScripts/scripts/videophot_process.pl merged: 32779,32788
r32753 r32792 32 32 my $listvideocells = can_run('listvideocells.pl') or (warn "Can't find listvideocells.pl" and $missing_tools = 1); 33 33 my $dsreg = can_run('dsreg') or (warn "Can't find dsreg" and $missing_tools = 1); 34 my $nebrepair = can_run('neb-repair') or (warn "Can't find neb-repair" and $missing_tools = 1); 34 35 if ($missing_tools) { 35 36 warn("Can't find required tools."); … … 116 117 run(command => $command, verbose => $verbose); 117 118 unless ($success) { 119 check_input_file($uri, $vp_id, $class_id, 'nocell'); 118 120 $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR); 119 121 &my_die("Unable to perform $command: $error_code", $vp_id, $error_code); … … 244 246 exit 0; 245 247 248 sub check_input_file { 249 my $uri = shift; 250 my $vp_id = shift; 251 my $class_id = shift; 252 my $cell_id = shift; 253 my $resolved = $ipprc->file_resolve($uri); 254 255 my $tryrepair = 0; 256 if (!-e $resolved) { 257 printf STDERR "instance $resolved for $uri does not exist\n"; 258 $tryrepair = 1; 259 } elsif (-s $resolved == 0) { 260 printf STDERR "instance $resolved for $uri is empty\n"; 261 $tryrepair = 1; 262 } 263 if ($tryrepair) { 264 my $scheme = file_scheme($uri); 265 if ($scheme and ($scheme = 'neb')) { 266 my $command = "$nebrepair $uri"; 267 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 268 run(command => $command, verbose => $verbose); 269 unless ($success) { 270 $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR); 271 my $err_message = "Unable to perform nebrepair"; 272 &my_die("$err_message: $error_code", $vp_id, $error_code); 273 } 274 } 275 } 276 } 277 246 278 sub my_die 247 279 { - Property svn:mergeinfo changed
-
tags/ipp-20111110/psvideophot/src
- Property svn:ignore
-
Property svn:mergeinfo
set to (toggle deleted branches)
/branches/eam_branches/ipp-20110710/psvideophot/src merged eligible /branches/eam_branches/ipp-20110906/psvideophot/src merged eligible /trunk/psvideophot/src merged eligible /branches/czw_branch/20101203/psvideophot/src 29907-30631 /branches/eam_branches/ipp-20101103/psvideophot/src 29657-29920 /branches/eam_branches/ipp-20101205/psvideophot/src 29959-30585 /branches/eam_branches/ipp-20110213/psvideophot/src 30628-31149
-
tags/ipp-20111110/psvideophot/src/psvideoLoop.c
r32556 r32792 234 234 Centering(readout->image, EDGE, &vpSum, xy, median); 235 235 236 vpFlux = SubSum(readout->image, xy, median); 236 if (isfinite(xy[0]) && isfinite(xy[1])) { 237 vpFlux = SubSum(readout->image, xy, median); 238 } 237 239 238 240 // printf("%4d %9.2f %9.2f %9.2f %.1f %.1f %9.2f\n",
Note:
See TracChangeset
for help on using the changeset viewer.
