pyflwdir.dem.slope#

pyflwdir.dem.slope(elevtn, nodata=-9999.0, latlon=False, transform=Affine(1.0, 0.0, 0.0, 0.0, -1.0, 0.0))[source]#

Returns the local gradient

Parameters:
  • elevnt (1D array of float) – elevation raster

  • nodata (float, optional) – nodata value, by default -9999.0

  • latlon (bool, optional) – True if WGS84 coordinates, by default False

  • transform (affine transform) – Two dimensional transform for 2D linear mapping, by default gis_utils.IDENTITY

Returns:

slope

Return type:

1D array of float