Past versions of GeoClaw have allowed specifying a set of fgmax points in one of the following ways:
point_style == 0:
Arbitrary list of points, point_style == 1:
Equally spaced points along a 1-dimensional transect,point_style == 2:
Equally spaced points on a 2-dimensional rectangular grid,point_style == 3:
Quasi-uniform points on a quadrilateral specified by 4 corners.There is now an additional way to specify points:
point_style == 4:
Selected points from an equally spaced rectangular grid.The input can be a "topofile" with topo_type == 3
in GeoClaw format (ASCII raster format, with a header indicating the lower left corner and spacing, followed by Z
values at each grid point. In this case the Z
values are not topography DEM values, however, but are either 1 for points to be used as fgmax points or 0 for points not to be used.
For simulations containing millions of fgmax points, this format has many advantages over simply providing a list of all the points (point_style == 0
): the input file is much smaller, and by having data on a known grid it is easy to determine which fgmax points lie within a given grid patch. (For large simulations there can be thousands of grid patches and searching through the list of all fgmax points for each patch is extremely slow.)
The fgmax results can also be recorded in (masked) arrays of the same shape as the input array, facilitating plotting of results using pcolormesh
or contourf
, for example, whereas if the fgmax points are merely a list then plotting the results as a 2d object can be much more difficult.
[TODO: Add examples.]
Back to Index.html or go on to the next notebook ForceDry.html.