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

Wise fov rotation #110

Merged
merged 2 commits into from
Sep 5, 2024
Merged

Wise fov rotation #110

merged 2 commits into from
Sep 5, 2024

Conversation

dahlend
Copy link
Collaborator

@dahlend dahlend commented Sep 5, 2024

The FOVs for WISE were being loaded as 0 degree rotations. This changes FOV construction to use the corners plus a little padding.

Along the way this also adjusts the integration initial guess step size from 1 day to 0.1 day, this GREATLY increases numerical stability when beginning propagation near a planet.

@@ -180,7 +180,7 @@ where
integrator.metadata,
));
}
let mut next_step_size: f64 = 1.0_f64.copysign(integrator.final_time - integrator.cur_time);
let mut next_step_size: f64 = 0.1_f64.copysign(integrator.final_time - integrator.cur_time);
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This tiny adjustment let to a reduction in 50km discretization noise on propagation near earth.

@@ -156,8 +156,8 @@ impl From<fov::FOV> for AllowedFOV {

#[pymethods]
impl PyWiseCmos {
#[new]
pub fn new(
#[staticmethod]
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Keeping the old constructor, but downgrading it from the main constructor to just 'from_pointing'.

patch,
observer,
frame_num,
rotation: f64::NAN,
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would have like to removed this variable, but backwards compatibility makes this not possible currently.

@dahlend dahlend merged commit 71ee5db into main Sep 5, 2024
2 checks passed
@dahlend dahlend deleted the wise_fov_rot branch September 5, 2024 03:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant