gnuastro-devel
[Top][All Lists]
Advanced

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

[bug #64610] --copykeys of Fits program finds wrong key


From: Mohammad Akhlaghi
Subject: [bug #64610] --copykeys of Fits program finds wrong key
Date: Wed, 30 Aug 2023 07:31:45 -0400 (EDT)

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

                 Summary: --copykeys of Fits program finds wrong key
                   Group: GNU Astronomy Utilities
               Submitter: makhlaghi
               Submitted: Wed 30 Aug 2023 12:31:42 PM BST
                Category: Fits
                Severity: 3 - Normal
              Item Group: Output not reasonable
                  Status: In Progress
                 Privacy: Public
             Assigned to: makhlaghi
             Open/Closed: Open
         Discussion Lock: Any


    _______________________________________________________

Follow-up Comments:


-------------------------------------------------------
Date: Wed 30 Aug 2023 12:31:42 PM BST By: Mohammad Akhlaghi <makhlaghi>
When the input FITS file to '--copykeys' contains keywords that have the same
set of initial characters, but the first key has some extra characters, this
option will mistakenly read the wrong key.

For example this is the input image (output of MakeCatalog), you see that
there are two keywords with 'SBLMAG' as the starting characters of their
name:


$ astfits catalog.fits --hdu=1 | grep SBLMAG
SBLMAGPX=             27.51929 / [mag/pix] Surface brightness limit per pixel.
 
SBLMAG  =             28.56504 / [mag/arcsec^2] Surf. bright. limit in
SBLAREA.


When we give '--copykeys=SBLMAG' to the FITS program, the 'SBLMAGPX' keyword
is going to be copied instead!







    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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