-
Notifications
You must be signed in to change notification settings - Fork 13
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
Compute the position and velocity of the spacecraft #122
Conversation
This modification will ensure that different part of the code will use the same coordinate system when interfacing AstroPy.
I have made some modifications to I changed a bit the API, namely:
What's missing are tests and documentation. |
…cecraft.py (compute_velocities)
I have no experience with numba so far, so maybe this is a stupid question about the dipole calculation: does the level of approximation really make a significant difference as far as performance is concerned? |
Hi Martin, I'll give my answer and then let @paganol to comment. I agree that there should be no appreciable difference in the running time of the many implementations of the dipole estimator. However, if we want to do comparisons with results produced by other existing codes, there are chances that those codes use different conventions to compute the dipole. Having a reasonable set of models implemented in our framework could help people in doing meaningful comparisons with other estimates. Moreover, it might be interesting to compare the estimates between a rough model and a more refined model. If we discover that some correction is negligible, then this might be a hint for theoreticians working on LiteBIRD that it's ok to use a more simplified formula in their calculations. |
Hi @mreineck, I agree with @ziotom78's comment. Different approximations have probably similar running time. I think the reason for having them implemented is in the possibility of testing the impact of higher-order corrections, like frequency-dependent kinematic quadrupole. For example, those terms might have an impact on calibration and, with this implementation, we can test it. |
Thanks a lot for the explanations! |
This is done to ensure that the extended tests (PR #126) are in place.
With the new Numba-based binner, the test runs in ~1/3 of the time.
The function now accepts a list of Observation instances as well as one instance.
When finished, this PR will implement a module that will simulate the orbit of the LiteBIRD spacecraft around the L2 point. It will be used to simulate the observability of Solar System objects as well as the computation of the solar/orbital dipole.
DEFAULT_COORDINATE_SYSTEM
in a separate module (coordinates
), so that it can be referenced every time we useastropy.coordinates
;litebird_sim/scanning.py
useDEFAULT_COORDINATE_SYSTEM
instead of hardwiring the coordinate system in the codecompute_l2_pos_and_vel
(compute the location and the velocity of the L2 point)compute_lissajous_pos_and_vel
(compute the location and the velocity of the spacecraft wrt the L2 point)SpacecraftOrbit
dataclasscompute_l2_pos_and_vel
andcompute_lissajous_pos_and_vel
with theObservation
class, so that the caller can know the position and velocity of the spacecraft at the time of an observation