| | 13 | == How do I extract elevation and other quantities from a SWW file? == |
| | 14 | |
| | 15 | The function {{{sww2dem}}} can extract any quantity, or expression using |
| | 16 | quantities, from a SWW file as used in |
| | 17 | the Cairns example described earlier. This function is used in {{{ExportResults.py}}} |
| | 18 | in the Cairns demo folder where stage, absolute momentum, depth, speed and elevation |
| | 19 | can be exported from the input {{{.sww}}} file. Note that depth, absolute momentum and speed |
| | 20 | are expressions and stage and elevation are quantities. In addition to extracting a particular |
| | 21 | quantity or expression, the user can define a region to extract these values by |
| | 22 | defining the minimum and maximum of both the easting and northing coordinates. The function |
| | 23 | also calls for a grid resolution, or cell size, to extract these values at. It is |
| | 24 | recommended to align this resolution with the mesh resolution in the desired region and to not |
| | 25 | generate a fine grid where the model output cannot support that resolution. |
| | 26 | |