Guest User

Untitled

a guest
Oct 20th, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. %% plate scale,pixel size = 0.6 arcseconds/pixel
  2. p = 1/0.6
  3.  
  4. %% Radius of the Sun/Earth-Sun distance
  5. a = 0.0046491838
  6.  
  7. %% scaling factor, converting it to degrees
  8. s = a*p*3600*0.640365
  9.  
  10. %% Central pixels
  11. xC = 2048;
  12. yC = 2048;
  13.  
  14. %% latitude and longitude
  15. l = 0
  16. b = -90
  17.  
  18. x = round((b*s*cos((l*pi)/180))+xC)
  19. y = round((l*s)+yC)
Add Comment
Please, Sign In to add comment