pyfor.gisexport
Functions
Section titled “Functions”project_indices
Section titled “project_indices”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.
| Parameter | Type | Description |
|---|---|---|
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) | |
raster |
An object of type pyfor.rasterizer.Raster |
Returns:
array_to_raster
Section titled “array_to_raster”array_to_raster(array, affine, crs, path)Writes a GeoTIFF raster from a numpy array.
| Parameter | Type | Description |
|---|---|---|
array |
2D numpy array of cell values | |
affine |
The affine transformation. | |
crs |
A rasterio-compatible coordinate reference (e.g. a proj4 string, WKT, or EPSG code) | |
path |
The output bath of the GeoTIFF |
