bugGNU Astronomy Utilities - Bugs: bug #64825, astscript-fits-view only takes the...


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

bug #64825: astscript-fits-view only takes the last HDU provided

Submitter:  Raul Infante-Sainz <infantesainz>
Submitted:  Fri 27 Oct 2023 09:37:14 AM UTC
Category:  Installed scripts Severity:  3 - Normal
Item Group:  Output not reasonable Status:  Fixed
Privacy:  Public Assigned to:  infantesainz
Open/Closed:  Closed

Thu 14 Dec 2023 11:22:58 AM UTC, comment #2: 

Thanks Raul, it has been merged into the master branch in Commit 4d3b55a28 :-).

Mohammad Akhlaghi <makhlaghi>
Group administrator
Thu 14 Dec 2023 08:25:05 AM UTC, comment #1: 

Bug fixed in my Gnuastro fork. Please have a look and merge it if you consider it is fine. Thanks!


Raul Infante-Sainz <infantesainz>
Group Member
Fri 27 Oct 2023 09:37:14 AM UTC, original submission:  

The script astscript-fits-view only considers the last HDU when multiple HUDs are provided.

If I run the command

astscript-fits-view $ima1 -hOBJECTS $ima1 -hCLUMPS $ima2 -hOBJECTS $ima2 -hCLUMPS

I only get clumps images in the output and the console returns this:

Running: ds9 -scale mode zscale -geometry 810x1080 -wcs degrees seg1.fits[CLUMPS] seg1.fits[CLUMPS] seg2.fits[CLUMPS] seg2.fits[CLUMPS] -lock slice image -lock frame image -zoom to fit -cmap sls -match frame colorbar -colorbar lock yes -view multi no

It seems that only the last instance of calling -h is applied to all inputs. Moving the commands around to call -hOBJECTS in the last position seems to confirm this, as then only objects images are displayed.

Bug reported by Teet Kuutma.

Raul Infante-Sainz <infantesainz>
Group Member


(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 (Posted a comment)
  • -email is unavailable- added by infantesainz (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
    2023-12-14 makhlaghi StatusNone Fixed
        Assigned toNone infantesainz
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-04b1.
    Corresponding source code