gnuastro-devel
[Top][All Lists]
Advanced

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

[task #16252] Warp: keep the extra header info from the input image


From: Mohammad Akhlaghi
Subject: [task #16252] Warp: keep the extra header info from the input image
Date: Fri, 9 Sep 2022 04:48:23 -0400 (EDT)

Follow-up Comment #1, task #16252 (project gnuastro):

The new 'gal_warp_align_celestial' function will only take a 'gal_data_t'
(that has WCS) and some paramaters to define its operation (like edge
sampling). It shouldnn't care if the 'gal_data_t' came from a FITS file or
not; or care about keeping keywords! Things related to an input file should be
done in the Warp program's 'ui.c' file ;-).

Within the programs, you will notice that no program keeps the "extra"
keywords of the input! The output only contains the standard FITS+WCS keywords
as well as the program's input parameters and versions. Importing the "extra"
headers of the input is a big mistake and breaks the modularity principle: the
output is a new file after some kind of operation, many of the input keywords
and comments will not be valid any more!

If the user wants certain keywords from the input, they can use the
'--copykeys' feature of astfits ;-).


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/task/?16252>

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




reply via email to

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