utils.CoordinateTransformer.to_local_coords#
- CoordinateTransformer.to_local_coords(lon: float | list, lat: float | list, altitude: float | list | None = None)#
Transform geographic coordinates to local coordinates.
- Parameters:
lon – Longitude of coordinate.
lat – Latitude of coordinate.
altitude – Altitude of coordinate.
- Returns:
x – Easting, northing and 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.to_local_coords(8.0, 47.0, 500) (5.414059637114406, 0.5106921272817999, 500)
See also
from_local_coords()