Versions Compared

Key

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

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



Code Block
<?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="polygonRelatedLocations">
		<interpolationSpatial>
			<polygonRelatedLocations>
				<inputVariable>
					<timeSeriesSet>
						<moduleInstanceId>SpatialInterpolationPolygonRelatedLocationsTest</moduleInstanceId>
						<valueType>scalar</valueType>
						<parameterId>T.historical</parameterId>
						<locationSetId>LS</locationSetId>
						<timeSeriesType>external historical</timeSeriesType>
						<timeStep unit="day"/>
						<relativeViewPeriod unit="day" start="0" end="0"/>
						<readWriteMode>add originals</readWriteMode>
					</timeSeriesSet>
				</inputVariable>
				<polygonLocationSetId>polygonLocationSet</polygonLocationSetId>
				<polygonLocationRelationId>inverseDistanceLocations</polygonLocationRelationId>
				<outputVariable>
					<timeSeriesSet>
						<moduleInstanceId>SpatialInterpolationPolygonRelatedLocationsTest</moduleInstanceId>
						<valueType>grid</valueType>
						<parameterId>T.historical</parameterId>
						<locationId>ECMWF</locationId>
						<timeSeriesType>external historical</timeSeriesType>
						<timeStep unit="day"/>
						<relativeViewPeriod unit="day" start="0" end="0"/>
						<readWriteMode>add originals</readWriteMode>
					</timeSeriesSet>
				</outputVariable>
			</polygonRelatedLocations>
		</interpolationSpatial>
	</transformation>
</transformationModule>

...