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

Home » Public Forums » archive » Re: convolution of vsini
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: convolution of vsini [message #82932] Wed, 23 January 2013 12:20
abc is currently offline  abc
Messages: 46
Registered: March 2011
Member
On Wednesday, January 23, 2013 5:49:33 PM UTC+1, wlandsman wrote:
> The IDL astronomy library has the function LSF_ROTATE
>
>
>
> http://idlastro.gsfc.nasa.gov/ftp/pro/astro/lsf_rotate.pro
>
>
>
> to return a convolution kernel for rotating a stellar spectrum under typical assumptions (e.g. constant limb darkening). You can use one of the many interpolation routines (e.g. interpol()) to do the interpolation.
>
>
>
> On Wednesday, January 23, 2013 7:10:12 AM UTC-5, idlhelp wrote:
>
>> Does anyone know the IDL routine with the help of which I can first do the interpolation onto a wavelength grid and then get the kernel for vsini and then finally interpolate back onto my original wavelength grid.
>
>>
>
>>
>
>>
>
>> thanks

thanks,
I am using that library. I have checked the program with different vsini values. The only things which I didn't understand is the there is a huge offset in the flux at vsini=0.0 and vsin=10 km/sec. I didn't figure it out where I am making mistake. And this is how I am performing the calculation


dlambda = vsini/c
npoints = ALOG(lammax/lammin)/dlambda+1
interlam = lammin * EXP(dlambda * (DINDGEN(npoints)-1))
interflux = INTERPOL( flux, lam, interlam )

and then get the kernel as
lsf = lsf_rotate(delta_V, vsini)
fold = CONVOL( interflux, lsf, /CENTER, /EDGE_TRUNCATE)
flux_new=INTERPOL(fold,interlam,wave)
Re: convolution of vsini [message #82935 is a reply to message #82932] Wed, 23 January 2013 08:49 Go to previous message
wlandsman is currently offline  wlandsman
Messages: 743
Registered: June 2000
Senior Member
The IDL astronomy library has the function LSF_ROTATE

http://idlastro.gsfc.nasa.gov/ftp/pro/astro/lsf_rotate.pro

to return a convolution kernel for rotating a stellar spectrum under typical assumptions (e.g. constant limb darkening). You can use one of the many interpolation routines (e.g. interpol()) to do the interpolation.

On Wednesday, January 23, 2013 7:10:12 AM UTC-5, idlhelp wrote:
> Does anyone know the IDL routine with the help of which I can first do the interpolation onto a wavelength grid and then get the kernel for vsini and then finally interpolate back onto my original wavelength grid.
>
>
>
> thanks
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Region_Grow kills IDL Workbench on Windows
Next Topic: rounding numbers

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

Current Time: Wed Oct 08 18:35:39 PDT 2025

Total time taken to generate the page: 0.00396 seconds