Versions Compared

Key

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

...

This import can be used to import the latest (grid) forecast from a the netcdf storage from the Deltares Open Archive.

It might be possible to use this import for any THREDDS-server.  However the parsers used in this import are the parsers used in the Netcdf storage.

These parsers are quite generic so it is very likely that they are capable of parsing the content of an external THREDDS server, but it is not guaranteed!


The import will determine which file contains the latest forecast by using a filepattern.

...

  • dataServerURL, The URL of the root of the HTTP-server of THREDDS. 
  • relativePath. The relativePath of the THREDDS directory compared to the root of the THREDDS-server. It is possible to include a date/time pattern in the relativePath. Note that the parts which are part of the date/time pattern should be in between quotes (').
  • filePattern. The file pattern which will be used to determine the date/time from the file name.
  • importReferencesimportAsReferences. This properties is a boolean. It indicates if the grid data should be imported by references or not. The default is no.


Note that you have to configure two URL! The first one is the URL of the THREDDS catalogue. This URL is configured in the serverURL element.

The second URL is the URL of the HTTP-server of THREDDS. This URL is configured in the properties section as the property dataServerURL.

Example

Code Block
languagexml
<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XMLSpy v2009 sp1 (http://www.altova.com) by ICT (Stichting Deltares) -->
<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>
			<importTypeStandard>NetCDFStorageLatestForecastGrid</importTypeStandard>
			<serverUrl>http://tl-tc119.xtr.deltares.nl:22002/thredds/</serverUrl>
		</general>
		<properties>
			<string key="filePattern" value="yyyyMMddHHmm"/>
			<string key="relativePath" value="'data/netcdf-storage/rws/dcm5_v5_hirlam'"/>
			<string key="dataServerUrl" value="http://tl-tc119.xtr.deltares.nl:22002/thredds/fileServer"/>
			<bool key="importAsReferences" value="true"/>
		</properties>
		<timeSeriesSet>
			<moduleInstanceId>import_knmi_harmonie40</moduleInstanceId>
			<valueType>grid</valueType>
			<parameterId>air_pressure_fixed_height</parameterId>
			<locationId>knmi_harmonie40</locationId>
			<timeSeriesType>external forecasting</timeSeriesType>
			<timeStep unit="nonequidistant"/>
			<readWriteMode>add originals</readWriteMode>
		</timeSeriesSet>
	</import>
</timeSeriesImportRun>


...