@@ -47,7 +47,7 @@ fn main() -> Result<(), Box<dyn Error>> {
4747 // This allows the frame to include the gravitational parameters and the shape of the Earth,
4848 // defined as a tri-axial ellipoid. Note that this shape can be changed manually or in the Almanac
4949 // by loading a different set of planetary constants.
50- let earth_j2000 = almanac. frame_from_uid ( EARTH_J2000 ) ?;
50+ let earth_j2000 = almanac. frame_info ( EARTH_J2000 ) ?;
5151
5252 let orbit =
5353 Orbit :: try_keplerian_altitude ( 300.0 , 0.015 , 68.5 , 65.2 , 75.0 , 0.0 , epoch, earth_j2000) ?;
@@ -121,7 +121,7 @@ fn main() -> Result<(), Box<dyn Error>> {
121121 // The harmonics must be computed in the body fixed frame.
122122 // We're using the long term prediction of the Earth centered Earth fixed frame, IAU Earth.
123123 let harmonics_21x21 = Harmonics :: from_stor (
124- almanac. frame_from_uid ( IAU_EARTH_FRAME ) ?,
124+ almanac. frame_info ( IAU_EARTH_FRAME ) ?,
125125 HarmonicsMem :: from_cof ( & jgm3_meta. uri , 21 , 21 , true ) . unwrap ( ) ,
126126 ) ;
127127
@@ -199,7 +199,7 @@ fn main() -> Result<(), Box<dyn Error>> {
199199 40.014984 , // latitude in degrees
200200 -105.270546 , // longitude in degrees
201201 1.6550 , // altitude in kilometers
202- almanac. frame_from_uid ( IAU_EARTH_FRAME ) ?,
202+ almanac. frame_info ( IAU_EARTH_FRAME ) ?,
203203 ) ;
204204
205205 // We iterate over the trajectory, grabbing a state every two minutes.
0 commit comments