Changeset 25110 for trunk/pstamp/scripts/pstampparse.pl
- Timestamp:
- Aug 18, 2009, 11:58:22 AM (17 years ago)
- File:
-
- 1 edited
-
trunk/pstamp/scripts/pstampparse.pl (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pstamp/scripts/pstampparse.pl
r25075 r25110 14 14 use PS::IPP::PStamp::Job qw( :standard ); 15 15 use File::Temp qw(tempfile); 16 use Carp; 16 17 17 18 my $verbose; … … 96 97 my_die("wrong EXTVER $extver found in $request_file_name", $PS_EXIT_PROG_ERROR) if ($extver ne "1"); 97 98 98 { 99 # check for duplicate request name 100 if (!$no_update) { 99 101 my $command = "$pstamptool -listreq -name $req_name"; 100 102 $command .= " -dbname $dbname" if $dbname; 101 103 $command .= " -dbserver $dbserver" if $dbserver; 104 # no verbose so that error message about request not found doesn't appear in parse_error.txt 102 105 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 103 run(command => $command, verbose => $verbose);106 run(command => $command, verbose => 0); 104 107 my $exitStatus = $error_code >> 8; 105 108 if ($success) { … … 183 186 184 187 my $option_mask= $row->{OPTION_MASK}; 188 my $inverse = ($option_mask & $PSTAMP_SELECT_INVERSE) ? 1 : 0; 189 $row->{inverse} = $inverse; 185 190 186 191 my $skycenter = $row->{skycenter} = ! ($row->{COORD_MASK} & $PSTAMP_CENTER_IN_PIXELS); … … 247 252 next; 248 253 } else { 249 # Call PS::IPP::PStamp::Job 's locate_images subroutine to get the parameters for this254 # Call PS::IPP::PStamp::Job locate_images subroutine to get the images for this 250 255 # request specification. An array reference is returned. 251 256 my ($x, $y); 257 252 258 $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 254 261 if (!$imageList or !@$imageList) { 255 262 print STDERR "no matching images found for row $rownum\n" if $verbose; … … 616 623 return 0 if ($r1->{IMG_TYPE} ne $r2->{IMG_TYPE}); 617 624 return 0 if ($r1->{ID} ne $r2->{ID}); 625 return 0 if ($r1->{inverse} ne $r2->{inverse}); 618 626 619 627 if (defined($r1->{COMPONENT})) {
Note:
See TracChangeset
for help on using the changeset viewer.
