Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

While the output of the RIV and DRA package can be produced as a grid covering the full model area, it is recommended to create a sparse grid (similar to the StreamCells-sparse grid), to save disk space. The Module Adapter contains functionality to accommodate the generation of such sparse grid. Once generated, this sparse grid needs to be copied to the main grids.xml file. In addition, the locations.xml file needs to hold a location-id which points to this grid.

Update grids.xml
  1. extend module Adapter instructions for config preparation (XXX_prepare.in)
    add commandsby adding the following command(s):
    • RIV_OUT QRIV (creates a sparse grid of river cells)
    • DRN_OUT QDRA (creates a sparse grid of drainage cells)
    • GHB_OUT Q_GHB (creates a sparse grid of boundary cells)

...

  1. for each of the generated grids.xml:
    • copy the irregular grid-definition into the main grids.xml
    • rename the locationId into "<model>_DrainageCells_sparse_grid", resp. "<model>_RiverCells_sparse_grid", resp."<model>_BoundaryCells_sparse_grid".
    • replace the number of rows by 1
    • replace the number of columns by the number of grid-cells
Info

Example generated)
<irregular locationId="EK_QDRA_Cells">
<description>EK_QDRA_Cells</description>
<rows>178</rows>
<columns>146</columns>
<geoDatum>Ordnance Survey Great Britain 1936</geoDatum>
<cellCentre>
<x>629057.56</x>
<y>139131.19</y>
<z>2.</z>
</cellCentre>
...
</irregular>

Info

Example (Corrected)
<irregular locationId="EK_DrainageCells_sparse_grid">
<description>model grid placeholder</description>
<rows>1</rows>
<columns>353</columns>
<geoDatum>Ordnance Survey Great Britain 1936</geoDatum>
<cellCentre>
<x>629057.56</x>
<y>139131.19</y>
<z>2.</z>
</cellCentre>
...
</irregular>

Update locations.xml
  1. Add locationId for each new sparse grid
Info

Example
<location id="EK_DrainageCells_sparse_grid" name="East Kent drainage cells">
<description>model grid placeholder</description>
<shortName>East Kent drainage cells</shortName>
<toolTip>East Kent drainage</toolTip>
<x>595600</x>
<y>194900</y>
<z>1</z>
</location>
<location id="EK_BoundaryCells_sparse_grid" name="East Kent boundary cells">
<description>model grid placeholder</description>
<shortName>East Kent boundary cells</shortName>
<toolTip>East Kent boundaries</toolTip>
<x>595600</x>
<y>194900</y>
<z>1</z>
</location>

For each scenario conduct the following steps:

...