<p>I have used the (matlab/octave) SOFA routine/function iauEpv00 to get the barycentric position and velocity of the Earth, but now need to find barycentric position of the sun. Can't seem to find the right routine/function.</p>

CC BY-SA 3.0
2016-12-15T22:50:44.307Z
Thanks for replying Barry. I have thought of that, but I'm using Octave in Windows. There is a special port of the SPICE functions into Matlab called MICE. To use MICE in Linux you have to do some compiling (see [link](https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/MATLAB/req/mice.html#Use%20of%20Mice%20with%20Octave).  I have no idea how to get MICE to work in Octave/Windows.
user46655
CC BY-SA 3.0
2016-12-15T23:02:00.667Z
I am hoping that I've missed a simple program, maybe in SOFA, that can be used, like iauEpv00 for the earth, which works well.
user46655
CC BY-SA 3.0
2016-12-16T01:46:26.267Z
Barry, you're right! Thanks. Still a lot to learn.
user46655
<the-sun>
How do I calculate the barycentric position of the sun at a given julian date?
user46655
# How do I calculate the barycentric position of the sun at a given julian date?

(Asked by: username_0 on 2016-12-14)

I have used the (matlab/octave) SOFA routine/function iauEpv00 to get the barycentric position and velocity of the Earth, but now need to find barycentric position of the sun. Can't seem to find the right routine/function.

**Tags:** the-sun

> **Comments:**
> **username_0**: Thanks for replying Barry. I have thought of that, but I'm using Octave in Windows. There is a special port of the SPICE functions into Matlab called MICE. To use MICE in Linux you have to do some compiling (see [link](https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/MATLAB/req/mice.html#Use%20of%20Mice%20with%20Octave).  I have no idea how to get MICE to work in Octave/Windows.  
> **username_0**: I am hoping that I've missed a simple program, maybe in SOFA, that can be used, like iauEpv00 for the earth, which works well.  
> **username_0**: Barry, you're right! Thanks. Still a lot to learn.  

---

## 0 answers

