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])
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])
def altitude(self, lat, lon): return util.interpolate_lat_lon(self._srtm, lat, lon, 60)