topotoolbox.write_tif

Contents

topotoolbox.write_tif#

topotoolbox.write_tif(dem: GridObject, path: str) None[source]#

Write a GridObject instance to a GeoTIFF file.

Parameters:
  • dem (GridObject) – The GridObject instance to be written to a GeoTIFF file.

  • path (str) – The file path where the GeoTIFF will be saved.

Raises:

TypeError – If dem is not an instance of GridObject.

Examples

>>> dem = topotoolbox.load_dem('taiwan')
>>> topotoolbox.write_tif(dem, 'dem.tif')