shareloc.proj_utils =================== .. py:module:: shareloc.proj_utils .. autoapi-nested-parse:: This module contains the projection functions for shareloc Functions --------- .. autoapisummary:: shareloc.proj_utils.coordinates_conversion shareloc.proj_utils.transform_index_to_physical_point shareloc.proj_utils.transform_physical_point_to_index Module Contents --------------- .. py:function:: coordinates_conversion(coords, epsg_in, epsg_out) Convert coords from a SRS to another one. :param coords: coords to project :type coords: numpy array of 2D coords (shape (2,) or (N,2) or 3D coords (shape (3,) or (N,3)) :param epsg_in: EPSG code of the input SRS :type epsg_in: int :param epsg_out: EPSG code of the output SRS :type epsg_out: int :returns: converted coordinates :rtype: numpy array of 2D coord (N,2) or 3D coords (N,3) .. py:function:: transform_index_to_physical_point(transform, row, col) Transform index to physical point :param row: row index :type row: float or 1D np.ndarray :param col: col index :type col: float or 1D np.ndarray :param transform: Affine function for georeference :type transform: Affine :return: Georeferenced coordinates (row, col) :rtype: Tuple(georeference row float or 1D np.ndarray, georeference col float or 1D np.ndarray) .. py:function:: transform_physical_point_to_index(trans_inv, row_geo, col_geo) Transform physical point to index :param row_geo: physical point row :type row_geo: float or 1D np.ndarray :param col_geo: physical point col :type col_geo: float or 1D np.ndarray :param trans_inv: Affine function for georeference :type trans_inv: Affine :return: index coordinates (row, col) :rtype: Tuple(row float or 1D np.ndarray, col float or 1D np.ndarray)