Versions Compared

Key

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

...

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

Code Block
languagexml
borderStylesolid
titleImportNetcdf_Grid 1.00 default.xml
linenumberstrue
<?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>Cmems</importType>		
			<serverUrl>http://nrtcmems.mercator-ocean.fr/mis-gateway-servlet/Motu?action=productdownload</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="HOURLY"></string>
			<string key="TICKET_URL" value="https://cmems-cas.cls.fr/cas/v1/tickets"></string>
			<string key="product" value="global-analysis-forecast-phy-001-024-hourly-t-u-v-ssh"/>
			<string key="service" value="http://purl.org/myocean/ontology/service/database%23GLOBAL_ANALYSIS_FORECAST_PHY_001_024-TDS"/>
		</properties>
		<timeSeriesSet>
			<moduleInstanceId>Import_E2O_Server</moduleInstanceId>
			<valueType>grid</valueType>
			<parameterId>Wind.u</parameterId>
			<locationId>$LOOP_LOCATION_ID$</locationId>
			<timeSeriesType>external historical</timeSeriesType>
		    <timeStep unit="nonequidistant"/>
			<readWriteMode>add originals</readWriteMode>
		</timeSeriesSet>		
	</import>
</timeSeriesImportRun></timeSer

...

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

Code Block
languagexml
borderStylesolid
titleIdImportNetCDF 1.00 default.xml
linenumberstrue
<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>

...

When importing grids in the FEWS database it is required to configure the grid characteristics in the grids.XML file. The grid characteristics must be similar to the grid imported from the NetCDF file.

Code Block
languagexml
borderStylesolid
titleGrids 1.00 default.xml
linenumberstrue
	<regular locationId="CMEMS_2D">
		<rows>241</rows>
		<columns>265</columns>
		<geoDatum>WGS 1984</geoDatum>
		<firstCellCenter>
			<x>43</x>
			<y>28</y>
		</firstCellCenter>
		<xCellSize>0.0833</xCellSize>
		<yCellSize>0.0833</yCellSize>
	</regular>

...