IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 25110


Ignore:
Timestamp:
Aug 18, 2009, 11:58:22 AM (17 years ago)
Author:
bills
Message:

various changes to deal with bothways diffs

File:
1 edited

Legend:

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

    r25075 r25110  
    1414use PS::IPP::PStamp::Job qw( :standard );
    1515use File::Temp qw(tempfile);
     16use Carp;
    1617
    1718my $verbose;
     
    9697my_die("wrong EXTVER $extver found in $request_file_name", $PS_EXIT_PROG_ERROR) if ($extver ne "1");
    9798
    98 {
     99# check for duplicate request name
     100if (!$no_update) {
    99101    my $command = "$pstamptool -listreq  -name $req_name";
    100102    $command .= " -dbname $dbname" if $dbname;
    101103    $command .= " -dbserver $dbserver" if $dbserver;
     104    # no verbose so that error message about request not found doesn't appear in parse_error.txt
    102105    my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    103         run(command => $command, verbose => $verbose);
     106        run(command => $command, verbose => 0);
    104107    my $exitStatus = $error_code >> 8;
    105108    if ($success) {
     
    183186
    184187    my $option_mask= $row->{OPTION_MASK};
     188    my $inverse = ($option_mask & $PSTAMP_SELECT_INVERSE) ? 1 : 0;
     189    $row->{inverse} = $inverse;
    185190
    186191    my $skycenter = $row->{skycenter} = ! ($row->{COORD_MASK} & $PSTAMP_CENTER_IN_PIXELS);
     
    247252        next;
    248253    } else {
    249         # Call PS::IPP::PStamp::Job's locate_images subroutine to get the parameters for this
     254        # Call PS::IPP::PStamp::Job locate_images subroutine to get the images for this
    250255        # request specification. An array reference is returned.
    251256        my ($x, $y);
     257
    252258        $imageList = locate_images($ipprc, $image_db, $req_type, $stage, $id, $search_component,
    253                 $skycenter, $x, $y, $mjd_min, $mjd_max, $filter, $verbose);
     259                $inverse, $skycenter, $x, $y, $mjd_min, $mjd_max, $filter, $verbose);
     260
    254261        if (!$imageList or !@$imageList) {
    255262            print STDERR "no matching images found for row $rownum\n" if $verbose;
     
    616623    return 0 if ($r1->{IMG_TYPE} ne $r2->{IMG_TYPE});
    617624    return 0 if ($r1->{ID} ne $r2->{ID});
     625    return 0 if ($r1->{inverse} ne $r2->{inverse});
    618626
    619627    if (defined($r1->{COMPONENT})) {
Note: See TracChangeset for help on using the changeset viewer.