Changeset 33512
- Timestamp:
- Mar 13, 2012, 3:44:18 PM (14 years ago)
- Location:
- trunk/pstamp/scripts
- Files:
-
- 2 edited
-
pstamp_job_run.pl (modified) (1 diff)
-
pstampparse.pl (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pstamp/scripts/pstamp_job_run.pl
r33381 r33512 226 226 my $command = "$ppstamp $outputBase $argString $fileArgs"; 227 227 $command .= " -write_jpeg" if ($options & $PSTAMP_SELECT_JPEG); 228 $command .= " -nocompress" if ($options & $PSTAMP_SELECT_UNCOMPRESSED); 229 $command .= " -stage $stage"; 230 $command .= " -censor_masked" if $nan_masked; 228 231 $command .= " -dbname $dbname" if $dbname; 229 232 $command .= " -dbserver $dbserver" if $dbserver; 230 $command .= " -stage $stage";231 $command .= " -no_censor_masked" unless $nan_masked;232 233 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 233 234 run(command => $command, verbose => $verbose); -
trunk/pstamp/scripts/pstampparse.pl
r33455 r33512 333 333 my $skycenter = $row->{skycenter} = ! ($row->{COORD_MASK} & $PSTAMP_CENTER_IN_PIXELS); 334 334 335 if (!$skycenter and !$component ){335 if (!$skycenter and !$component and $stage ne 'stack' and !($option_mask & $PSTAMP_USE_IMFILE_ID)){ 336 336 print STDERR "COMPONENT must be specified for pixel coordinate ROI center\n"; 337 337 insertFakeJobForRow($row, 1, $PSTAMP_INVALID_REQUEST); … … 525 525 my $h = $row->{HEIGHT}; 526 526 my $coord_mask = $row->{COORD_MASK}; 527 my $wholeFile = 0; 527 528 if ($coord_mask & $PSTAMP_CENTER_IN_PIXELS) { 528 $roi_string = "-pixcenter $x $y"; 529 # Center of 0, 0 in pixel coordinates is interpreted to mean 530 # return the entire file 531 if ($x == 0 && $y == 0) { 532 $roi_string = "-wholefile"; 533 $wholeFile = 1; 534 } else { 535 $roi_string = "-pixcenter $x $y"; 536 } 529 537 } else { 530 538 $roi_string = "-skycenter $x $y"; 531 539 } 532 if ($coord_mask & $PSTAMP_RANGE_IN_PIXELS) { 533 $roi_string .= " -pixrange $w $h"; 534 } else { 535 $roi_string .= " -arcrange $w $h"; 540 if (!$wholeFile) { 541 if ($coord_mask & $PSTAMP_RANGE_IN_PIXELS) { 542 $roi_string .= " -pixrange $w $h"; 543 } else { 544 $roi_string .= " -arcrange $w $h"; 545 } 536 546 } 537 547 … … 570 580 $args .= " -class_id $component" if $component; 571 581 } 572 573 if (0) {574 # add astrometry file for raw and chip images if one is available575 if (($stage eq "chip") || ($stage eq "raw")) {576 $args .= " -astrom $image->{astrom}" if $image->{astrom};577 }578 }579 582 580 583 $image->{job_args} = $args;
Note:
See TracChangeset
for help on using the changeset viewer.
