Versions Compared

Key

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

...

Since 2013_01 it is possible to create reports of the Schematic Status Display in the form of animations in the formats Avi and animated gif as well as snapshots in the form of Png files and Svg files.
For this purpose there will probably already be some Schematic Status Display configuration in the DisplayConfigFiles of the configuration. In order to create a report of such a this Schematic Status Display, most elements of this configuration can be copied manually to the reports configuration file.

Unfortunately, the definitions of the date format and number format cannot be copied directly to the report configuration since they have a slightly different format.

Schematic status display configuration

Code Block
xml
xml

	<dateFormat id="DF1">
		<timeZone>
			<timeZoneName>CET</timeZoneName>
		</timeZone>
		<dateTimePattern>dd-MM-yyyy</dateTimePattern>
	</dateFormat>
	<dateFormat id="DF2">
		<timeZone>
			<timeZoneName>CET</timeZoneName>
		</timeZone>
		<dateTimePattern>HH:mm</dateTimePattern>
	</dateFormat>
	<dateFormat id="DF3">
		<timeZone>
			<timeZoneName>CET</timeZoneName>
		</timeZone>
		<dateTimePattern>dd-MM-yyyy HH:mm</dateTimePattern>
	</dateFormat>
	<numberFormat id="NF1">
		<pattern>{0,number,##0.00}</pattern>
	</numberFormat>

Reports declarations section:

Code Block
xml
xml

	<dateFormat id="DF1">
		<timeZone>
			<timeZoneName>CET</timeZoneName>
		</timeZone>
		<pattern>dd-MM-yyyy</pattern>
	</dateFormat>
	<dateFormat id="DF2">
		<timeZone>
			<timeZoneName>CET</timeZoneName>
		</timeZone>
		<pattern>HH:mm</pattern>
	</dateFormat>
	<dateFormat id="DF3">
		<timeZone>
			<timeZoneName>CET</timeZoneName>
		</timeZone>
		<pattern>dd-MM-yyyy HH:mm</pattern>
	</dateFormat>
	<numberFormat id="NF1">{0,number,##0.00}</numberFormat>
Code Block
xml
xml
<?xml version="1.0" encoding="UTF-8"?>
<reports 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/reports.xsd" version="1.0">
	<declarations>
		<defineGlobal id="ForecastingRegion">IWP-Twentekanalen</defineGlobal>
		<dateFormat id="dateFormat1">
			<pattern>dd/MM/yyyy HH:mm z</pattern>
		</dateFormat>
			
		<numberFormat id="NF1">{0,number,##0.00}</numberFormat>
		<templateDir>$REPORT_TEMPLATE_DIR$</templateDir>
		<reportsRootDir>$REPORT_ROOT_DIR$</reportsRootDir>
		<reportsRootSubDir/>
		<sendToLocalFileSystem>false</sendToLocalFileSystem>
	</declarations>
	<report>
	
	<schematicStatusDisplayPanelAvi id="ssdAvi">
		<variable>
		...
		</variable>

		<schematicStatusDisplayPanel id="TK" name="Twentekanalen 10 min">
		<svgFile>Twentekanalen_10min.svg</svgFile>
		<nodeId>Twentekanalen Hydro</nodeId>
		</schematicStatusDisplayPanel>
		<width>1024</width>
		<height>800</height>
		<relativePeriod unit="hour" start="-20" end="4"/>
		<timeStep unit="second" multiplier="300"/>
		<movieFrameDurationMillis>200</movieFrameDurationMillis>
		<fileName>SSD_test.avi</fileName>
	</schematicStatusDisplayPanelAvi>
		
		
		
	<schematicStatusDisplayPanelSnapshotsPng>
	<variable>
...
	</variable>		
	<transformation id="UserSimpleTransformation">
		<user>
			<simple>
				<expression>Waterstanden_10min * 100</expression>
				<outputVariable>
					<variableId>Waterstanden_10min_times_100</variableId>
				</outputVariable>
			</simple>
		</user>
	</transformation>

	<schematicStatusDisplayPanel id="TK" name="Twentekanalen  10 min">
		</schematicStatusDisplayPanel>
			<width>1024</width>
			<height>800</height>
			<snapshot id="ssd1">
				<relativeTime unit="hour" value="-4"/>
				<fileName>SSD_test1.png</fileName>
			</snapshot>
			<snapshot id="ssd2">
				<relativeTime unit="hour" value="-3"/>
				<fileName>SSD_test2.png</fileName>
			</snapshot>
		</schematicStatusDisplayPanelSnapshotsPng>
...
	</report>
</reports>

...