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 VQJA data files, date format is slightly different. The files 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 EKSW 2005 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.
<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>EKSW2005</importType> <folder>$IMPORT_FOLDER_ROOT$/vqja27</folder> <failedFolder>$FAILED_FOLDER_ROOT$</failedFolder> <idMapId>ImportEKSW2005</idMapId> <unitConversionsId>ImportEKSW2005Units</unitConversionsId> <importTimeZone> <timeZoneOffset>-01:00</timeZoneOffset> </importTimeZone> <dataFeedId>Import.VQJA27</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> <timeSeriesSet> <moduleInstanceId>Observed</moduleInstanceId> <valueType>scalar</valueType> <parameterId>T.m</parameterId> <locationSetId>MeteoStations_ALL</locationSetId> <timeSeriesType>external historical</timeSeriesType> <timeStep unit="hour"/> <readWriteMode>add originals</readWriteMode> </timeSeriesSet> <externUnit parameterId="P.m" unit="mm"/> <externUnit parameterId="T.m" unit="oC"/> </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.
<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="T.m" external="tre200hs"/> <parameter internal="Tdew.m" external="tde200hs"/> <parameter internal="P.m" external="rre150h0"/> <parameter internal="WS.m" external="fve010hz"/> <parameter internal="GR.m" external="gre000h0"/> <parameter internal="SD.m" external="sre000h0"/> <location internal="M-0280" external="0280"/> <location internal="M-0060" external="0060"/> <location internal="M-0440" external="0440"/> <location internal="M-0460" external="0460"/> </idMap>
Example File/
591 VQJA27 LSSW 112120 MeteoSchweiz / MeteoSuisse / MeteoSvizzera / MeteoSwiss stn time tre200hs rre150h0 tde200hs fve010hz gre000h0 sre000h0 0060 200801111540 5.9 0.0 -2.4 4.3 32 0 0060 200801111640 5.1 0.0 -1.5 1.9 -2 0 0060 200801111740 6.6 0.0 -2.8 1.7 -3 0 0060 200801111840 5.8 0.0 -2.2 2.6 -2 0 0060 200801111940 5.8 0.0 -2.1 3.0 -2 0 ........
Java source code
Delft-FEWS Java import parser source code: Eksw2005TimeSeriesParser.java