Overview

Imports COSMO7 Corrected gridded forecast time series data as ASCII files that are delivered to FOEN in Switzerland by Meteo Swiss. The files contain COSMO7 corrected rainfall time series in mm. The files have an extension of *.dat, example of file name "gridpoints_dch.dat".

Configuration (Example)

A complete import module configuration consists of an ID Mapping file and an Import Module Instance file. Examples of the two are provided below.

The COSMO7 Corrected file has the following characteristics:

ModuleConfigFiles/

The following example of an Import Module Instance will import the gridded rainfall time series as equidistant 1 hour interval series for time zone GMT+0 hours.

<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>COSMO7_COR</importType>
			<folder>$IMPORT_FOLDER_ROOT$/cosmo7_corr</folder>
			<idMapId>ImportCOSMO7_Corr</idMapId>
			<importTimeZone>
				<timeZoneOffset>+00:00</timeZoneOffset>
			</importTimeZone>
			<dataFeedId>Import.coch7cor</dataFeedId>
		</general>
		<timeSeriesSet>
			<moduleInstanceId>ImportCOSMO7_Corr</moduleInstanceId>
			<valueType>grid</valueType>
			<parameterId>P.fg</parameterId>
			<locationId>COSMO7_Corr</locationId>
			<timeSeriesType>external forecasting</timeSeriesType>
			<timeStep unit="hour"/>
			<readWriteMode>add originals</readWriteMode>
			<synchLevel>6</synchLevel>
			<expiryTime unit="day" multiplier="2"/>
		</timeSeriesSet>
	</import>
</timeSeriesImportRun>

IdMapFiles/

The ID mapping file will contain a mapping of the parameter and location in the data file with the internal parameter and location ID’s of the Delft-FEWS application.

<idMap 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" version="1.1">
	<parameter internal="P.fg" external="1H_PREC"/>
	<location internal="COSMO7_Corr" external="COSMO7_COR"/>
</idMap>

Example File/

  MODEL|DATA PROCESSING|VALID_TIME|PARAM|POINT INDEX|LON|LAT|VALUE
MODEL RUNTIME: 2015101106

COSMO|dmo|15101106|1H_PREC|1|4.8672|45.4421|nil
COSMO|dmo|15101107|1H_PREC|1|4.8672|45.4421|0
COSMO|dmo|15101108|1H_PREC|1|4.8672|45.4421|0
COSMO|dmo|15101109|1H_PREC|1|4.8672|45.4421|0
........

Java source code

Delft-FEWS Java import parser source code: Cosmo7corTimeSeriesParser.java