Introduction
LHP is a XML export format. See http://www.hochwasserzentralen.de/.
The exported XML is conform the lhp.dtd. See: http://www.hochwasserzentralen.de/lhp.dtd
LHP Export Configuration
The configuration of the LILA export module is shown in the following example.
<?xml version="1.0" encoding="UTF-8"?> <timeSeriesExportRun xmlns="http://www.wldelft.nl/fews" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.wldelft.nl/fews http://fews.wldelft.nl/schemas/version1.0/timeSeriesExportRun.xsd"> <export> <general> <exportType>LHP</exportType> <folder>$EXPORT_FOLDER$/LHP</folder> <exportFileName> <name>lhp.xml</name> </exportFileName> <idMapId>idLhp</idMapId> <unitConversionsId>LhnExportUnitConversions</unitConversionsId> </general> <timeSeriesSet> <moduleInstanceId>moduleId</moduleInstanceId> <valueType>scalar</valueType> <parameterId>Q</parameterId> <locationId>73</locationId> <timeSeriesType>external historical</timeSeriesType> <timeStep unit="minute" multiplier="15"/> <readWriteMode>read complete forecast</readWriteMode> <synchLevel>1</synchLevel> <ensembleId>main</ensembleId> <ensembleMemberIndex>0</ensembleMemberIndex> </timeSeriesSet> </export> </timeSeriesExportRun>
The following code shows a sample output file:
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE lhp-daten SYSTEM "http://www.hochwasserzentralen.de/lhp.dtd"> <?xml-stylesheet type="text/xsl" href="lhp.xsl"?> <lhp-daten> <pegeldaten> <pgnr>73</pgnr> <wert datenart="q" einheit="m3s">9.28</wert> <zeit datenart="q">23.01.2015 15:00</zeit> <wert datenart="q" einheit="m3s">9.28</wert> <zeit datenart="q">23.01.2015 15:15</zeit> <wert datenart="q" einheit="m3s">9.28</wert> <zeit datenart="q">23.01.2015 15:30</zeit> ...</pegeldaten> </lhp-daten>