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

Sat sim tweaks2 #725

Merged
merged 16 commits into from
Mar 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/toast/instrument.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2019-2023 by the parties listed in the AUTHORS file.
# Copyright (c) 2019-2024 by the parties listed in the AUTHORS file.
# All rights reserved. Use of this source code is governed by
# a BSD-style license that can be found in the LICENSE file.

Expand Down Expand Up @@ -267,6 +267,7 @@ def _position_velocity(self, times):
vel_z = np.zeros(n_sparse, np.float64)
for i, t in enumerate(sparse_times):
atime = astime.Time(t, format="unix")
# Get the satellite position and velocity in the equatorial frame (ICRS)
p, v = coord.get_body_barycentric_posvel("earth", atime)
# FIXME: apply translation from earth center to L2.
pm = p.xyz.to_value(u.kilometer)
Expand Down
Loading