Skip to content
HALOWERK

Naturwerk

water rating curve segments

Return discharge from a supplied piecewise power-law stage rating curve.

POST https://natur.halowerk.com/v1/water-rating-curve-segments

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
stages_marrayYes
segmentsarrayYes
Show full input schema
{
  "type": "object",
  "properties": {
    "stages_m": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/s0"
      },
      "maxItems": 100,
      "minItems": 1
    },
    "segments": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "lower_m": {
            "$ref": "#/$defs/s0"
          },
          "upper_m": {
            "$ref": "#/$defs/s0"
          },
          "offset_m": {
            "$ref": "#/$defs/s0"
          },
          "coefficient": {
            "type": "number",
            "minimum": 1e-06,
            "maximum": 1000000000
          },
          "exponent": {
            "type": "number",
            "minimum": 0.001,
            "maximum": 10
          }
        },
        "required": [
          "lower_m",
          "upper_m",
          "offset_m",
          "coefficient",
          "exponent"
        ],
        "additionalProperties": false
      },
      "maxItems": 20,
      "minItems": 1
    }
  },
  "required": [
    "stages_m",
    "segments"
  ],
  "additionalProperties": false,
  "$id": "urn:h:w3:E0:input",
  "$defs": {
    "s0": {
      "type": "number",
      "minimum": -1000000,
      "maximum": 1000000
    }
  }
}

Open original schema

Published input example

{
  "stages_m": [
    0,
    1,
    2
  ],
  "segments": [
    {
      "lower_m": 0,
      "upper_m": 3,
      "offset_m": 0,
      "coefficient": 2,
      "exponent": 2
    }
  ]
}

Result & documentation

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-11-18 UTC.

More endpoints in this hub

All endpoints in this hub โ†’