gnuastro-devel
[Top][All Lists]
Advanced

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

[bug #60989] MakeProfiles deletes input fits catalog if no output specif


From: Mohammad Akhlaghi
Subject: [bug #60989] MakeProfiles deletes input fits catalog if no output specified
Date: Wed, 28 Jul 2021 22:13:04 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:90.0) Gecko/20100101 Firefox/90.0

URL:
  <https://savannah.gnu.org/bugs/?60989>

                 Summary: MakeProfiles deletes input fits catalog if no output
specified
                 Project: GNU Astronomy Utilities
            Submitted by: makhlaghi
            Submitted on: Thu 29 Jul 2021 03:13:02 AM BST
                Category: MakeProfiles
                Severity: 3 - Normal
              Item Group: Output not reasonable
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

Currently, when no '--output' name is given to MakeProfiles, it will simply
use the input name and make its suffix '.fits'. This is fine for plain-text
tables, but if the input is a FITS file, this behavior results in deleting the
input because it has the same name as the output (as part of preparations for
writing the output). 

As a result, the user is confronted with a CFITSIO error, saying that the
input doesn't exist! Also, when they do an 'ls', they won't see their input
(it is deleted unless '--dontdelete' is given).

This is a bug! To fix it, MakeProfiles should add a certain suffix like
'_profiles.fits', not just '.fits'!




    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?60989>

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




reply via email to

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