Replies: 5 comments
-
it’s a regular ascii file, not a FITS file. |
Beta Was this translation helpful? Give feedback.
-
It is indeed an ASCII file, each line ending with a linefeed (e.g.,on Linux). Note that both SWarp and SExtractor override the values of the FITS keywords of an input FITS image header with those from a .head file with the same prefix located in the same directory (you can check that such a .head file has been taken into account by looking for the Now, you may also want to transfer the WCS parameters from the .head file to the original image file. For this you may either use the missfits package, or if you prefer to use Python, read the .head file with the Header.fromfile method from the io.fits module of AstroPy. |
Beta Was this translation helpful? Give feedback.
-
Thanks both of you for you help. |
Beta Was this translation helpful? Give feedback.
-
Re-opening and moving to discussions. |
Beta Was this translation helpful? Give feedback.
-
Hi @tosaric |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
How to read .head file? Fits complains that it is not valid fits file, and I want to read it so I can create wcs and use it to convert pixel coordinates to sky coordinates
Beta Was this translation helpful? Give feedback.
All reactions