pyfor.gisexport module

pyfor.gisexport.array_to_raster(array, affine, crs, path)

Writes a GeoTIFF raster from a numpy array.

Parameters
  • array – 2D numpy array of cell values

  • affine – The affine transformation.

  • crs – A rasterio-compatible coordinate reference (e.g. a proj4 string)

  • path – The output bath of the GeoTIFF

pyfor.gisexport.project_indices(indices, raster)

Converts indices of an array (for example, those indices that describe the location of a local maxima) to the same space as the input cloud object.

Parameters

indices – The indices to project, an Nx2 matrix of indices where the first column are the rows (Y) and

the second column is the columns (X) :param raster: An object of type pyfor.rasterizer.Raster :return: