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

Submitted by:  Mohammad Akhlaghi <makhlaghi>
Submitted on:  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 Percent Complete:  0%
Assigned to:  None 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>
Project Administrator

 

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)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

     

     

    No changes have been made to this item

    Back to the top


    Powered by Savane 3.5