IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 27670


Ignore:
Timestamp:
Apr 13, 2010, 1:28:15 PM (16 years ago)
Author:
bills
Message:

pstampdump the results file and include the text in the results fileset

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/pstamp/scripts/pstamp_finish.pl

    r26289 r27670  
    6363my $pstamp_results = can_run('pstamp_results_file.pl')
    6464                            or (warn "Can't find pstamp_results_file.pl" and $missing_tools = 1);
     65my $pstampdump = can_run('pstampdump') or (warn "Can't find pstampdump" and $missing_tools = 1);
    6566if ($missing_tools) {
    6667    warn("Can't find required tools.");
     
    123124    my ($rlf, $reglist_name) = tempfile ("$out_dir/reglist.XXXX", UNLINK => !$save_temps);
    124125    print $rlf "results.fits|||table|\n";
     126    print $rlf "results.mdc|||txt|\n";
    125127
    126128    my $err_file = "parse_error.txt";
     
    250252            print STDERR "Unable to perform $command error code: $error_code\n";
    251253            $request_fault = $error_code >> 8;
     254        } else {
     255            # dump a textual representation
     256            my $command = "$pstampdump $out_dir/results.fits > $out_dir/results.mdc";
     257            my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
     258                run(command => $command, verbose => $verbose);
     259            unless ($success) {
     260                print STDERR "Unable to perform $command error code: $error_code\n";
     261                $request_fault = $error_code >> 8;
     262            }
    252263        }
    253264    }
Note: See TracChangeset for help on using the changeset viewer.