docs / api / pysoilmap / rasterops.rst

pysoilmap.rasterops

Utility functions for working with rasterized data and, more specifically, xarray.DataArray.

Functions

get_transform(dataarray)

Return the transform associated with the given raster, or, if unset, assume a rectangular grid and create the corresponding transformation.

rasterize_like(like, polygons, values[, nodata])

Rasterize polygon values like the given raster array.

write_tiff(fname, data, like[, names, nodata])

Write numpy array to a GeoTIFF file.