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

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

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

GeoUtils.geo2xyzWGS84介绍

暂无

代码示例

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

private void getMstApproxSceneCentreXYZ() throws Exception {
  final int numOfBursts = subSwath[subSwathIndex - 1].numOfBursts;
  mstSceneCentreXYZ = new Point[numOfBursts];
  for (int b = 0; b < numOfBursts; b++) {
    final double firstLineTime = subSwath[subSwathIndex - 1].burstFirstLineTime[b];
    final double lastLineTime = subSwath[subSwathIndex - 1].burstLastLineTime[b];
    final double slrTimeToFirstPixel = subSwath[subSwathIndex - 1].slrTimeToFirstPixel;
    final double slrTimeToLastPixel = subSwath[subSwathIndex - 1].slrTimeToLastPixel;
    final double latUL = su.getLatitude(firstLineTime, slrTimeToFirstPixel, subSwathIndex);
    final double latUR = su.getLatitude(firstLineTime, slrTimeToLastPixel, subSwathIndex);
    final double latLL = su.getLatitude(lastLineTime, slrTimeToFirstPixel, subSwathIndex);
    final double latLR = su.getLatitude(lastLineTime, slrTimeToLastPixel, subSwathIndex);
    final double lonUL = su.getLongitude(firstLineTime, slrTimeToFirstPixel, subSwathIndex);
    final double lonUR = su.getLongitude(firstLineTime, slrTimeToLastPixel, subSwathIndex);
    final double lonLL = su.getLongitude(lastLineTime, slrTimeToFirstPixel, subSwathIndex);
    final double lonLR = su.getLongitude(lastLineTime, slrTimeToLastPixel, subSwathIndex);
    final double lat = (latUL + latUR + latLL + latLR) / 4.0;
    final double lon = (lonUL + lonUR + lonLL + lonLR) / 4.0;
    final PosVector mstSceneCenter = new PosVector();
    GeoUtils.geo2xyzWGS84(lat, lon, 0.0, mstSceneCenter);
    mstSceneCentreXYZ[b] = new Point(mstSceneCenter.toArray());
  }
}

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

private void getMstApproxSceneCentreXYZ() throws Exception {
  final int numOfBursts = subSwath[subSwathIndex - 1].numOfBursts;
  mstSceneCentreXYZ = new Point[numOfBursts];
  for (int b = 0; b < numOfBursts; b++) {
    final double firstLineTime = subSwath[subSwathIndex - 1].burstFirstLineTime[b];
    final double lastLineTime = subSwath[subSwathIndex - 1].burstLastLineTime[b];
    final double slrTimeToFirstPixel = subSwath[subSwathIndex - 1].slrTimeToFirstPixel;
    final double slrTimeToLastPixel = subSwath[subSwathIndex - 1].slrTimeToLastPixel;
    final double latUL = su.getLatitude(firstLineTime, slrTimeToFirstPixel, subSwathIndex);
    final double latUR = su.getLatitude(firstLineTime, slrTimeToLastPixel, subSwathIndex);
    final double latLL = su.getLatitude(lastLineTime, slrTimeToFirstPixel, subSwathIndex);
    final double latLR = su.getLatitude(lastLineTime, slrTimeToLastPixel, subSwathIndex);
    final double lonUL = su.getLongitude(firstLineTime, slrTimeToFirstPixel, subSwathIndex);
    final double lonUR = su.getLongitude(firstLineTime, slrTimeToLastPixel, subSwathIndex);
    final double lonLL = su.getLongitude(lastLineTime, slrTimeToFirstPixel, subSwathIndex);
    final double lonLR = su.getLongitude(lastLineTime, slrTimeToLastPixel, subSwathIndex);
    final double lat = (latUL + latUR + latLL + latLR) / 4.0;
    final double lon = (lonUL + lonUR + lonLL + lonLR) / 4.0;
    final PosVector mstSceneCenter = new PosVector();
    GeoUtils.geo2xyzWGS84(lat, lon, 0.0, mstSceneCenter);
    mstSceneCentreXYZ[b] = new Point(mstSceneCenter.toArray());
  }
}

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

final PosVector downPoint = new PosVector();
GeoUtils.geo2xyzWGS84(lg.rightPointLat, lg.rightPointLon, rightPointHeight, rightPoint);
GeoUtils.geo2xyzWGS84(lg.leftPointLat, lg.leftPointLon, leftPointHeight, leftPoint);
GeoUtils.geo2xyzWGS84(lg.upPointLat, lg.upPointLon, upPointHeight, upPoint);
GeoUtils.geo2xyzWGS84(lg.downPointLat, lg.downPointLon, downPointHeight, downPoint);
final PosVector centrePoint = new PosVector();
GeoUtils.geo2xyzWGS84(lg.rightPointLat, lg.rightPointLon, rightPointHeight, rightPoint);
GeoUtils.geo2xyzWGS84(lg.leftPointLat, lg.leftPointLon, leftPointHeight, leftPoint);
GeoUtils.geo2xyzWGS84(lg.upPointLat, lg.upPointLon, upPointHeight, upPoint);
GeoUtils.geo2xyzWGS84(lg.downPointLat, lg.downPointLon, downPointHeight, downPoint);
GeoUtils.geo2xyzWGS84(geo.getLat(), geo.lon, centerHeight, centrePoint);

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

GeoUtils.geo2xyzWGS84(gp.lat, gp.lon, alt, posData.earthPoint);
if(mstSARPosition.getPosition(posData)) {

相关文章