gnuastro-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnuastro-devel] [task #15391] Crop removing extra (1-element) dimension


From: Mohammad Akhlaghi
Subject: [gnuastro-devel] [task #15391] Crop removing extra (1-element) dimensions
Date: Sun, 15 Sep 2019 13:11:42 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0

URL:
  <https://savannah.gnu.org/task/?15391>

                 Summary: Crop removing extra (1-element) dimensions
                 Project: GNU Astronomy Utilities
            Submitted by: makhlaghi
            Submitted on: Sun 15 Sep 2019 06:11:41 PM BST
         Should Start On: Sun 15 Sep 2019 12:00:00 AM BST
   Should be Finished on: Sun 15 Sep 2019 12:00:00 AM BST
                Category: Crop
                Priority: 5 - Normal
              Item Group: Enhancement
                  Status: Postponed
                 Privacy: Public
        Percent Complete: 0%
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
                  Effort: 0.00

    _______________________________________________________

Details:

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.




    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/task/?15391>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]