You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

Overview

The WIWB Import connects to the Hydronet WIWB API and has support for downloading observations and forecasts for both scalar and grid data. WIWB has a concept of DataSources which have to be configured as a property of the import. Using the meta data api of  the WIWB API the type of data is determined and processed accordingly.

Import Configuration

To configure the WIWB import the dataSource property has to be specified: dataSource

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

  • Knmi.Radar.Uncorrected
  • Knmi.Radar.CorrectedC2
  • Knmi.Radar.CorrectedB
  • Knmi.Radar.CorrectedD2
  • Knmi.Hirlam
  • Knmi.Harmonie
  • Knmi.Evaporation
  • Knmi.IrisUnvalidated
  • Knmi.IrisValidated
  • Knmi.RegionalEps
  • Knmi.Synops
  • Knmi.WaterSetupEps
  • Knmi.Warnings
  • Knmi.AwsTenMinutes
  • Meteobase.Evaporation.Makkink
  • Meteobase.Evaporation.PennmanMonteith
  • Meteobase.Precipitation
  • Knmi.WaquaTs
  • Knmi.Naval.Warnings
  • Knmi.Naval.Forecasts
  • Knmi.FromMeteobase.Synops
  • Knmi.FromMeteobase.Evaporation

 

Missing values.

If the WIWB specifies the missing value for a datasource, this will be used by FEWS. The missing value can also be specified in the import configuration as well. The default value for missing value is -9999 for the WIWB api.

This example is configured to import 2D Hourly grids for the last 24 hours:

ImportNetcdf_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>
			
<!--				
Make sure the parameters that are needed are added to the URL:
The following parameters are available:
	uo
	vo
	zos
	thetao
Also set the x, y, and z values:
	x_lo, x_hi, y_lo, y_hi, z_lo, z_hi
-->			
		<serverUrl>http://nrtcmems.mercator-ocean.fr/mis-gateway-servlet/Motu?product=global-analysis-forecast-phy-001-024-hourly-t-u-v-ssh&amp;service=http://purl.org/myocean/ontology/service/database%23GLOBAL_ANALYSIS_FORECAST_PHY_001_024-TDS&amp;variable=uo&amp;variable=vo&amp;variable=zos&amp;variable=thetao&amp;x_lo=43.0&amp;x_hi=65.0&amp;y_lo=8.0&amp;y_hi=28.0&amp;z_lo=0.494&amp;z_hi=5727.9171</serverUrl>
			<user>USERNAME</user>
			<password>PASSWORD</password>
			<relativeViewPeriod unit="hour" start="-24" end="0" startOverrulable="true"/>
			<idMapId>IdImportCmems</idMapId>
			<unitConversionsId>ImportUnitConversions</unitConversionsId>
			<expiryTime unit="week" multiplier="500"/>
		</general>
		<properties>
			<string key="DATA_TYPE" value="2D_HOURLY"></string>
			<string key="TICKET_URL" value="https://cmems-cas.cls.fr/cas/v1/tickets"></string>
		</properties>
		<timeSeriesSet>
			<moduleInstanceId>Import_E2O_Server</moduleInstanceId>
			<valueType>grid</valueType>
			<parameterId>Wind.u</parameterId>
			<locationId>CMEMS_2D</locationId>
			<timeSeriesType>external historical</timeSeriesType>
		    <timeStep unit="nonequidistant"/>
			<readWriteMode>add originals</readWriteMode>
		</timeSeriesSet>
		<timeSeriesSet>
			<moduleInstanceId>Import_E2O_Server</moduleInstanceId>
			<valueType>grid</valueType>
			<parameterId>Wind.v</parameterId>
			<locationId>CMEMS_2D</locationId>
			<timeSeriesType>external historical</timeSeriesType>
			<timeStep unit="nonequidistant"/>
			<readWriteMode>add originals</readWriteMode>
		</timeSeriesSet>
	</import>
</timeSeriesImportRun></timeSer
 
The following example is configured for importing daily 3D grids:
	<import>
		<general>
			<importType>Cmems</importType>
			<serverUrl>http://nrtcmems.mercator-ocean.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></user>
			<password></password>
			<relativeViewPeriod unit="day" start="-1" end="1" startOverrulable="true"/>
			<idMapId>IdImport_CMEMS</idMapId>
			<unitConversionsId>ImportUnitConversions</unitConversionsId>
			<expiryTime unit="day" multiplier="356"/>
		</general>
		<properties>
			<string key="TICKET_URL" value="https://cmems-cas.cls.fr/cas/v1/tickets"/>
			<string key="DATA_TYPE" value="3D_DAILY"/>
		</properties>
		<timeSeriesSet>
			<moduleInstanceId>Import_CMEMS</moduleInstanceId>
			<valueType>grid</valueType>
			<parameterId>T.simulated.CMEMS</parameterId>
			<locationId>CMEMS_3D</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.

IdImportNetCDF 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>

Grids Configuration

  • No labels