Overview

Imports time series data from XML files.
The parser looks for

  • <PLATFORM> and uses the NAME attribute as locationId
  • <GROUP> and uses the TIME attribute as time for the parameter values within
  • <HDLEVEL1>, <HDLEVEL1>, <HYDRO> and <METEO> and uses attributes as parameters with corresponding values. If a value is not valid it will be stored as missing.

To use this import in FEWS configuration: <importType>LmwWeatherdata</importType>

Example

Here is an example:

<?xml version="1.0"?>
<WEATHERDATA xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="rws.xsd">
 <PLATFORM NAME="Anasuria">
  <GROUP NAME="RWS Waves" TIME="2013-06-13 23:50" SENS_NUMBER="0">
   <HDLEVEL1 Czz5.0="0.000000" Czz5.1="0.000026" Czz5.2="0.000033" Czz5.3="0.000008" Czz5.4="0.000019" Czz5.5="0.000050"></HDLEVEL1>
   <HDLEVEL2 Czz10.0="0" Czz10.1="2.49192e-05" Czz10.2="2.3875e-05" Czz10.3="0.000184706"></HDLEVEL2>
   <HYDRO TW10="DUMMY"></HYDRO>
   <METEO WR10="188.842" WS10="2.26446" P10="1005.36" WS10MXS3="3.30453" TL10="12.597" U10="83.6919"></METEO>
  </GROUP>
 </PLATFORM>
</WEATHERDATA>

Details of the import format

 

The import format is specified in an xsd

rws.xsd

Java source code

LmwWeatherdataTimeSeriesParser.java

 

  • No labels