Page tree
Skip to end of metadata
Go to start of metadata

Import for hydro estimator data from file.

File Format

The import expects the file to contain three columns, separated by spaces. One column containing the latitude (with column header lat), one column containing the longitude (column header lon) and the third column containing the value. The file name must start with the date and time following the format "yyMMdd.hhmm". The year is computed by adding 2000 to the two digits given in the file name. An example of a correctly formatted file is given below.

hydro estimator file named: 180325.1200.anything.can.follow.txt
 lon        lat        precip
-57.0828   -28.0832    88.9917
-57.0409   -28.0832    96.4583
-56.9990   -28.0832    99.4583
-56.9571   -28.0832    86.1250

Since the file name is "180325.1200.anything.can.follow.txt", this data would be imported at time step 25-03-2018 12:00. 


It is required to configure the grid for which the data is imported in the grids.xml. The import then matches each point in the file to the closest grid point and records the value for that point. The import can be activated using importType "UruguayHydroEstimator". An example of a moduleConfigFile containing the import is given below.

Example config UruguayHydroEstimator import
<?xml version="1.0" encoding="UTF-8"?>
<timeSeriesImportRun xmlns="" xmlns:xsi="" xsi:schemaLocation="">
			<timeSeriesType>external historical</timeSeriesType>
			<timeStep unit="hour" multiplier="12"/>
			<readWriteMode>add originals</readWriteMode>

For this example, there must be a grid configured in the grids.xml for locationId "hydroEstimator".

  • No labels