[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnuastro-devel] [bug #50073] ImageWarp 'rotate' does not correctly prop
From: |
Mohammad Akhlaghi |
Subject: |
[gnuastro-devel] [bug #50073] ImageWarp 'rotate' does not correctly propagate WCS pixel scale information into header |
Date: |
Wed, 18 Jan 2017 01:20:45 +0000 (UTC) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0 |
URL:
<http://savannah.gnu.org/bugs/?50073>
Summary: ImageWarp 'rotate' does not correctly propagate WCS
pixel scale information into header
Project: GNU Astronomy Utilities
Submitted by: leeskelvin
Submitted on: Wed 18 Jan 2017 10:20:44 AM JST
Category: None
Priority: 5 - Normal
Severity: 3 - Normal
Item Group: None
Status: None
Privacy: Public
Assigned to: None
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Operating System: None
_______________________________________________________
Details:
On applying an image rotation using ImageWarp, the World Coordinate System
(WCS) pixel scale information is only partially transferred to the output
image.
The attached image 'input.fits' is a 3x3 pixel image with WCS information in
the header defined using the CDi_j FITS standard formalism. The pixel scale
for this image is 0.339 arcsec/pixel, i.e., 9.4166667e-5 degrees/pixel.
A 360-degree image rotation is performed on this image using the command:
astimgwarp --rotate=360 input.fits
This produces the output image 'image_warped.fits', attached to this report.
The pixel flux values have been correctly preserved, and the output image is
aligned precisely with the input image, as expected for a 360-degree rotation.
WCS information in the rotated image header has been translated from the CDi_j
formalism to the PCi_j formalism. This requires not only PC1_1 and PC2_2 in
the header, but also CDELT1 and CDELT2 values. CDELTn values describe the
"physical increment at the reference pixel", giving the pixel scale in degrees
per pixel.
Whilst the pixel scale is correctly preserved in the output PCi_j header
values, both CDELTn values are equal to 1, incorrectly implying that each
pixel is 1 degree in size. This creates problems in, e.g., DS9 when viewing
the two files attached to this report side by side and matching by WCS. I
would expect the pixel scale to be correctly propagated through to the output
header CDELTn parameters.
Regards,
Lee Kelvin
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?50073>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [gnuastro-devel] [bug #50073] ImageWarp 'rotate' does not correctly propagate WCS pixel scale information into header,
Mohammad Akhlaghi <=