- Timestamp:
- Apr 12, 2018, 9:10:37 AM (8 years ago)
- Location:
- trunk
- Files:
-
- 7 edited
-
PS-IPP-PStamp/lib/PS/IPP/PStamp/Job.pm (modified) (2 diffs)
-
PS-IPP-PStamp/lib/PS/IPP/PStamp/RequestFile.pm (modified) (2 diffs)
-
pstamp/scripts/pstamp_job_run.pl (modified) (1 diff)
-
pstamp/src/ppstampArguments.c (modified) (2 diffs)
-
pstamp/src/ppstampMakeStamp.c (modified) (1 diff)
-
pstamp/src/ppstampOptions.h (modified) (1 diff)
-
pstamp/src/pstamp.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/PS-IPP-PStamp/lib/PS/IPP/PStamp/Job.pm
r39209 r40389 1666 1666 foreach my $row (@$rowList) { 1667 1667 print $pointsList "$npoints $row->{CENTER_X} $row->{CENTER_Y}\n"; 1668 $npoints++; 1668 #$npoints++; 1669 ## MEH hack -- add width, height corners 1670 if ( ($row->{OPTION_MASK} & $PSTAMP_MULTI_OVERLAP_IMAGE) && !($row->{COORD_MASK} & $PSTAMP_RANGE_IN_PIXELS) ){ 1671 ## +ra +dec corner 1672 printf $pointsList "$npoints %f %f\n", $row->{CENTER_X}+$row->{WIDTH}/3600.0, $row->{CENTER_Y}+$row->{HEIGHT}/3600.0; 1673 #$npoints++; 1674 ## +ra -dec corner 1675 printf $pointsList "$npoints %f %f\n", $row->{CENTER_X}+$row->{WIDTH}/3600.0, $row->{CENTER_Y}-$row->{HEIGHT}/3600.0; 1676 #$npoints++; 1677 ## -ra +dec corner 1678 printf $pointsList "$npoints %f %f\n", $row->{CENTER_X}-$row->{WIDTH}/3600.0, $row->{CENTER_Y}+$row->{HEIGHT}/3600.0; 1679 #$npoints++; 1680 ## -ra -dec corner 1681 printf $pointsList "$npoints %f %f\n", $row->{CENTER_X}-$row->{WIDTH}/3600.0, $row->{CENTER_Y}-$row->{HEIGHT}/3600.0; 1682 #$npoints++; 1683 } 1684 #### 1685 $npoints++; 1669 1686 # this gets overwitten if an overlapping image is found 1670 1687 $row->{error_code} = $PSTAMP_NO_OVERLAP; … … 1725 1742 $ref = $components{$component} = []; 1726 1743 } 1727 push @$ref, $ptnum; 1744 #push @$ref, $ptnum; 1745 ## MEH hack -- only push ptnum if not already, so check if ptnum in list 1746 push(@$ref, $ptnum) unless grep{$_ == $ptnum} @$ref; 1747 ## 1728 1748 my $row = $rowList->[$ptnum]; 1729 1749 # this row found a match -
trunk/PS-IPP-PStamp/lib/PS/IPP/PStamp/RequestFile.pm
r36811 r40389 35 35 $PSTAMP_SELECT_UNCONV 36 36 $PSTAMP_RESTORE_BACKGROUND 37 $PSTAMP_MULTI_OVERLAP_IMAGE 37 38 $PSTAMP_USE_IMFILE_ID 38 39 $PSTAMP_NO_WAIT_FOR_UPDATE … … 81 82 our $PSTAMP_SELECT_UNCONV = 2048; 82 83 our $PSTAMP_RESTORE_BACKGROUND = 4096; 83 # unused 819284 84 # MEH -- previously unused 8192 85 our $PSTAMP_MULTI_OVERLAP_IMAGE = 8192; 85 86 our $PSTAMP_USE_IMFILE_ID = 16384; 86 87 our $PSTAMP_NO_WAIT_FOR_UPDATE = 32768; -
trunk/pstamp/scripts/pstamp_job_run.pl
r38073 r40389 248 248 $command .= " -stage $stage"; 249 249 $command .= " -forheader $calibfile" if $calibfile; 250 ## MEH hack for centeroffchip -- needs constraint for coord_mask 0 all in sky values.. 251 $command .= " -centeroffchip" if ($options & $PSTAMP_MULTI_OVERLAP_IMAGE); 252 250 253 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 251 254 run(command => $command, verbose => $verbose); -
trunk/pstamp/src/ppstampArguments.c
r35893 r40389 31 31 fprintf(stderr, " [-write_cmf] : create an output cmf with the sources overlapping the stamp\n"); 32 32 fprintf(stderr, " [-wholefile] : ignore the region of interest and process the entire input image\n"); 33 fprintf(stderr, " [-centeroffchip] : allow center to be off chip boundary and include any pixels in ROI (testing) \n"); 33 34 // fprintf(stderr, " [-no_censor_masked] : do not set masked pixels to NAN\n"); 34 35 fprintf(stderr, "\n"); … … 66 67 *pOptions = options; 67 68 69 if ((argnum = psArgumentGet(argc, argv, "-centeroffchip"))) { 70 psArgumentRemove(argnum, &argc, argv); 71 options->centeroffchip = true; 72 } 73 68 74 if ((argnum = psArgumentGet(argc, argv, "-wholefile"))) { 69 75 psArgumentRemove(argnum, &argc, argv); -
trunk/pstamp/src/ppstampMakeStamp.c
r36060 r40389 592 592 } 593 593 594 if (onChip) { 594 //MEH add hack for ROI not to include center on chip 595 if (onChip || options->centeroffchip ) { 595 596 if (options->roip.celestialRange) { 596 597 findBoundingBox(options, input->fpa, chip, center); -
trunk/pstamp/src/ppstampOptions.h
r35893 r40389 8 8 // input arguments 9 9 pstampROI roip; 10 bool centeroffchip; 10 11 bool wholeFile; 11 12 psString chipName; -
trunk/pstamp/src/pstamp.h
r36811 r40389 43 43 #define PSTAMP_SELECT_UNCONV 2048 44 44 #define PSTAMP_RESTORE_BACKGROUND 4096 45 // unused 8192 45 // MEH -- previously unused 8192 46 #define PSTAMP_MULTI_OVERLAP_IMAGE 8192 46 47 #define PSTAMP_USE_IMFILE_ID 16384 47 48
Note:
See TracChangeset
for help on using the changeset viewer.
