@maschinenlesbar.org/hochwasserzentralen-cli
    Preparing search index...

    Function stationClass

    • A station's lhpClass on the documented station scale, shared by the minClass filter and the situation overview so the two never disagree: an integer from -1 to 4, or null for a gauge without a flood classification (lhpClass null or absent). Anything else (99, 2.5, the string "3") means the upstream scale or type changed; counting it as "no data" or filtering it by number could hide a flood, so it throws a HochwasserzentralenParseError instead (CLI exit 1). The values that error quotes (the class and the station's id, server text) pass through scrub first, before they are cleaned and cut: the client passes its engine's scrub, so a credential of the base URL echoed there never reaches the message, not even in part.

      Parameters

      • station: Station
      • scrub: (text: string) => string = asIs

      Returns number | null