convert_xy

Contents

convert_xy#

eoio.utils.crs_utils.convert_xy(im_input: list | tuple | ndarray, input_format: str, output_format: str = 'EPSG:4326')[source]#

Convert input coordinates from their coordinate reference system to the World Geodetic System 1984 (WGS 84) or other specified coordinate reference system.

If im_input is a list/1D- array of x and y coordinates instead of a two dimensional coordinate grid, list/array first used to create a two dimensional coordinate grid

Parameters:
  • im_input – list/1D-array of coordinate values, or 2D-coordinate grid

  • input_format – coordinate reference system of input coordinates

  • output_format – desired coordinate reference system (defaults to ‘EPSG:4326’)

Returns:

Tuple of converted x and y coordinates.