Overview

Imports Swiss Meteo Data time series data as ASCII files that are delivered to FOEN in Switzerland. These files are almost similar to the EKSW2005 data files, date format is slightly different. The files can contain multiple meteorological time series. The files have an extension that contains the delivery date, example of file name "VQJA27.200711182120".

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 VQJA file has the following characteristics:

  • First 3 lines in the file are header lines, not used on importing (empty line are skipped automatically)
  • Line with location and parameter ID's is read as follows:
    • Location ID
    • DateTime with following format "yyyyMMddHH"
    • Parameter ID's
  • Missing data identifier is expected to be: NA

ModuleConfigFiles/

The following example of an Import Module Instance will import the time series as equidistant 15 minute interval series for time zone GMT+1 hour.

Import_VQJA.xml
<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>VQJA</importType>
			<folder>$IMPORT_FOLDER_ROOT$/vqja27</folder>
			<failedFolder>$FAILED_FOLDER_ROOT$</failedFolder>
			<idMapId>ImportVQJA</idMapId>
			<unitConversionsId>ImportUnits</unitConversionsId>
			<importTimeZone>
				<timeZoneOffset>00:00</timeZoneOffset>
			</importTimeZone>
			<dataFeedId>Import.VQJA</dataFeedId>
		</general>
		<timeSeriesSet>
			<moduleInstanceId>Observed</moduleInstanceId>
			<valueType>scalar</valueType>
			<parameterId>P.m</parameterId>
			<locationSetId>MeteoStations_ALL</locationSetId>
			<timeSeriesType>external historical</timeSeriesType>
			<timeStep unit="hour"/>
			<readWriteMode>add originals</readWriteMode>
		</timeSeriesSet>
		<externUnit parameterId="P.m" unit="mm"/>
	</import>
</timeSeriesImportRun>

IdMapFiles/

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

sample of ImportVQJA.xml
<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.m" external="rre150b0"/>
	<location internal="VQJA_Station" external="IYCEM"/>
</idMap>

Example File/

VQJA34.201601080400
225
VQJA34 LSSW 080400
MeteoSchweiz / MeteoSuisse / MeteoSvizzera / MeteoSwiss
 
stn     time           
IYCEM   20160107 2300       0.0
IYCEM   20160108 0000       0.0
IYCEM   20160108 0100       0.0
IYCEM   20160108 0200       0.0
IYCEM   20160108 0300       0.0 
........

Java source code

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

  • No labels