Welcome to iraf.net Friday, April 19 2024 @ 06:56 AM GMT


 Forum Index > Help Desk > General IRAF New Topic Post Reply
 How to make two fits file aligned?
   
Matrix
 04/29/2015 02:22PM (Read 2807 times)  
+----
Newbie
gloomy

Status: offline


Registered: 04/29/2015
Posts: 8
I want to get two images aligned first, and then I will merge them, but now I encounter a question: I don't know whether they are aligned or not? In another word, do we have any other methods to do this work? Thank you for your reply.

 
Profile Email
 Quote
fitz
 04/29/2015 03:46PM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
There are multiple ways to align/register images, which is best depends on the type and quality of the data you have. The REFERENCES task can be used to search for tasks you might use, e.g.

cl\$this->_split2($m[0]) refer align
cl\$this->_split2($m[0]) refer register

If you have a list of known pixel shifts of reference objects then you might use something like IMALIGN but beware that setting the centering box sizes can be tricky for some data. If you have a good quality WCS then something like WREGISTER can do a lot of the work for you. To merge the images (e.g. to stack) them IMCOMBINE is the task to use, note it can also use the WCS directly via the 'offset' parameter but the quality of the result depends on the how accurate the WCS is.

 
Profile Email
 Quote
Matrix
 05/11/2015 03:20PM  
+----
Newbie

Status: offline


Registered: 04/29/2015
Posts: 8
Thank you, fits. You said that if I have a good quality WCS then something like WREGISTER can do a lot of the work for you. I have a try, and find it did have some change. But x (or y) shift is so small, like 0.01. So I have a question: this situation can we think the two fits file are aligned alredy? Maybe the little x/y shift is caused by measurement error.

 
Profile Email
 Quote
fitz
 05/11/2015 05:15PM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
If you mean the difference is 0.01 pixels (as opposed to 0.01 degrees in the reference value of the WCS CRVAL keywords) then it is likely these images are already aligned in the WCS. The differences may be due to different seeing conditions leading to different centering values of individual objects, or just roundoff errors if positions are only printed to 2 decimal places. If you want to test it you could subtract the two images to be sure the objects subtract entirely or that the remnant little donuts left behind show the same pattern across the field (indicating just a change in PSF between the two and not a distortion where at the edge of the plates the shift is smaller/larger than elsewhere).

 
Profile Email
 Quote
Matrix
 05/12/2015 02:49AM  
+----
Newbie

Status: offline


Registered: 04/29/2015
Posts: 8
Thank you for your early reply. I was just doing some PSF photometry work. I think when I am familiar with PSF, I will have a test. Many thanks again.

 
Profile Email
 Quote
   
Content generated in: 0.16 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