bugGNU Astronomy Utilities - Bugs: bug #66014, Crop does not create images with...

 
 

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

bug #66014: Crop does not create images with the specified size

Submitter:  Raul Infante-Sainz <infantesainz>
Submitted:  Tue 23 Jul 2024 11:13:32 AM UTC
   
 
Category:  Crop Severity:  3 - Normal
Item Group:  Output not reasonable Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open

Tue 23 Jul 2024 11:13:32 AM UTC, original submission:  

The program Crop does not create the output image size as specified by the user if the size is an even number of pixels.

For example, with the following lines the user expects to have a final image of 6,6 pixels width, but the output is 7,7 pixels width.

astarithmetic 20 20 2 makenew 5 mknoise-sigma -o noise.fits

astcrop noise.fits --center=10,10 --width=6,6 --mode img -o crop.fits

astfits crop.fits

It is true that the situation is ambiguous because specifying a pixel center position and an image size with an even number of pixel is not well defined for the program Crop.

In this situation the program should crash and tell the user that there is a problem. It will be also useful to print the solution (use the option --section in this situation). Otherwise, if the user expects a X,Y image width but it provides a W,Z image width, it could cause a lot of confusion and problems later.

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