...
Code Block |
---|
| xml |
---|
| xml |
---|
title | module run execute activity |
---|
|
<executeActivity>
<command>
<executable>wes.exe</executable>
</command>
<arguments>
<argument>wes_input.inp</argument>
</arguments>
<timeOut>99999999</timeOut>
<ignoreDiagnostics>true</ignoreDiagnostics>
</executeActivity>
|
Executing post adapter
The post adapter converts Converts model output (cil0wes_30mv3_outinput.ascspw) in esri in spiderweb grid format to fews netcdf rotated pole grid format for T0. The name of the netcdf file will be the name configured for the netcdf import activity which is stored in the netcdf run file, for each time step a seperate netcdf file is created because each time step has a seperate grid definition.
The post adapter writes log messages to log file called Fast_Post_Adapterwes.log which can be read into FEWS by coupling line patterns to FEWS log messages.
Code Block |
---|
| xml |
---|
| xml |
---|
title | post adapter execute activity |
---|
|
<executeActivity>
<command>
<className>nl.deltares.fastwes.post.FastPostAdapter<WesPostAdapter</className>
<binDir>adapter\bin</binDir>
</command>
<arguments>
<argument>run.nc</argument>
</arguments>
<logFile>
<file>Fast_Post_Adapter<file>wes.log</file>
<errorLinePattern>ERROR*</errorLinePattern>
<warningLinePattern>WARN*</warningLinePattern>
<infoLinePattern>INFO*</infoLinePattern>
<debugLinePattern>DEBUG*</debugLinePattern>
</logFile>
<timeOut>99999999</timeOut>
<ignoreDiagnostics>true</ignoreDiagnostics>
</executeActivity>
|
...
The last part of the general adapter run is importing the post adapter output. It uses <folder> and <fileNamePattern> in order to import the netcdf files for each time step.
Code Block |
---|
| xml |
---|
| xml |
---|
title | model run output import activity |
---|
|
<importActivities>
<importNetcdfActivity>
<folder>workdir</folder>
<importFile>postAdapterOutput<fileNamePatternFilter>wes_grid_*.nc</importFile>fileNamePatternFilter>
<timeSeriesSets>
<timeSeriesSet>
<moduleInstanceId>Run_WES_XBeach<Import</moduleInstanceId>
<valueType>grid</valueType>
<parameterId>H_max<<parameterId>Wind.speed</parameterId>
<locationId>Fast<<locationId>WilmaTest21</locationId>
<timeSeriesType>external historical</timeSeriesType>
<timeStep unit="hour" multiplier="nonequidistant1"/>
<readWriteMode>read complete forecast</readWriteMode>
</timeSeriesSet>
</timeSeriesSets>
</importNetcdfActivity>
</importActivities>
|