...
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> <importType>DXONLINE</importType> <folder>$DXONLINE_IMPORT$\<IMPORT$</folder> <idMapId>dxMapId</idMapId> </general> <timeSeriesSet> <moduleInstanceId>GridImportDxonline</moduleInstanceId> <valueType>grid</valueType> <parameterId>H.observed</parameterId> <locationId>cxLocation</locationId> <timeSeriesType>external historical</timeSeriesType> <timeStep unit="nonequidistant"/> <readWriteMode>add originals</readWriteMode> </timeSeriesSet> </import> </timeSeriesImportRun> |
The IdMapping configuration cemigMapIddxMapId.xml is needed to maps the internal FEWS Id's to the CEMIG DxOnline Id's. An example IdMapping file importer is shown below. As an example the H.observed parameter is used tp map the RATE parameter and a location cxLocation has been defined in the Locations.xml that the COMP location will be mapped to:
Code Block | ||||
---|---|---|---|---|
| ||||
<?xml version="1.0" encoding="UTF-8"?> <idMap version="1.1" 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/idMap.xsd"> .... <parameter external="RATE" internal="H.observed" /> <location external="COMP" internal="preccxLocation" /> .... </idMap> |
The actual grid definition (grids.xml) looks as follows:
...