Overview

Since 2017.01. Import for Operational Snow-HyDrological service (OSHD) ascii grid files with additional metadata files. Each file contains an ESRI ascii grid with data. For each grid file there must be an additional metadata file with the same name as the grid file, only different extension (.META). The import module will need to know what the data files are, therefore a fileNamePatternFilter must be used to import only the ASCII data. The Import module will find the corresponding META files that are linked to these ASC data files.

importType: OSHDAsciiGrid

Data Format

Example format of an OSHD metadata file:

META DATA FILE FOR OSHD_data.20170309-0626.SNOWMELT_RUNOFF.D1.ASC

# TYPE
short name: SNOWMELT
long name: Snowmelt runoff
unit: mm/24h

# PERIOD
begin: 09.03.2017 06:00 MEZ
end: 10.03.2017 06:00 MEZ
duration: 24 h

# SOURCE
model type: TIM (temperature index model)
model version: EKF 17 r135
last manual update: 08.03.2017
forecast data #1: COSMO 1 @ 09.03.2017 03:00 UTC
forecast data #2: COSMO E @ 09.03.2017 00:00 UTC

# TIME STAMP
pced: 09.03.2017 06:26
forecast time: 09.03.2017 03:00 UTC

The metadata key/value pairs are imported into Delft-FEWS as follows:

Metadata fileDelft-FEWS
short nameexternal parameter id
long nameignored
unitexternal unit
begincomment
endvalid time and comment
durationignored
pcedignored
forecast timeexternal forecast time
all other key/value pairscomment

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>OSHDAsciiGrid</importType>
			<folder>$IMPORT_FOLDER_ROOT$/OSHD</folder>
			<fileNamePatternFilter>*.ASC</fileNamePatternFilter>
			<idMapId>IdImportOSHD</idMapId>
			<geoDatum>CH1903</geoDatum>
		</general>
		<timeSeriesSet>
			<moduleInstanceId>ImportOSHDGrids</moduleInstanceId>
			<valueType>grid</valueType>
			<parameterId>SM.fx</parameterId>
			<locationId>OSHD_Grid</locationId>
			<timeSeriesType>external forecasting</timeSeriesType>
			<timeStep unit="nonequidistant"/>
			<readWriteMode>add originals</readWriteMode>
		</timeSeriesSet>
    </import>
</timeSeriesImportRun>
  • No labels