Skip to content

Commit

Permalink
Implement IAU1980 nutation (#23)
Browse files Browse the repository at this point in the history
Implements nutation calculation for the IAU 1980 model, and provides the skeleton to calculate nutation for any given model, pending their implementation.
  • Loading branch information
AngusGMorrison authored Nov 20, 2023
1 parent b9130cc commit db93294
Show file tree
Hide file tree
Showing 17 changed files with 727 additions and 86 deletions.
2 changes: 0 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,5 @@ authors = ["Helge Eichhorn and the lox-space contributors"]

[workspace.dependencies]
lox_core = { path = "./crates/lox_core" }
lox_io = { path = "./crates/lox_io" }
lox_py = { path = "./crates/lox_py" }
thiserror = "1.0"

5 changes: 4 additions & 1 deletion crates/lox-space/examples/iss.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@ fn main() {
let velocity = DVec3::new(-660.415582, 5495.938726, -5303.093233) * 1e-3;
let iss = Cartesian::new(epoch, Earth, position, velocity);

println!("ISS Orbit for Julian Day {}", iss.epoch().j2000());
println!(
"ISS Orbit for Julian Day {}",
iss.epoch().days_since_j2000(),
);
println!("=============================");
println!("Semi-major axis: {:.3} km", iss.semi_major());
println!("Eccentricity: {:.6}", iss.eccentricity());
Expand Down
1 change: 1 addition & 0 deletions crates/lox_core/src/bodies.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ mod generated;
pub use generated::*;

pub mod fundamental;
pub mod nutation;

#[derive(Clone, Copy, Debug, Eq, PartialEq)]
#[repr(transparent)]
Expand Down
Loading

0 comments on commit db93294

Please sign in to comment.