...
The first steps in the general adapter run are the data set, netcdf and run file export activities, the exported files . The <exportDataSetActivity> will extract a zip file with the module instance id as file name located in "Config\ModuleDataSetFiles\" of the FEWS environment to the workdir. The <exportNetcdfActivity>'s will be a netcdf file (bcfile.nc) containing Swan golf spectra over time and a netcdf file (zs0file.nc) containing water level over time. The exported run file can contain properties to be used <exportNetcdfRunFileActivity> will be a netcdf run file that contains information needed by the pre adapter. For example properties starting with "PARAM_" will be passed literally to The information will be automatically filled by the general adapter but properties can be configured as extra information. For example properties starting with "PARAM_" will be passed literally to XBeach without "PARAM_" (and in lower case).
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
<exportActivities> <exportDataSetActivity> <moduleInstanceId>Run_XBeach</moduleInstanceId> </exportDataSetActivity> <exportNetcdfActivity> <exportFile>bcfile.nc</exportFile> <timeSeriesSets> <timeSeriesSet> <moduleInstanceId>Run_XBeach</moduleInstanceId> <valueType>scalar</valueType> <parameterId>EnDens</parameterId> <domainParameterId>AFREQ</domainParameterId> <domainParameterId>NDIR</domainParameterId> <locationId>Dummy</locationId> <timeSeriesType>external historical</timeSeriesType> <timeStep unit="hour"/> <relativeViewPeriod unit="hour" start="-24" end="0"/> <readWriteMode>add originals</readWriteMode> <synchLevel>1</synchLevel> </timeSeriesSet> </timeSeriesSets> </exportNetcdfActivity> <exportNetcdfActivity> <exportFile>zs0file.nc</exportFile> <timeSeriesSets> <timeSeriesSet> <moduleInstanceId>Run_XBeach</moduleInstanceId> <valueType>scalar</valueType> <parameterId>H_mean</parameterId> <locationId>Dummy</locationId> <timeSeriesType>external historical</timeSeriesType> <timeStep unit="minute" multiplier="10"/> <relativeViewPeriod unit="hour" start="-24" end="0"/> <readWriteMode>add originals</readWriteMode> </timeSeriesSet> </timeSeriesSets> </exportNetcdfActivity> <exportRunFileActivity> <description>This pi run file is passes as argument to XBeachPreAdapter</description> <exportFile>pi_run\pi-run.xml</exportFile> <properties> <description>Specific configuration required for MyPreAdapter and MyPostAdapter</description> <string key="TIDE_VARIABLE" value="H_mean"/> <string key="PARAM_TUNITS" value="seconds since 2001-01-01"/> <string key="PARAM_OUTPUTFORMAT" value="netcdf"/> <string key="PARAM_TSTOP" value="36000"/> </properties>/timeSeriesSet> </timeSeriesSets> </exportNetcdfActivity> <exportNetcdfRunFileActivity> <description>This run file is passed as argument to XBeachPreAdapter</description> <exportFile>run.nc</exportFile> </exportRunFileActivity>exportNetcdfRunFileActivity> </exportActivities> |
Execute activities
The next steps are the execute activities. The first will be the pre adapter. This program will read the pi- run.xml nc input file and use the properties contents for instructions on which directory and files should be used to convert to the correct XBeach input format.
...