CatchmentGriddedWeights Class

For a catchment, specifying which cells of a grid that is inside this catchment, and for each cell specifying the weight for calculating the average cell contribution.

If the Weights is null, the weights will be calculated automatically. To have a catchment use this grid, and have the weights calculated automatically, then only specify the CatchmentId.

Definition

Namespace: DHI.Mike1D.BoundaryModule
Assembly: DHI.Mike1D.BoundaryModule (in DHI.Mike1D.BoundaryModule.dll) Version: 24.0.0.0 (11.1.1.1111)
C#
public class CatchmentGriddedWeights
Inheritance
Object    CatchmentGriddedWeights

Constructors

CatchmentGriddedWeightsInitializes a new instance of the CatchmentGriddedWeights class

Properties

CatchmentId Id of catchment
Weights Cell weights

Methods

EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Flatten Flatten the weights; removes duplicate (I,J) entries and sums their weights. The weights will also be sorted.
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Rescale Rescale all weights to sum to 1
ToStringReturns a string that represents the current object.
(Inherited from Object)

Extension Methods

HasWeights Returns true if weights are defined for this catchment.
(Defined by BoundaryExtensions)

See Also