Versions Compared

Key

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

Since release 2007.02, the Data/TimeSeries Display can display longitudinal profiles in graph and table format. It therefore has become the preferred way to show longitudinal profiles and overtakes the functionality of the separate Longitudinal Display.

There are three files which are required:

...

1. Firstly you need to generate the long profile using a transformation module instance (converting from point data to long profile) or import the long profile from an external model (see example of how to generate a long profile in Sobek). When using a transformation

  • Transformation (see code example below):
    • the input variable should contain all the point data and the output is reference by a single point.

...

    •  
    • the location of the input data locations is matched via the x, y coordinates in the branches file (see below). This means that the input variable can also be a grid.
  • Import:
    • Only the importModule can import the valueType longitudinalprofile, the importNetcdfActivity of the GeneralAdapter is not able to import this valueType


Code Block
xml
xml
	<variable>
		<variableId>Model_Output</variableId>
		<timeSeriesSet>
			<moduleInstanceId>Your_Module</moduleInstanceId>
			<valueType>scalar</valueType>
			<parameterId>Q.simulated.forecast</parameterId>
			<locationSetId>River1_Outputs</locationSetId>
			<timeSeriesType>simulated forecasting</timeSeriesType>
			<timeStep unit="minute" multiplier="15"/>
			<relativeViewPeriod unit="day" start="-10" end="24"/>
			<readWriteMode>add originals</readWriteMode>
			<synchLevel>1</synchLevel>
		</timeSeriesSet>
	</variable>
	<variable>
		<variableId>Profile</variableId>
		<timeSeriesSet>
			<moduleInstanceId>CreateLongProfile</moduleInstanceId>
			<valueType>longitudinalprofile</valueType>
			<parameterId>Long.profile</parameterId>
			<locationId>River1</locationId>
			<timeSeriesType>simulated forecasting</timeSeriesType>
			<timeStep unit="minute" multiplier="15"/>
			<relativeViewPeriod unit="day" start="-10" end="24"/>
			<readWriteMode>read only</readWriteMode>
		</timeSeriesSet>
	</variable>
	<transformation id="InterpolationSpatialClosestDistanceTest">
		<interpolationSpatial>
			<closestDistance>
				<inputVariable>
					<variableId>Model_Output</variableId>
				</inputVariable>
				<searchRadius>0</searchRadius>
				<outputVariable>
					<variableId>Profile</variableId>
				</outputVariable>
			</closestDistance>
		</interpolationSpatial>
	</transformation>

...