bugGNU Astronomy Utilities - Bugs: bug #49629, Automatic output suffix doesn't...

 
 

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

bug #49629: Automatic output suffix doesn't work with .fits.gz inputs

Submitter:  Mohammad Akhlaghi <makhlaghi>
Submitted:  Wed 16 Nov 2016 10:28:00 PM UTC
   
 
Category:  All Gnuastro Severity:  3 - Normal
Item Group:  Output not reasonable Status:  Fixed
Privacy:  Public Assigned to:  makhlaghi
Open/Closed:  Closed

Wed 16 Nov 2016 11:21:26 PM UTC, comment #2: 

This bug is fixed and has been pushed to the main repo. See the commit message for more details.

Mohammad Akhlaghi <makhlaghi>
Group administrator
Wed 16 Nov 2016 10:29:40 PM UTC, comment #1: 

I am very grateful to Antonio Diaz Diaz for pointing out this problem.

Mohammad Akhlaghi <makhlaghi>
Group administrator
Wed 16 Nov 2016 10:28:00 PM UTC, original submission:  

The `gal_checkset_automatic_output' function is in charge of setting the filename of the output filename when the user hasn't specified any.

Currently it starts from the end of the input file name and replaces everything including and after the first `.' it encounters. This works on ordinary `.fits' files, but not on inputs like `.fits.gz' (that CFITSIO also accepts). So for example ConvertType's default output (to convert to Jpeg) on such a file would end with `.fits.jpg'.

To see what I mean, after running `make check' run:


$ cd tests
$ gzip -k ellipticalmasks.fits
$ astconvertt ellipticalmasks.fits
$ astconvertt ellipticalmasks.fits.gz


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
  • -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 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-11-16 makhlaghi StatusPostponed Fixed
        Assigned toNone makhlaghi
        Open/ClosedOpen Closed
        Carbon-Copy- Added -email is unavailable-

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code