...
forecast (optional): Possible values are true or false. Default is false. If forecast is set to true, the forecast date will be registered as T0 and the first import value will be assumed to start at T0 + the configured timeStep.
vars (required): should contain one or more , separated list of parameter names. The parameters are expected to be present in the binary file in the specified order. Only one value per parameter is assumed.
fileNameDateTimePattern (required): pattern of the filename where the date is marked with single quotes ('). For example "prec_'yyyyMMdd'.bin". The date is used to determine T0 or the forecast date from the file name.
tdefUnit (optional): Required if more than one timestep is available in the binary format. Possible values are: second, minute, hour, day, month, year. Only equidistant timesteps are supported.
tdefValue (optional): Specifify the amount of units specified in the tdefUnit.
Configuring the Import
To make the importer known to FEWS, the import module has to be declared in the moduleInstanceDescriptors.xml in the RegionConfigFiles directory of the FEWS configuration:
Code Block | ||||
---|---|---|---|---|
| ||||
<?xml version="1.0" encoding="UTF-8"?>
<moduleInstanceDescriptors 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/moduleInstanceDescriptors.xsd" version="1.0">
...
<moduleInstanceDescriptor id="ImportCEMIG-anna25">
<moduleId>TimeSeriesImportRun</moduleId>
</moduleInstanceDescriptor>
...
</moduleInstanceDescriptors>
|
...
The actual grid definition looks as follows:
No Format |
---|
A <?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="CMEG-anna25-location"> <description>CMEG ANA25 Import</description> <rows>160</rows> <columns>176</columns> <geoDatum>WGS 1984</geoDatum> <firstCellCenter> <x>-76.25</x> <y>5.50</y> </firstCellCenter> <xCellSize>0.25</xCellSize> <yCellSize>0.25</yCellSize> </regular> </grids> |