utils.CoordinateTransformer.from_local_coords#
- CoordinateTransformer.from_local_coords(easting: float | list, northing: float | list, altitude: float | list | None = None)#
Transform local coordinates to geographic coordinates.
- Parameters:
easting – Easting of coordinate.
northing – Northing of coordinate.
altitude – Altitude of coordinate.
- Returns:
x – Longitude, latitude, altitude in local CRS relative to reference.
Examples
>>> from seismostats.utils import CoordinateTransformer
>>> ref_easting = 2642690 >>> ref_northing = 1205590 >>> ct = CoordinateTransformer(2056, ref_easting, ref_northing) >>> ct.from_local_coords(0, 111000, 500) (8.010557515399034, 47.99827983628076, 500.0) >>> ct.from_local_coords(0, 0, 500) (7.999928777183829, 46.99999576464952, 500.0)
See also
to_local_coords()