Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

J2000 to Earth Fixed #956

Open
mikefNAMA opened this issue Apr 13, 2024 · 1 comment
Open

J2000 to Earth Fixed #956

mikefNAMA opened this issue Apr 13, 2024 · 1 comment

Comments

@mikefNAMA
Copy link

I am new to Skyfield and python but very impressed with all the hard work that went into creating this package. I'm using my own code to propagate a J2000 state vector relative to the earth. I'd like to rotate that position vector into the earth fixed frame. I'm struggling with how to do that in Skyfield. I know there must be a way. I thought I might be able to do something like this:

time = ts.utc(2024, 4, 8, 16, 39, 25.66)
au = 1.495978707e11
posI = ICRF(position_au=[5411128.46914935/au, 1397726.32920587/au, 3063240.39456669/au],center=earth,t=time)
print('posI: ',posI.position)
posEF = posI.frame_xyz(itrs)
print('posEF: ',posEF)

But no joy.

@brandon-rhodes
Copy link
Member

Could you show which coordinates you are getting back, and explain in a bit more detail what's wrong with them?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants