Example #1
0
 def radius(self, lat, lon):
     alt = util.interpolate_lat_lon(self._srtm, lat, lon, 60)
     alt = alt + util.interpolate_lat_lon(self._egm96, lat, lon)
     xyz = self._wgs84.geodetic_to_cartesian((lon, lat, alt))
     #return xyz
     return math.sqrt(xyz[0] * xyz[0] + xyz[1] * xyz[1] + xyz[2] * xyz[2])
Example #2
0
 def radius(self, lat, lon):
     alt = util.interpolate_lat_lon(self._srtm, lat, lon, 60)
     alt = alt + util.interpolate_lat_lon(self._egm96, lat, lon)
     xyz = self._wgs84.geodetic_to_cartesian((lon,lat,alt))
     #return xyz
     return math.sqrt(xyz[0]*xyz[0]+xyz[1]*xyz[1]+xyz[2]*xyz[2])
Example #3
0
 def altitude(self, lat, lon):
     return util.interpolate_lat_lon(self._srtm, lat, lon, 60)
Example #4
0
 def altitude(self, lat, lon):
     return util.interpolate_lat_lon(self._srtm, lat, lon, 60)