R/eqpole.R

eqpole = function(l,b,southpole=F) {
  radeg = 180/pi
  if(southpole){
    l1 = -l/radeg
    b1 = -b/radeg
  } else {
    l1 = l/radeg
    b1 = b/radeg
  }
  
  sq = 2*(1 - sin(b1))

  sq[sq<0] = 0.0
  r = 18.0e0*3.53553391*sqrt(sq)
  y =r*cos(l1)
  x =r*sin(l1)

  return(list(x=x,y=y))
}

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.