An intermediate polygon and a location relation is used to find the locations in the input variable. An output location is first mapped to an intermediate polygon. A location relation is used to map the intermediate polygon to one or more locations in the input variable. An inverse distance is applied to all related locations. 

for each output grid cell

  • find polygon that contains the grid cell
  • find the related locations for polygon
  • lookup the resolved locations in the input data
  • copy the weighted average (weight=inverse distance) of the found input to the output grid cell



<?xml version="1.0" encoding="UTF-8"?>
<transformationModule version="1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.wldelft.nl/fews"
					  xsi:schemaLocation="http://www.wldelft.nl/fews http://fews.wldelft.nl/schemas/version1.0/transformationModule.xsd">  	<transformation id="2a. Resultaten naar waterdiepte grid">
		<interpolationSpatial>
			<polygonRelatedLocations>
				<inputVariable>
					<timeSeriesSet>
						<moduleInstanceSetId>RunCM$NEERSLAG$</moduleInstanceSetId>
						<valueType>scalar</valueType>
						<parameterId>H.sim</parameterId>
						<locationSetId>WATERDIEPTE_RESULTS_$BEKKENNUMMER$</locationSetId>
						<timeSeriesType>simulated forecasting</timeSeriesType>
						<timeStep unit="minute" multiplier="15"/>
						<relativeViewPeriod unit="day" start="-3" end="3"/>
						<readWriteMode>editing visible to all future task runs</readWriteMode>
						<ensembleId>main</ensembleId>
						<ensembleMemberIndex>0</ensembleMemberIndex>
					</timeSeriesSet>
				</inputVariable>
				<polygonLocationSetId>SUBCATCHMENTS_PDM"</polygonLocationSetId>
				<polygonLocationRelationId>GERELATEERD_WATERDIEPTE</polygonLocationRelationId>
				<outputVariable>
					<timeSeriesSet>
						<moduleInstanceId>$MODULE_INSTANCE_ID$</moduleInstanceId>
						<valueType>grid</valueType>
						<parameterId>H.sim</parameterId>
						<qualifierId>$NEERSLAG_QUALIFIER$</qualifierId>
						<locationId>WATERDIEPTE</locationId>
						<timeSeriesType>simulated forecasting</timeSeriesType>
						<timeStep unit="minute" multiplier="15"/>
						<relativeViewPeriod unit="day" start="-3" end="3"/>
						<readWriteMode>add originals</readWriteMode>
					</timeSeriesSet>
				</outputVariable>
			</polygonRelatedLocations>
		</interpolationSpatial>
	</transformation>
 </transformationModule>
  • No labels