satHeadingAngle = degreesToRadians(satEphemHeading[swathIndex]); gcLatitude = EllipsoidalEarthModel.geodeticToGeocentric(gdLatitude); gcLongitude = gdLongitude; sinLon = Math.sin(gcLongitude); earthRadius = EllipsoidalEarthModel.earthRadiusKm(gcLatitude); north[2] = EllipsoidalEarthModel.earthRadiusKm(PI / 2.0) - subSatPoint[2]; earthMajorAxis = EllipsoidalEarthModel.earthRadiusKm(0.0); earthMinorAxis = EllipsoidalEarthModel.earthRadiusKm(PI / 2.0);
satHeadingAngle = degreesToRadians(satEphemHeading[swathIndex]); gcLatitude = EllipsoidalEarthModel.geodeticToGeocentric(gdLatitude); gcLongitude = gdLongitude; sinLon = Math.sin(gcLongitude); earthRadius = EllipsoidalEarthModel.earthRadiusKm(gcLatitude); north[2] = EllipsoidalEarthModel.earthRadiusKm(PI / 2.0) - subSatPoint[2]; earthMajorAxis = EllipsoidalEarthModel.earthRadiusKm(0.0); earthMinorAxis = EllipsoidalEarthModel.earthRadiusKm(PI / 2.0);
satHeadingAngle = degreesToRadians(satEphemHeading[swathIndex]); gcLatitude = EllipsoidalEarthModel.geodeticToGeocentric(gdLatitude); gcLongitude = gdLongitude; sinLon = Math.sin(gcLongitude); earthRadius = EllipsoidalEarthModel.earthRadiusKm(gcLatitude); north[2] = EllipsoidalEarthModel.earthRadiusKm(PI / 2.0) - subSatPoint[2]; earthMajorAxis = EllipsoidalEarthModel.earthRadiusKm(0.0); earthMinorAxis = EllipsoidalEarthModel.earthRadiusKm(PI / 2.0);
/** * Return the earth radius in kilometers at the given geocentric latitude. * * @param gcLatitude - the given geocentric latitude * @return the earth radius at the given location in kilometers */ static double earthRadiusKm(double gcLatitude) { return (earthRadius(gcLatitude) * EARTH_MEAN_EQUATORIAL_RADIUS_KM); }
/** * Return the earth radius in kilometers at the given geocentric latitude. * * @param gcLatitude - the given geocentric latitude * @return the earth radius at the given location in kilometers */ static double earthRadiusKm(double gcLatitude) { return (earthRadius(gcLatitude) * EARTH_MEAN_EQUATORIAL_RADIUS_KM); }
/** * Return the earth radius in kilometers at the given geocentric latitude. * * @param gcLatitude - the given geocentric latitude * @return the earth radius at the given location in kilometers */ static double earthRadiusKm(double gcLatitude) { return (earthRadius(gcLatitude) * EARTH_MEAN_EQUATORIAL_RADIUS_KM); }