flopy.utils.hfb_util module

make_hfb_array(modelgrid, geom)[source]

Method to make a HFB recarray from geospatial linestring information. Note: this method was developed to only accept a single linestring at a time to give the user an opportunity to save unique fault information for calibration purposes.

Parameters:
  • modelgrid (flopy.discretization.Grid object) – FloPy StructuredGrid, VertexGrid, and UnstructuredGrid are supported

  • geom (geospatial object) – geom parameter is a geospatial LineString representation. Shapely.geometry.LineString, GeoJson, List of vertices, shapefile.shape types are supported.

Returns:

  • np.recarray

  • numpy recarray of cellid1, cellid2, and hydchr. The hydchr field must

  • be set by the user, is set to NaN, and is provided for convenience.