bugGNU Astronomy Utilities - Bugs: bug #64610, --copykeys of Fits program finds...

 
 

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

bug #64610: --copykeys of Fits program finds wrong key

Submitter:  Mohammad Akhlaghi <makhlaghi>
Submitted:  Wed 30 Aug 2023 11:31:42 AM UTC
   
 
Category:  Fits Severity:  3 - Normal
Item Group:  Output not reasonable Status:  Fixed
Privacy:  Public Assigned to:  makhlaghi
Open/Closed:  Closed

Wed 30 Aug 2023 11:51:16 AM UTC, comment #1: 

This bug has been fixed in Commit 55a59bf8a.

Mohammad Akhlaghi <makhlaghi>
Group administrator
Wed 30 Aug 2023 11:31:42 AM UTC, original submission:  

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!

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 (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 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2023-08-30 makhlaghi StatusIn Progress Fixed
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code