environmentaltools.processes.slopes

environmentaltools.processes.slopes(data, variable='DirU')[source]

Compute the bottom slopes in the direction of a specified variable.

Parameters:
  • data (pd.DataFrame) – DataFrame containing geometry data with columns ‘x’, ‘y’, ‘depth’, and the specified variable

  • variable (str, optional) – Name of the circular direction variable in degrees. Default is ‘DirU’.

Returns:

Array of bottom slopes in the specified direction

Return type:

np.ndarray