read_geotiff
builtin
¶
read_geotiff(path, *, nodata=None, length_unit=None)
Reads a GeoTIFF raster as a 2D BlockModel.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
path
|
str or Path
|
A stripped or tiled GeoTIFF, uncompressed or compressed with deflate, LZW or PackBits, with integer or float samples. |
required |
nodata
|
float
|
Pixel value read as null, replacing the file's |
None
|
Returns:
| Type | Description |
|---|---|
BlockModel
|
A regular grid with nz = 1 and one column per band, named from the band
descriptions or |
used in