How to convert from PVCoordinates to Geodetic (lat, lon, alt)?

Hi @jamesc

Welcome to the Orekit forum!

You can follow the following steps:

  1. Create the Earth model

OneAxisEllipsoid earth = new OneAxisEllipsoid(Constants.WGS84_EARTH_EQUATORIAL_RADIUS, Constants.WGS84_EARTH_FLATTENING, FramesFactory.getITRF(IERSConventions.IERS_2010, false));

  1. Giving a CartesianOrbit nammed orbit, transform it to a GeodeticPoint using the Earh model

GeodeticPoint point = earth.transform(orbit.getPosition(), orbit.getFrame(), orbit.getDate());

  1. Get the lat/lon/alt values
double lat = point.getLatitude();
double lon = point.getLongitude();
double alt = point.getAltitude();

Best regards,
Bryan

2 Likes