Welcome to iraf.net Thursday, May 02 2024 @ 03:28 PM GMT


 Forum Index > Help Desk > General IRAF New Topic Post Reply
 imalign: image shift not working?
   
nick
 01/29/2014 01:28AM (Read 3075 times)  
+----
Newbie

Status: offline


Registered: 01/06/2014
Posts: 3
Hi,
I'm using IRAF again after a long break, so there's probably a simple solution to this problem but I'm stumped:
I'm using imalign to register some dithered images. It finds a good alignment solution for each image, but I can't get it to perform the shift: the output images are trimmed but not shifted (i'm using shiftimages=yes, and imalign informs me that it's shifting the images). I also noticed that the output image files are nearly twice the size of the originals, but seem to have just one HDU corresponding to the unshifted images.

I'm running v2.16.1 on 32-bit Debian.

Thanks,
Nick

 
Profile Email
 Quote
fitz
 01/29/2014 04:03PM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
Could you upload some sample data files and the parameters you are using to the anonftp at ftp://iraf.noao.edu/pub so we can try to reproduce the problem? Also, how big are the expected shifts and what are you using to determine they haven't been shifted?

 
Profile Email
 Quote
nick
 01/29/2014 04:39PM  
+----
Newbie

Status: offline


Registered: 01/06/2014
Posts: 3
Sure - thanks. I've uploaded a file nick.zip containing some samples. I'm trying to align the three images image_{1|2|3}.fits. The file ref_sources contains coordinates of sources in the reference image (image_3), and the file estimated_shifts contains approximate shifts for each image with respect to the reference. I'm aligning them using:

PHP Formatted Code

cl> imalign @images_in image_3.fits ref_sources output=@images_out shifts=estimated_shifts shiftimages=yes
 


This is some of the output I get:


#Shifts Image X-shift Err Y-shift Err N Internal
image_1.fits 81.943 (0.115) 2.022 (0.112) 10 (0.208,0.165)
image_2.fits 45.053 (0.129) 1.118 (0.137) 8 (0.256,0.208)
image_3.fits 0.000 (0.052) 0.000 (0.044) 10 (0.000,0.000)

#Trim_Section = [83:2048,4:2048]

# Shifting images:

# Trimming images: corrected section = [83:2048,4:2048]


The output images are image_{1|2|3}_aligned.fits. When I view them using gaia or other image software (gimp), the sources are all still at their original pixel coordinates. When I combine the images using imcombine, each source is duplicated because the images aren't aligned.

Cheers,
Nick

 
Profile Email
 Quote
nick
 02/24/2014 03:11PM  
+----
Newbie

Status: offline


Registered: 01/06/2014
Posts: 3
Just to follow up on this, in case anyone else has a similar problem:

I eventually figured out what was happening. The estimated shifts I gave had the wrong sign, so imcentroid was looking in the wrong direction for an alignment solution. When I changed the sign on the shifts the images were aligned correctly. It was confusing because even though the initial shift estimates were wrong, imcentroid didn't report a problem and converged on an incorrect solution that was close enough to the (wrong) initial shift estimate that it looked right. Anyway, all sorted now.

 
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