...
Code Block |
---|
<?xml version="1.0" encoding="UTF-8"?> <RatingCurves xmlns="http://www.wldelft.nl/fews/PI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.wldelft.nl/fews/PI http://fews.wldelft.nl/schemas/version1.0/pi-schemas/pi_ratingcurves.xsd"> <timeZone>0.0</timeZone> <ratingCurve> <header> <locationId>ALKA2</locationId> <startDate date="2012-01-01" time="00:00:00"/> <endDate date="2012-11-21" time="00:00:00"/> <stationName>ALKA2</stationName> <stageUnit>FT</stageUnit> <dischargeUnit>CFS</dischargeUnit> <comment>Sep07 88.88 199 kcfs</comment> </header> <table> <interpolationMethod>logarithmic</interpolationMethod> <minStage>64.9</minStage> <maxStage>INF</maxStage> <row stage="64.9" discharge="2990.3328"/> <row stage="65.1" discharge="3280.365"/> <row stage="65.4" discharge="3740.4165"/> <row stage="65.700004" discharge="4240.472"/> </table> </ratingCurve> </RatingCurves> |
POST
...
ratingcurves/stagetodischarge(2022.02)
POST Converts stage values to discharge values using a rating curve at a specific location. The stageValues should be passed in the body of the POST request as a key value pair where the key is dischargeValue and the value is URL Encoded JSON that conforms to the pi_rest_ratingcurves_stage.json schema: https://fewsdocs.deltares.nl/webservices/rest-api/v1/schemas/pirest/pi_rest_ratingcurves_stage.json
Request parameters
- documentVersion (string): only PI_XML is supported.
- locationId (string, required): Location id for which to calculate the discharge.
...
Converts stage values to discharge values using a rating curve at a specific location. The stageValues should be passed in the body of the POST request as a key value pair where the key is dischargeValue and the value is URL Encoded JSON that conforms to the pi_rest_ratingcurves_stage.json schema: https://fewsdocs.deltares.nl/webservices/rest-api/v1/schemas/pirest/pi_rest_ratingcurves_stage.json.
Request parameters
- documentVersion (string): only PI_XML is supported.
- locationId (string, required): Location id for which to calculate the discharge.
...