Available since 2018.02.
This parser can import grid data from txt files in the following format:
118.730 41.1418 0.000000 118.770 41.1418 0.000000 118.810 41.1418 0.000000 118.850 41.1418 0.000000 118.890 41.1418 0.000000 118.930 41.1418 0.000000 118.970 41.1418 0.000000
First column is the X coordinate, second column is y coordinate, third is the measured value.
The file name must contain the parameter, and the start and end of the measurement period. Within the same file all measurement data will be parsed for the same time step, which is the end time of the measurement period. The file name has to follow the this patter format:
'parameter_yyyyMMddHH-MMddHH' OR:
'parameter_yyyyMMddHH-yyyyMMddHH"
Configuration example:
<?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>TaoGrid</importType> <folder>$IMPORT_FOLDER$/TaoGrid</folder> <deleteImportedFiles>false</deleteImportedFiles> <missingValue>-999.99</missingValue> </general> <timeSeriesSet> <moduleInstanceId>TaoGrid</moduleInstanceId> <valueType>grid</valueType> <parameterId>rainfall</parameterId> <locationId>Taolinkou</locationId> <timeSeriesType>external historical</timeSeriesType> <timeStep unit="nonequidistant"/> <readWriteMode>add originals</readWriteMode> </timeSeriesSet> </import> </timeSeriesImportRun>
The importer module should be registered in FEWS Config/RegionConfigFiles/ModuleInstanceDescriptors.xml. Locations of the wanted time series should be registered in Config/RegionConfigFiles/Locations.xml. Parameters should be registered in Config/RegionConfigFiles/Parameter.xml. The workflow should be registered in Config\RegionConfigFiles\WorkflowDescriptors.xml.
A grid needs to be configured in the Config/RegionConfigFiles/Grids.xml file. Location id of the grid and the time series configured in import should be the same. Example:
<?xml version="1.0" encoding="UTF-8"?> <grids 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/grids.xsd"> <regular locationId="Taolinkou"> <description>Taolinkou</description> <rows>25</rows> <columns>21</columns> <geoDatum>WGS 1984</geoDatum> <firstCellCenter> <x>118.75</x> <y>41.1218</y> </firstCellCenter> <xCellSize>0.04</xCellSize> <yCellSize>0.04</yCellSize> </regular> </grids>