gnuastro-devel
[Top][All Lists]
Advanced

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

[gnuastro-devel] [bug #49629] Automatic output suffix doesn't work with


From: Mohammad Akhlaghi
Subject: [gnuastro-devel] [bug #49629] Automatic output suffix doesn't work with .fits.gz inputs
Date: Wed, 16 Nov 2016 22:28:02 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0

URL:
  <http://savannah.gnu.org/bugs/?49629>

                 Summary: Automatic output suffix doesn't work with .fits.gz
inputs
                 Project: GNU Astronomy Utilities
            Submitted by: makhlaghi
            Submitted on: Thu 17 Nov 2016 07:28:00 AM JST
                Category: All Gnuastro
                Severity: 3 - Normal
              Item Group: Output not reasonable
                  Status: Postponed
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

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





    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?49629>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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