Optional dependencies

Dependencies for optional features are listed below. These may be installed with pip install flopy[optional].

Method

Python Package

.plot_shapefile()

Pyshp >= 2.0.0

.to_shapefile()

Pyshp >= 2.0.0

.export(*.shp)

Pyshp >= 2.0.0

.export(*.nc)

netcdf4 >= 1.1, and python-dateutil >= 2.4.0

.export(*.tif)

rasterio

.export_array(*.asc) in flopy.export.utils

scipy.ndimage

.resample_to_grid() in flopy.utils.rasters

scipy.interpolate

.interpolate() in flopy.mf6.utils.reference StructuredSpatialReference class

scipy.interpolate

.get_authority_crs() in flopy.utils.crs

pyproj >= 2.2.0

.generate_classes() in flopy.mf6.utils

modflow-devtools

GridIntersect() in flopy.utils.gridintersect

shapely

GridIntersect().plot_polygon() in flopy.utils.gridintersect

shapely and descartes

Raster() in flopy.utils.Raster

rasterio, rasterstats, affine, and scipy

Raster().sample_polygon() in flopy.utils.Raster

shapely

Raster().crop() in flopy.utils.Raster

shapely

.array_at_verts() in flopy.discretization.structuredgrid StructuredGrid class

scipy.interpolate

get_sciencebase_xml_metadata() in flopy.export.metadata acdd class

defusedxml

flopy.utils.geospatial_utils GeoSpatialUtil class

geojson

flopy.utils.geospatial_utils GeoSpatialCollection class

geojson

flopy.export.vtk Vtk class

vtk, optionally pyvista