obspy.signal.util.util_lon_lat

util_lon_lat(orig_lon, orig_lat, x, y)[source]

Transform x, y [km] to decimal degree in reference to orig_lon and orig_lat

>>> util_lon_lat(12.0, 48.0, 0.0, 0.0)
(12.0, 48.0)
>>> lon, lat = util_lon_lat(12.0, 48.0, 73.9041, 111.1908)
>>> print("%.4f, %.4f" % (lon, lat))
13.0000, 49.0000
Parameters:
  • orig_lon Longitude of reference origin
  • orig_lat Latitude of reference origin
  • x value [km] to calculate relative coordinate in degree
  • y value [km] to calculate relative coordinate in degree
Returns:

lon, lat coordinate in degree (absolute)