RRExtensions Class

Static class containing extension methods related to DHI.Mike1D.RainfallRunoffModule

Definition

Namespace: DHI.Mike1D.RainfallRunoffModule
Assembly: DHI.Mike1D.RainfallRunoffModule (in DHI.Mike1D.RainfallRunoffModule.dll) Version: 24.0.0.0 (11.1.1.1111)
C#
public static class RRExtensions
Inheritance
Object    RRExtensions

Methods

CalculateWeights Calculate grid weights for catchment.

If catchment has a geometry (CatchmentGeometry), that is being used for the calculations. If it does not have a geometry, but it has a CenterPoint, the centerpoint is used.

CreateMonthlyAbstractionBoundary Sets up monthly abstraction for nam, assuming the abstraction values are in mm/month.
Find(RainfallRunoffData, String) Find the catchment with the given model ID. Returns null if not found.
Find(RainfallRunoffData, String, IQuantity) Find the first catchment with the given name and offering quantity. Returns null if none found.
FindAll(RainfallRunoffData, String) Get a catchment via its name. Returns null if no catchment has this name.
FindAll(ICatchments, String, IQuantity) Find all catchments with the specified name, and providing the specified quantity
FindAll(RainfallRunoffData, String, IQuantity) Find all catchments with the specified name, and offering the specified quantity. Returns null if none found.
IsImpervious Returns true when the surface is impervious
NTSGeometry(ICatchment, IDiagnostics) Create a NetToplogySuite (NTS) geometry from the CatchmentGeometry.

Depending on the coordinates, the returned IGeometry is either a NTS Polygon or NTS MultiPolygon.

Check out CatchmentGeometry for how the sequence of coordinates is interpreted

NTSGeometry(ICatchment, Boolean, IDiagnostics) Create a NetToplogySuite (NTS) geometry from the CatchmentGeometry.

Depending on the coordinates, the returned IGeometry is either a NTS Polygon or NTS MultiPolygon.

Check out CatchmentGeometry for how the sequence of coordinates is interpreted

SequenceToNTSRings Create a NetToplogySuite (NTS) geometry from the CatchmentGeometry.

Check out CatchmentGeometry for how the sequence of coordinates is interpreted

SignedArea 
ToCatchmentGeometry Convert a NetTopology Polygon/MultiPolygon to a catchment geometry, following the rules of CatchmentGeometry
UHMRescaleTimeStep Rescale time step for UHM catchments such that the number of computational cells do not get too big. A "decent" range of value for maxNumberOfCells is 100-200.

See Also