ProcessingCalculateArea Method

Calculate the area below the given water level for the raw cross section points

Definition

Namespace: DHI.Mike1D.CrossSectionModule
Assembly: DHI.Mike1D.CrossSectionModule (in DHI.Mike1D.CrossSectionModule.dll) Version: 24.0.0.0 (11.1.1.1111)
C#
public static double CalculateArea(
	double h,
	IList<ICrossSectionPoint> xsPoints,
	double xScale
)

Parameters

h  Double
Water levels to calculate areas at. Assuming water levels are in the range of the raw data
xsPoints  IListICrossSectionPoint
Cross section raw data points
xScale  Double
Factor to scale x-values with, in case cross section is not perpendicular to river.

Return Value

Double
Areas for each level

See Also