Scenario Editor Configuration

The scenario editor configuration has several attributes. The deploymentMethod attribute indicates whether the Run button uses the RunDialog or the ManualForecastDialog. Restrictions on permissions can be configured for end-users.

The defaults field specified the map to show in the Map tabs.

The intervention type for ConfigFileSelection allows the users to specify config files by their name and version.

These can then be exported by the General adapter in order to be picked up by the adapter and the model.

 

 


 

ExportLocationAreaActivity

Exports an area selection mask in the form of a PiMapStack. This activity requires selectedLocationIds to be specified within the TaskProperties. This selection is then available to be used by the pre and post adapter.

 

description

Optional description for the activity. Used for reference purposes only.

exportFile

File name of the file to be exported. Always placed into the export dir.

gridLocationId

Locations that contains the reference grid information.

gridFormat

Format of the PiMapStack file. Can be

  • asc : for exporting to ARC-INFO ASCII grid format
  • pcrgrid : for exporting to PCRaster native grid file format
  • usgs : for exporting to USGS DEM format (BIL)
polygonLocationId

Identifier for locationset for which to generate grid files. The locations should have polygons associated with them.


ExportAreaSelectionActivity

Exports an area selection mask as a PiMapStack. This activity requires an embedded polygon to be specified within the areaSelectionShapeFileBase64 field of the TaskProperties. This file is then available to be used by the pre and post adapter.
 

description

Optional description for the activity. Used for reference purposes only.

exportFile

File name of the file to be exported. Always placed into the export dir.

gridLocationId

Locations that contains the reference grid information.

gridFormat

Format of the PiMapStack file. Can be

  • asc : for exporting to ARC-INFO ASCII grid format
  • pcrgrid : for exporting to PCRaster native grid file format
  • usgs : for exporting to USGS DEM format (BIL)

Using the area selection and location selection

The General Adapter contains several import activities with an attribute called exportPlaceholdFile. When this kind of import activity is configured in the same workflow after the post adapter, this option will generate a file before the model adapter is started. This file contains the selection of locations in PI format that can be used in the pre-adapter or the model to determine which locations to include in the calculation.

exportPlaceholdFile

If <exportPlaceholderFile>true</exportPlaceholderFile>, then the General adapter will generate placeholder files. A placeholder file is a file with headers only, without timeseries. Its name is the same as filename configured for the ImportActivity and this placeholderfile is written to the import directory. The placeholder files are written before any execute activity is started. The models cq model adapters should read this placeholder files to see which data should be provided to import in FEWS.

  • <importTimeSeriesActivity> writes headers to pi_timeseries.xml
  • <importMapStacksActivity> writes headers to pi_mapstacks.xml
  • <importPiNetcdfActivity> writes headers to NC file
  • <importProfilesActivity> writes headers to pi_profiles.xml

The intention behind this exportPlaceholderFile functionality is that the model cq modeladapter reads the placeholders to see which timeseries are required by Fews.
After simulation, the model cq modeladapter overwrites these files with its own data over the placeholder files ready to be imported by the import activity.


  • No labels