mainGNU Astronomy Utilities - Support: sr #109226, Reassigned to another tracker...

 
 

sr #109226: Reassigned to another tracker [was: Change definition of rectangular section cropping limits to be inclusive]

Submitter:  Lee Kelvin <leeskelvin>
Submitted:  Thu 19 Jan 2017 05:01:40 PM UTC
   
 
Category:  Crop Priority:  5 - Normal
Severity:  1 - Wish Item Group:  * Enhancement
Status:  None Privacy:  Public
Assigned to:  None Open/Closed:  Closed
Operating System:  GNU/Linux
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 19 Jan 2017 11:30:42 PM UTC, comment #1: 

THIS ITEM WAS REASSIGNED TO TASK #14313


Please, do not post any new comments to this item.

Mohammad Akhlaghi <makhlaghi>
Group administrator
Thu 19 Jan 2017 05:01:40 PM UTC, original submission:  

THIS ITEM WAS REASSIGNED TO TASK #14313
When defining a rectangular section to crop from a larger image using the --section argument of ImageCrop, I believe it would make more sense for all coordinates in X1:X2,Y1:Y2 to be inclusive.

For example, if I wish to cut out a square region in the lower-left corner of a FITS image of size 3x3, the principle of least surprise would lead me to believe that this command should be:

astimgcrop --section=1:3,1:3 input.fits

However, the current definition of cropping coordinates within ImageCrop is inclusive for the lower-left corner (X1 and Y1) yet exclusive for the upper-right corner (X2 and Y2). The above command should therefore leave me with only a 2x2 FITS image as an output. Logically, this does not seem to follow.

Furthermore, many other contemporary astronomy image cutting software already adopts inclusive coordinates at both extremes, for example, NASA HEASARC's 'fitscopy' and STScI's 'imcopy'. Many astronomers already familiar with these software may not appreciate that ImageCrop has adopted an alternative definition.

Lee Kelvin <leeskelvin>

 

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

Attach Files:
   
   
Comment:
   

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 leeskelvin (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.

    Only logged-in users can vote.

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2017-01-19 makhlaghi Reassign ItemGNU Astronomy Utilities, sr #109226 GNU Astronomy Utilities, task #14313

    Back to the top

    Powered by Savane 3.13-bb6a.
    Corresponding source code