taskGNU Astronomy Utilities - Tasks: task #15391, Crop removing extra (1-element)...

 
 

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

task #15391: Crop removing extra (1-element) dimensions

Submitter:  Mohammad Akhlaghi <makhlaghi>
Submitted:  Sun 15 Sep 2019 05:11:41 PM UTC
   
 
Should Start On:  Sat 14 Sep 2019 11:00:00 PM UTC Should be Finished on:  Sat 14 Sep 2019 11:00:00 PM UTC
Category:  Crop Priority:  5 - Normal
Item Group:  Enhancement Status:  Postponed
Privacy:  Public Assigned to:  None
Percent Complete:  0% Open/Closed:  Open
Effort:  0.00

Sun 15 Sep 2019 05:11:41 PM UTC, original submission:  

Throughout Gnuastro, when an array (image/cube) only has one element along a dimention, that false dimension is discarded as soon as the dataset is read.

However, Gnuastro's crop (which is commonly used to prepare the input dataset) keeps these false dimensions in its output. It would be consistent if Crop also discards such one-element dimensions.

For example with the command below on any image (to keep the second row of pixels):


$ astcrop test.fits --mode=img --section=:,2:2 -ovector.fits


If `test.fits' is a 100x100 image, `vector.fits' will currently be 100x1. Once the suggested task is implemented, it should be a one-dimensional array with 100 elements.

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.

     

    No changes have been made to this item

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code