satellitetools.common.vector ============================ .. py:module:: satellitetools.common.vector .. autoapi-nested-parse:: Functions for vector data handling. @author: Olli Nevalainen (Finnish Meteorological Institute) Functions --------- .. autoapisummary:: satellitetools.common.vector.transform_crs satellitetools.common.vector.expand_bounds satellitetools.common.vector.coordinate_arrays_from_profile Module Contents --------------- .. py:function:: transform_crs(aoi_geometry: shapely.geometry.Polygon, src_crs: str, dst_crs: str) -> shapely.geometry.Polygon Transform area of interest geometry to another coordinate reference system. :param aoi_geometry: Geometry of the area of interest. :type aoi_geometry: Polygon :param src_crs: Source coordinate reference system. :type src_crs: str :param dst_crs: Destination coordinate reference system. :type dst_crs: str :returns: **aoi_geometry_transformed** :rtype: Polygon .. py:function:: expand_bounds(bbox_coordinates: list, amount: float) -> list Expand bounding box coordinates by amount. :param bbox_coordinates: Bounding box coordinates [xmin, ymin, xmax, ymax]. :type bbox_coordinates: list :param amount: Amount to expand the bounding box. :type amount: float :returns: **bbox_coordinates** -- Expanded bounding box coordinates [xmin, ymin, xmax, ymax]. :rtype: list .. py:function:: coordinate_arrays_from_profile(profile: dict) -> Tuple[numpy.ndarray, numpy.ndarray] Get coordinate arrays from rasterio profile. :param profile: Rasterio profile. :type profile: dict :returns: * **xs** (*np.ndarray*) -- Array of x coordinates. * **ys** (*np.ndarray*) -- Array of y coordinates.