Overview
Imports time series data from files in CSV format with one header line containing a column heades of the time series:
- The first line contains the column names (fields) in the csv file, the line is used to determine the field separator and to determine the names of the data columns
- All other lines contain the date-time as field and the values for each time series.
- Values between -1000.0 and -999.0 (inclusive) are regarded as missing values.
The CSV files can be supplied in a ZIP file.
Import type
The import type is generalCSV. There is no particular file extension required.
Example
Here is a simple example:
Time,Waterstand,Pomp-1 Born 04-05-2011 03:24,0.000000,-0.450000 04-05-2011 03:44,0.000000,-0.450000 04-05-2011 03:54,0.000000,-0.440000 .....
for configuration of the table layout see
Table Layout
<?xml version="1.0" encoding="UTF-8"?> <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>generalCSV</importType> <folder>$IMPORT_FOLDER$/OBS</folder> <failedFolder>$IMPORT_FAILED_FOLDER$</failedFolder> <backupFolder>$IMPORT_BACKUP_FOLDER$/OBS</backupFolder> <table> <dateTimeColumn name="Time" pattern="dd-MM-yyyy HH:mm"/> <valueColumn unit="m" locationId="Bosscheveld" parameterId="H.meting" name="Waterstand"/> <valueColumn unit="min" locationId="Bosscheveld" parameterId="DT.meting" name="Pomp-1 Born"/> </table> <idMapId>IdImportOBS</idMapId> <unitConversionsId>ImportUnitConversions</unitConversionsId> <importTimeZone> <timeZoneOffset>+00:00</timeZoneOffset> </importTimeZone> </general> </import> </timeSeriesImportRun>
Details of the import format
If the first line contains a comma, the decimal separator is taken to be a period (.), otherwise it is supposed to be a semicolon (;) and the decimal separator is taken to be a comma. This way locale-specific CSV files are supported.
The field separator is either a comma or a semicolon. Tabs are not supported.