taskGNU Astronomy Utilities - Tasks: task #15551, Fits program, print checksum and...

 
 

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

task #15551: Fits program, print checksum and datasum on stdout

Submitter:  Mohammad Akhlaghi <makhlaghi>
Submitted:  Tue 18 Feb 2020 11:49:24 AM UTC
   
 
Should Start On:  Tue 18 Feb 2020 12:00:00 AM UTC Should be Finished on:  Tue 18 Feb 2020 12:00:00 AM UTC
Category:  Fits Priority:  5 - Normal
Item Group:  Enhancement Status:  Postponed
Privacy:  Public Assigned to:  makhlaghi
Percent Complete:  100% Open/Closed:  Closed
Effort:  0.00

Wed 19 Feb 2020 02:59:03 AM UTC, comment #1: 

The `--datasum' option (which will print the datasum on stdout) was added to the Fits program after version 0.11, so that part is already done.  However, the `--checkum' option wasn't implemented and after looking into it, I recognized that by its definition, the FITS CHECKSUM keyword is primarily meant to be used as a keyword, not on the standard output.

The reason is that by definition, if CHECKSUM is already present and nothing has been changed in the file, the checksum will be zero! If its not present, then adding it will change the newly calculated value.

Mohammad Akhlaghi <makhlaghi>
Group administrator
Tue 18 Feb 2020 11:49:24 AM UTC, original submission:  

Currently the only way to calculate the FITS CHECKSUM and DATASUM  keywords in the FITS program is through writing them in the headers!!!

But this is very bad when you don't actually want to modify the file. We should add two options to only calculate them and print them on the standard output. CFITSIO already has the necessary function: `fits_get_chksum' (and `fits_encode_chksum' to encode the checksum intiger into a string).

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 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-02-19 makhlaghi Percent Complete0% 100%
        Assigned toNone makhlaghi
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code