Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

TimeSeries reader for the Delft-Fews Published Interface XML format files. A detailled description of the format is described elsewhere. In short these are XML files that can hold (scalar) time series data. Each file can hoel on or more series. Each series has a small header followed by a number of events. An event is defined by a date/time, a value and an (optional) quality flag..h2

The file format

Please consult the full documentation and the xsd schema as this short description of the format is incomplete.

Code Blocknoformat
xmlxml
<TimeSeries 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_timeseries.xsd" version="1.2">
<timeZone>0.0</timeZone>
<series>
<header>
<type>instantaneous</type>
<locationId>locA</locationId>
<parameterId>H.obs</parameterId>
<timeStep unit="second" multiplier="3600"></timeStep>
<startDate date="2006-08-23" time="17:00:00"></startDate>
<endDate date="2006-08-24" time="00:00:00"></endDate>
<missVal>-8888.0</missVal>
<longName>Bobbio Trebbia</longName>
<units>m</units>
<fileDescription>JUnit Test comment: -8888 is read as original reliable, but it is actually a bug in
    nl.wldelft.fews.pi.PiTimeSeriesReader
</fileDescription>
</header>
<event date="2006-08-23" time="17:00:00" value="8.66"></event>
<event date="2006-08-23" time="18:00:00" value="9.66"></event>
<event date="2006-08-23" time="19:00:00" value="8.66" flag="33"></event>
<event date="2006-08-23" time="20:00:00" value="-8888.0"></event>
<event date="2006-08-23" time="21:00:00" value="8888.0"></event>
<event date="2006-08-23" time="22:00:00" value="8888.0" flag="9"></event>
<event date="2006-08-23" time="23:00:00" value="8888.0" flag="99"></event>
<event date="2006-08-24" time="00:00:00" value="-8888.0" flag="33"></event>
</series>
</TimeSeries>

The locationID is encoded in the filename e.g: MC02_Rain.dat contains data for  locationId MC02. an example file plus configuration is attached to this page. The external parameter is always "Rain".

...