Welcome to iraf.net Monday, May 13 2024 @ 02:16 PM GMT
snd22 |
01/26/2010 10:34PM (Read 2107 times)
|
|
|
Status: offline
Registered: 01/26/2010
Posts: 2
|
Hello,I have some distortion correction parameters for a particular instrument that are in the SIP format (stored in the headers as "A_m_n", etc.). I would like to convert these parameters to the TNX format (header parameters named "WAT*"). From what I understand, this involves some non-trivial recalculation. Do you know of any task that can do this automatically, or any simple way to do it?Thanks for any help.[/list]
|
|
|
|
valdes |
01/26/2010 10:34PM
|
|
|
Status: offline
Registered: 11/11/2005
Posts: 728
|
Hello,The approach I can suggest is to use a file of (x,y,ra,dec) as the intermediate glue. By this I mean some tool dumps some fitting points based on the SIP WCS and then another tool fits the TNX WCS.The pointers I can give to this are as follows. WCSTOOLS and DS9 I believe can provide a way to create RA/DEC at particular pixel locations. In IRAF the likely tools and packages are CCMAP and MSCTPEAK.While you might think that you have to tie this to actual stars, this kind of transformation can just be done on a nice grid of points. Some of my WCS tools basically just do this. So the recipe is1. Use something in WCSTOOLS to make a list of RA/DEC values at a grid of points across the image. Say 20x20 with endpoints at the first and last row/column.
2. Then these 400 values can be put into CCMAP with parameters saying to fit a TNX function of some order.Later you could use something like MSCTPEAK to tweak a solution based on an actual list of star positions. But the the recipe above will preserve the basic accuracy of the SIP and TNX at the appropriate level of degrees of freedom as long as the grid is of sufficient size.Yours,
Frank Valdes
|
|
|
|
| |
|
Content generated in: 0.07 seconds |
|