bugGNU Astronomy Utilities - Bugs: bug #63026, Warp translation adds one extra...

 
 

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

bug #63026: Warp translation adds one extra pixel even if it is not requested

Submitter:  Raul Infante-Sainz <infantesainz>
Submitted:  Wed 07 Sep 2022 01:46:40 PM UTC
   
 
Category:  Warp Severity:  3 - Normal
Item Group:  Output not reasonable Status:  Fixed
Privacy:  Public Assigned to:  glorenzetti
Open/Closed:  Closed

Sat 13 Apr 2024 03:17:16 AM UTC, comment #2: 

Thanks Giacomo, it has been merged in commit 65e76f9c7.

Mohammad Akhlaghi <makhlaghi>
Group administrator
Tue 09 Apr 2024 04:47:16 PM UTC, comment #1: 

I've posted an attempt in gitlab, that seems promising in my local tests: https://gitlab.cefca.es/glorenzetti/gnuastro/-/commit/2274037d8e83641294d3fc4afc44855a42753167

Giacomo Lorenzetti <glorenzetti>
Group Member
Wed 07 Sep 2022 01:46:40 PM UTC, original submission:  

The option '--translate' of Warp does not do what the user expect. When asked to translate only in the x-axis, it also translates the y-axis. To easily reproduce the problem consider the lines below:

Create an image to play with.

astmkprof --kernel gaussian,1,2 --output img.fits


Translate along the x-axis 1 pixel (tx=1), and check the dimensions. The result shows that also the y-axis has changed

tx=1
ty=0
astwarp img.fits --translate $tx,$ty --output warped_$tx-$ty.fits
astfits warped_$tx-$ty.fits


By modifying tx and ty other options can be explored. Interestingly, when using tx=ty=0, the result is correct.


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 makhlaghi (Posted a comment)
  • -email is unavailable- added by glorenzetti (Posted a comment)
  • -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.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2024-04-13 makhlaghi StatusNone Fixed
        Assigned toNone glorenzetti
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-8ccc.
    Corresponding source code