gnuastro-devel
[Top][All Lists]
Advanced

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

[task #15821] Option to copy full header keywords from input into output


From: Mohammad Akhlaghi
Subject: [task #15821] Option to copy full header keywords from input into output
Date: Wed, 25 Nov 2020 17:48:13 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:83.0) Gecko/20100101 Firefox/83.0

URL:
  <https://savannah.gnu.org/task/?15821>

                 Summary: Option to copy full header keywords from input into
output
                 Project: GNU Astronomy Utilities
            Submitted by: makhlaghi
            Submitted on: Wed 25 Nov 2020 10:48:12 PM UTC
         Should Start On: Wed 25 Nov 2020 12:00:00 AM UTC
   Should be Finished on: Wed 25 Nov 2020 12:00:00 AM UTC
                Category: Fits
                Priority: 5 - Normal
              Item Group: Enhancement
                  Status: None
                 Privacy: Public
        Percent Complete: 0%
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
                  Effort: 0.00

    _______________________________________________________

Details:

Currently there is no easy way in the Fits program
<http://www.gnu.org/software/gnuastro/manual/html_node/Fits.html> to
identically copy multiple keywords from one FITS file/HDU into another
file/HDU. 

There was a simple example with '--asis' for copying one keyword. But not
many. So in Commit d5542488
<http://git.savannah.gnu.org/cgit/gnuastro.git/commit/?id=d5542488> I just
added an example to use '--asis' for many keys. 

Further more, I just added an implementation of that example in copy-keys.sh
<https://gitlab.com/makhlaghi/useful-scripts/-/blob/master/copy-keys.sh> (in
my Useful scripts <https://gitlab.com/makhlaghi/useful-scripts> project, for
things I haven't yet had time to implement in Gnuastro!). 

But this is much easier/faster done inside the FITS program. With this task, I
am proposing to add an option like '--keytoout' for this job that is called
like below. In that command, the 'KEYA' and 'KEYB' of 'input.fits' will be
copied directly into the 'out.fits' (HDU 1). 


astfits input.fits --keytoout=KEYA,KEYB --output=out.fits --outhdu=1





    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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