GNU 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: |
Mohammad Akhlaghi <makhlaghi> |
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!!!
|
Mohammad Akhlaghi <makhlaghi> |
No files currently attached
Depends on the following items: None found
Items that depend on this one: None found
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 Complete | 0% | 100% | |
Assigned to | None | makhlaghi | |||
Open/Closed | Open | Closed |
Powered by Savane 3.13-4b48.
Corresponding source code
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.