Welcome to iraf.net Friday, May 03 2024 @ 06:58 PM GMT


 Forum Index > Help Desk > General IRAF New Topic Post Reply
 WCS question
   
Anonymous: Guest
 12/08/2007 12:48AM (Read 4466 times)  



Travis Rector suggested that I send this question to you...We are trying to understand a particular aspect of WCS header
construction and interpretation. Suppose that you have a very simple
header where only the diagonal elements of CDn_n (or the CDELTn
keywords) are specified, and no rotation of the image is prescribed.
As we understand it, the CDELTn can then be interpreted as degrees-
per-pixel along each axis of the image. (Assuming that we're
"nowhere near" the celestial pole!) If CTYPE1 = 'RA---TAN', then is
the cos(dec) correction supposed to be already included in the CD1_1
value, or is this supposed to be calculated by the FITS reader
software? In other words, what is the standard in this regard?Also, do you have a feel for whether there are groups out there that
are not following the standard? If there are, then how is the FITS
reader software supposed to determine whether or not to apply the
correction?Thanks,
Andy Puckett
puck@uaa.alaska.eduPostdoctoral Fellow
University of Alaska Anchorage

 
 Quote
valdes
 12/08/2007 12:48AM  
+++++
Active Member

Status: offline


Registered: 11/11/2005
Posts: 728
Hi Andy,The quesiton about where the pole is doesn't enter until the tangent plane projection is appliled. So what the scale terms (CD and CDELT) mean is the degrees per pixel at the tangent point defined by CRVALn and CRPIXn. Cos(dec) doesn't enter in this. Normally, and because the TAN project only makes sense when, the tangent point is near the image and often near the center of the field. So the scale terms really mean the scale at the tangent point. Another way to understand this is that the FITS model uses a coordinate expansion about the tangent point. Near the tangent point the coordinate system is linear and then the non-linearities are accounted for as a second step when the projection is applied.I hope I clarified more than I might have confused. The tangent plane WCS, as defined by the RA--TAN/DEC-TAN values, is generally correctly used and implemented in all FITS reader and writer software.

 
Profile Email
 Quote
puck2017
 12/08/2007 12:48AM  
+----
Newbie

Status: offline


Registered: 12/10/2007
Posts: 2
Yes, that answers my basic question. But here's a follow-up. Suppose that someone has misunderstood this standard, and decided that the cos(dec) correction should be encoded into the CD matrix or CDELT values in the header. They manage to do this somehow by circumventing the normal FITS writing routines, by writing the header themselves or by telling the telescope-control computer to write it into every image. The FITS reader would not expect this, and would incorrectly interpret the physical coordinates of the image?The reason I ask is that I have some legacy Java code for use with ImageJ, which translates from pixel to celestial coordinates. The code does not follow the standard as you've described it, so the images that have been used with the code have been altered to match (so they don't follow the standard either). I think what I need is information on how the tangent planet projection (or deprojection?) should be applied. Can you point me to a reference?

 
Profile Email
 Quote
valdes
 12/08/2007 12:48AM  
+++++
Active Member

Status: offline


Registered: 11/11/2005
Posts: 728
Hi Andy,First, within IRAF you can do some interesting things with HEDIT because the value can be an expression with other values. So if a keyword needs to be multipled by cos of another keyword that can be done fairly painlessly.As they say, be careful what you wish for. The references you want may be found at:http://fits.gsfc.nasa.gov/fits_wcs.htmlIn particular, paper 1 and paper 2. Paper 1 gives the basic concepts such as that a linear approximation at the reference point defines most of the keywords and then some projection is applied to that. Paper 2 is all the details of celestial coordinates and projections and it is big and full of equations, etc.Frank

 
Profile Email
 Quote
   
Content generated in: 0.11 seconds
New Topic Post Reply

Normal Topic Normal Topic
Sticky Topic Sticky Topic
Locked Topic Locked Topic
New Post New Post
Sticky Topic W/ New Post Sticky Topic W/ New Post
Locked Topic W/ New Post Locked Topic W/ New Post
View Anonymous Posts 
Anonymous users can post 
Filtered HTML Allowed 
Censored Content 
dog allergies remedies cialis 20 mg chilblain remedies


Privacy Policy
Terms of Use

User Functions

Login