revrt.utilities.base.transform_xy#

transform_xy(src_crs, dst_crs, x, y)[source]#

Transform coordinate iterables between coordinate systems

Parameters:
  • src_crs (str or dict) – Source and destination coordinate reference systems. These can be any valid CRS string or dictionary that can be parsed by pyproj.CRS.

  • dst_crs (str or dict) – Source and destination coordinate reference systems. These can be any valid CRS string or dictionary that can be parsed by pyproj.CRS.

  • x (Iterable) – Iterables of x and y coordinates to transform.

  • y (Iterable) – Iterables of x and y coordinates to transform.

Returns:

x, y (ndarray) – Numpy arrays of transformed x and y coordinates in the destination CRS.