taskGNU Astronomy Utilities - Tasks: task #14574, Crop by center options standard...

 
 

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

task #14574: Crop by center options standard agnostic

Submitter:  Mohammad Akhlaghi <makhlaghi>
Submitted:  Tue 27 Jun 2017 09:32:40 PM UTC
   
 
Should Start On:  Mon 26 Jun 2017 10:00:00 PM UTC Should be Finished on:  Mon 26 Jun 2017 10:00:00 PM UTC
Category:  Crop Priority:  5 - Normal
Item Group:  Enhancement Status:  Done
Privacy:  Public Assigned to:  makhlaghi
Percent Complete:  100% Open/Closed:  Closed
Effort:  0.00

Tue 27 Jun 2017 10:19:52 PM UTC, comment #1: 

This task is completed and pushed to the main repo. The commit explanations fully describe the changes.

Please share your thoughts until Gnuastro 0.4.

Mohammad Akhlaghi <makhlaghi>
Group administrator
Tue 27 Jun 2017 09:32:40 PM UTC, original submission:  

Currently, if you want to crop a region around the pixel (A,B) in an image with crop, you have to use `--xc=A --yc=B'. On the other hand, if you want a crop around the RA and Dec of (R,D), you have to use `--ra=R --dec=D'. Each standard also has its own separate option to specify the width: `--iwidth' and `--wwidth'. In parallel, Crop also has the `--mode' option to specify the coordinate standard (for cases like `--polygon', where only one option is used for both standards).

This can all be confusing, just adds to the number of options (makes things harder for the user) and also makes maintaining Crop harder. The main reason for this is historical: Crop is Gnuastro's first program, so I wasn't too experience and all these options grew very gradually.

So I am now working on a correction where a single `--center' and `--width' option can be used to identify the center and width of the crop. They both accept multiple values (separated by a comma) and can also accept fractions. So now, the crops defined by their center can be rectangular too, not just a square. With this change, the role of the `--mode' option becomes more prominent because it is the sole way to identify the nature of the values given to this option.

Mohammad Akhlaghi <makhlaghi>
Group administrator

 

(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 (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
    2017-06-27 makhlaghi StatusIn Progress Done
        Percent Complete90% 100%
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code