Versions Compared

Key

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

...

To configure the WIWB import the dataSource property has to be specifieddataSource.

Valid values for dataSource are provided by the meta data api, but at the time of writing the following dataSources are available:

...

This example is configured to import scalar observations from the Knmi.AwsTenMinutes dataSource:

Code Block
borderStylesolid
titleImportNetcdf_Grid 1.00 default.xml
<?xml version="1.0" encoding="UTF-8"?>
<timeSeriesImportRun 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/timeSeriesImportRun.xsd">

	<import>
		<general>
			<importType>WIWB</importType>			
			<serverUrl>https://wiwb.hydronet.com/api</serverUrl>
			<user>USERNAME</user>
			<password>PASSWORD</password>
			<relativeViewPeriod unit="hour" start="-24" end="0" startOverrulable="true"/>
			<idMapId>IdImport</idMapId>
			<expiryTime unit="week" multiplier="52"/>
		</general>
		<properties>
			<string key="dataSource" value="Knmi.AwsTenMinutes"></string>
		</properties>
		<timeSeriesSet>
			<moduleInstanceId>Import</moduleInstanceId>
			<valueType>scalar</valueType>
			<parameterId>P</parameterId>
			<locationId>06269</locationId>
			<timeSeriesType>external historical</timeSeriesType>
		    <timeStep unit="nonequidistant"/>
			<readWriteMode>add originals</readWriteMode>
		</timeSeriesSet>
	</import>
</timeSeriesImportRun></timeSer

...

The following example is configured for importing grids daily 3D grids:from the Knmi.Radar.Uncorrected dataSource
Code Block
	<import>
		<general>
			<importType>Cmems<<importType>WIWB</importType>			
			<serverUrl>http<serverUrl>https://nrtcmemswiwb.mercator-oceanhydronet.fr/mis-gateway-servlet/Motu?product=global-analysis-forecast-phy-001-024&amp;service=http://purl.org/myocean/ontology/service/database%23GLOBAL_ANALYSIS_FORECAST_PHY_001_024-TDS&amp;variable=thetao&amp;x_lo=30.0&amp;x_hi=79.0&amp;y_lo=7.0&amp;y_hi=31.0&amp;z_lo=0.494&amp;z_hi=5727.9171</serverUrl>
            <connectionTimeOutMillis>300000</connectionTimeOutMillis>
			<user><com/api</serverUrl>
			<user>USERNAME</user>
			<password><<password>PASSWORD</password>
			<relativeViewPeriod unit="dayhour" start="-124" end="10" startOverrulable="true"/>
			<idMapId>IdImport_CMEMS<<idMapId>IdImport</idMapId>
			<unitConversionsId>ImportUnitConversions</unitConversionsId>
			<expiryTime unit="dayweek" multiplier="35652"/>
		</general>
		<properties>
			<string key="TICKET_URLdataSource" value="https://cmems-cas.cls.fr/cas/v1/tickets"/>
			<string key="DATA_TYPE" value="3D_DAILY"/>
		Knmi.Radar.Uncorrected"></string>
		</properties>
		<timeSeriesSet>

			<moduleInstanceId>Import_CMEMS<<moduleInstanceId>Import</moduleInstanceId>
			<valueType>grid</valueType>
			<parameterId>T.simulated.CMEMS<<parameterId>P</parameterId>
			<locationId>CMEMS<locationId>grid_3D<location</locationId>
			<timeSeriesType>external forecasting</timeSeriesType>
			<timeStep unit="nonequidistant"/>
			<readWriteMode>add originals</readWriteMode>
		</timeSeriesSet>
	</import>

 

Id Map Configuration

An example of the IdMapping used for the NETCDF-CF_GRID import is shown below.

Code Block
borderStylesolid
titleIdImportNetCDF 1.00 default.xml
<idMap version="1.1" 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/idMap.xsd">
	<parameter internal="Wind.u" external="uo"/>
	<parameter internal="Wind.v" external="uv"/>
</idMap>

...