hec.const

Provides constants and related items

UNDEFINED = -3.4028234663852886e+38
CWMS = 'CWMS'
DSS = 'DSS'
class Combine(enum.Enum):

Enumeration for combining selection states (current, new)

  • NOOP: Result is current selection state for all items
  • REPLACE: Result is new selection state for all items
  • AND: Result is current selection ANDed with new selection state
  • OR: Result is current selection ORed with new selection state
  • XOR: Result is current selection XORed with new selection state
NOOP = <Combine.NOOP: 0>
REPLACE = <Combine.REPLACE: 1>
AND = <Combine.AND: 2>
OR = <Combine.OR: 3>
XOR = <Combine.XOR: 4>
class PercentileMethods(enum.Enum):

Enumeration of methods for computing percentiles

HECMATH = <PercentileMethods.HECMATH: 0>
AVERAGED_INVERTED_CDF = <PercentileMethods.AVERAGED_INVERTED_CDF: 1>
CLOSEST_OBSERVATION = <PercentileMethods.CLOSEST_OBSERVATION: 2>
HIGHER = <PercentileMethods.HIGHER: 4>
INTERPOLATED_INVERTED_CDF = <PercentileMethods.INTERPOLATED_INVERTED_CDF: 5>
INVERTED_CDF = <PercentileMethods.INVERTED_CDF: 6>
LINEAR = <PercentileMethods.LINEAR: 7>
MEDIAN_UNBIASED = <PercentileMethods.MEDIAN_UNBIASED: 9>
MIDPOINT = <PercentileMethods.MIDPOINT: 10>
NEAREST = <PercentileMethods.NEAREST: 11>
NORMAL_UNBIASED = <PercentileMethods.NORMAL_UNBIASED: 12>
WEIBULL = <PercentileMethods.WEIBULL: 13>
class Safety(enum.Enum):

Enumeration for specifying behavior of potentially unsafe operations.

NOOP_ON_UNSAFE = <Safety.NOOP_ON_UNSAFE: 0>
WARN_ON_UNSAFE = <Safety.WARN_ON_UNSAFE: 1>
ERROR_ON_UNSAFE = <Safety.ERROR_ON_UNSAFE: 2>
class Select(enum.Enum):

Enumeration for specifying items to select

  • NONE: Set all items to unselected
  • ALL: Set all items to selected
  • INVERT: Set all items to the inverse of their currently selected state
NONE = <Select.NONE: 0>
ALL = <Select.ALL: 1>
INVERT = <Select.INVERT: 2>
class SelectionState(enum.Enum):

Enumeration for specifying selection durability

  • TRANSIENT: Selection is cleared after next operation
  • DURABLE: Selection persists until explicitly modified
TRANSIENT = <SelectionState.TRANSIENT: 0>
DURABLE = <SelectionState.DURABLE: 1>