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 a an OSHD metadata file:
No Format |
---|
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 file | Delft-FEWS |
---|---|
short name | external parameter id |
long name | ignored |
unit | external unit |
begin | comment |
end | valid time and comment |
duration | ignored |
pced | ignored |
forecast time | external forecast time |
all other key/value pairs | comment |
...
Code Block | ||||
---|---|---|---|---|
| ||||
<?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> <general> <importType>OSHDAsciiGrid</importType> <folder>$IMPORT_FOLDER_ROOT$/SWE<OSHD</folder> <idMapId>IdImportSWEAsc</idMapId> <geoDatum>CH1903</geoDatum> </general> <timeSeriesSet> <moduleInstanceId>ImportSWE</moduleInstanceId> <valueType>grid</valueType> <parameterId>SWE.fh</parameterId> <locationId>Swissix</locationId> <timeSeriesType>external forecasting</timeSeriesType> <timeStep unit="hour" multiplier="1"/> <readWriteMode>add originals</readWriteMode> <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> |