comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Scale the psf on images.
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Scale the psf on images. [message #89995 is a reply to message #89969] Tue, 13 January 2015 22:50 Go to previous messageGo to previous message
anes.tziamtzis is currently offline  anes.tziamtzis
Messages: 9
Registered: January 2015
Junior Member
Hi Russel,

Thanks a lot for your tip. I need to ask sometihng extra. I used the following:
fits_read, 'im1.fits',image1,header1
fits_read, 'im2.fits',image2,header2
fits_read, 'im1.fits.psf.1.fits',image3,header3
fits_read, 'im2.fits.psf.1.fits',image4,header4

;Compute the difference kernel
psf1=fft(image3)
psf2=fft(image4)

kernel = REAL_PART(FFT(psf1/psf2, /INVERSE))

image2_prime = convolve(image2, kernel)
diff = image1 - image2_prime

WRITEFITS,'im_conv.fits',diff,header1


end

No stars are seen in the resulting image, but the background has crazy values. The range is from -9e-8 to 9e8. What i have done wrong here?
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Bring back FINDFILE() !
Next Topic: debugging with new variables (dictionary, hash, ...)

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 13:58:23 PDT 2025

Total time taken to generate the page: 0.00434 seconds