Overview
This import can be used to import the latest (grid) forecast from a THREDDS-server. The import will determine which file contains the latest forecast by using a filepattern.
By applying the file pattern to the file name the import can determine the date/time of the file. The file with the latest date/time will be imported. Files which do not have a matching file pattern will be ignored.
Several properties are mandatory when using this import:
- 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.
- importReferences. This properties is a boolean. It indicates if the grid data should be imported by references or not. The default is no.
Example
<?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"/> </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>