R/lsf_rotate.R

lsf_rotate=function( deltav, vsini, epsilon=0.6){

  e1 = 2.0*(1.0 - epsilon)
  e2 = pi*epsilon/2.0
  e3 = pi*(1.0 - epsilon/3.0)
  

  npts = ceiling(2*vsini/deltav)

  if(npts %% 2==0 )npts = npts +1
  nwid = npts%/%2
  cat('nwid=',nwid)
  x = (0:(npts-1)- nwid)
  x = x*deltav/vsini  

  x1 = abs(1.0 - x^2)
  return((e1*sqrt(x1) + e2*x1)/e3)
  
}   

Try the astrolibR package in your browser

Any scripts or data that you put into this service are public.

astrolibR documentation built on May 2, 2019, 3:26 a.m.