org.esa.snap.engine_utilities.eo.GeoUtils.geo2xyz()方法的使用及代码示例

x33g5p2x  于2022-01-20 转载在 其他  
字(3.6k)|赞(0)|评价(0)|浏览(66)

本文整理了Java中org.esa.snap.engine_utilities.eo.GeoUtils.geo2xyz()方法的一些代码示例,展示了GeoUtils.geo2xyz()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。GeoUtils.geo2xyz()方法的具体详情如下:
包路径:org.esa.snap.engine_utilities.eo.GeoUtils
类名称:GeoUtils
方法名:geo2xyz

GeoUtils.geo2xyz介绍

暂无

代码示例

代码示例来源:origin: senbox-org/s1tbx

/**
 * Compute Earth radius (in meters) for given pixel in source image.
 *
 * @param lat The latitude of a given pixel in source image.
 * @param lon The longitude of a given pixel in source image.
 * @return The Earth radius.
 */
private static double computeEarthRadius(float lat, float lon) {
  final double[] xyz = new double[3];
  GeoUtils.geo2xyz(lat, lon, 0.0, xyz, GeoUtils.EarthModel.WGS84);
  return Math.sqrt(xyz[0] * xyz[0] + xyz[1] * xyz[1] + xyz[2] * xyz[2]);
}

代码示例来源:origin: senbox-org/s1tbx

/**
 * Compute accurate target geo position.
 *
 * @param latMid   The scene latitude.
 * @param lonMid   The scene longitude.
 * @param slrgTime The slant range time of the given pixel.
 * @param data     The orbit data.
 * @return The geo position of the target.
 */
private static GeoPos computeLatLon(final double latMid, final double lonMid, double slrgTime, Orbits.OrbitVector data) {
  final double[] xyz = new double[3];
  final GeoPos geoPos = new GeoPos(latMid, lonMid);
  // compute initial (x,y,z) coordinate from lat/lon
  GeoUtils.geo2xyz(geoPos, xyz);
  // compute accurate (x,y,z) coordinate using Newton's method
  GeoUtils.computeAccurateXYZ(data, xyz, slrgTime);
  // compute (lat, lon, alt) from accurate (x,y,z) coordinate
  GeoUtils.xyz2geo(xyz, geoPos);
  return geoPos;
}

代码示例来源:origin: senbox-org/s1tbx

/**
 * Compute accurate target geo position.
 *
 * @param latMid   The scene latitude.
 * @param lonMid   The scene longitude.
 * @param slrgTime The slant range time of the given pixel.
 * @param data     The orbit data.
 * @return The geo position of the target.
 */
private static GeoPos computeLatLon(final double latMid, final double lonMid, double slrgTime, Orbits.OrbitVector data) {
  final double[] xyz = new double[3];
  final GeoPos geoPos = new GeoPos(latMid, lonMid);
  // compute initial (x,y,z) coordinate from lat/lon
  GeoUtils.geo2xyz(geoPos, xyz);
  // compute accurate (x,y,z) coordinate using Newton's method
  GeoUtils.computeAccurateXYZ(data, xyz, slrgTime);
  // compute (lat, lon, alt) from accurate (x,y,z) coordinate
  GeoUtils.xyz2geo(xyz, geoPos);
  return geoPos;
}

代码示例来源:origin: senbox-org/s1tbx

/**
 * Compute accurate target geo position.
 *
 * @param latMid   The scene latitude.
 * @param lonMid   The scene longitude.
 * @param slrgTime The slant range time of the given pixel.
 * @param data     The orbit data.
 * @return The geo position of the target.
 */
private static GeoPos computeLatLon(final double latMid, final double lonMid, double slrgTime, Orbits.OrbitVector data) {
  final double[] xyz = new double[3];
  final GeoPos geoPos = new GeoPos(latMid, lonMid);
  // compute initial (x,y,z) coordinate from lat/lon
  GeoUtils.geo2xyz(geoPos, xyz);
  // compute accurate (x,y,z) coordinate using Newton's method
  GeoUtils.computeAccurateXYZ(data, xyz, slrgTime);
  // compute (lat, lon, alt) from accurate (x,y,z) coordinate
  GeoUtils.xyz2geo(xyz, geoPos);
  return geoPos;
}

代码示例来源:origin: senbox-org/s1tbx

/**
 * Compute accurate target geo position.
 *
 * @param refLat   The scene latitude.
 * @param refLon   The scene longitude.
 * @param slrgTime The slant range time of the given pixel.
 * @param data     The orbit data.
 * @return The geo position of the target.
 */
private static GeoPos computeLatLon(final double refLat, final double refLon, double slrgTime, Orbits.OrbitVector data) {
  final double[] xyz = new double[3];
  final GeoPos geoPos = new GeoPos(refLat, refLon);
  // compute initial (x,y,z) coordinate from lat/lon
  GeoUtils.geo2xyz(geoPos, xyz);
  // compute accurate (x,y,z) coordinate using Newton's method
  GeoUtils.computeAccurateXYZ(data, xyz, slrgTime);
  // compute (lat, lon, alt) from accurate (x,y,z) coordinate
  GeoUtils.xyz2geo(xyz, geoPos);
  return geoPos;
}

代码示例来源:origin: senbox-org/s1tbx

GeoUtils.geo2xyz(phiLamHeight[0] * Constants.RTOD, phiLamHeight[1] * Constants.RTOD, phiLamHeight[2], xyz, GeoUtils.EarthModel.GRS80);

相关文章