bugGNU Astronomy Utilities - Bugs: bug #65805, psf-stamp script creates...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #65805: psf-stamp script creates no-centered output

Submitter:  Raul Infante-Sainz <infantesainz>
Submitted:  Tue 28 May 2024 02:50:46 PM UTC
   
 
Category:  Installed scripts Severity:  3 - Normal
Item Group:  Output not reasonable Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open

Tue 28 May 2024 02:50:46 PM UTC, original submission:  

This script is in charge of creating stamps centered at the position provided by the user. However, when the output size is larger than the input image, the output image is not properly centered. To reproduce this problem run the lines below. At the end, it can be seen that the small stamp is properly centered, but the larger one is not.

# Size of the image
w=11

# Generate a noised image, just to distinguish pixels
astarithmetic $w $w 2 makenew 0.1 mknoise-sigma --output=noise.fits

# Put the central pixel with high value.
c=$(astarithmetic $w 2 / 1 + -q)
echo "1 $c $c 4 0 0.0 0.0 0.0 10 0" \
      | astmkprof --background=new.fits --mforflatpix --output=image.fits

# Create two stamps, at the same center position but with different sizes
small=9
large=15
bash psf-stamp.sh image.fits --center=$c,$c --widthinpix=$small,$small \
                  --mode=img --output=stamp-$small-$small.fits
bash psf-stamp.sh image.fits --center=$c,$c --widthinpix=$large,$large \
                  --mode=img --output=stamp-$large-$large.fits

# Check the results
astscript-fits-view stamp-$small-$small.fits stamp-$large-$large.fits



Raul Infante-Sainz <infantesainz>
Group Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by infantesainz (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    No changes have been made to this item

    Back to the top

    Powered by Savane 3.13-c8cf.
    Corresponding source code