Flopy

Latest version: v3.8.2

Safety actively analyzes 682361 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 5 of 5

3.2.6

* Added functionality to read binary grd file for unstructured grids.
* Additions to SpatialReference class:
* xll, yll input option
* transform method to convert model coordinates to real-world coordinates
* epsg and length_multiplier arguments
* Export:
* Added writing of prj files to shapefile export; prj information can be passed through spatial reference class, or given as an EPSG code or existing prj file path
* Added NetCDF export to MNW2
* Added MODFLOW support for:
* FHB Package - no support for flow or head auxiliary variables (datasets 2, 3, 6, and 8)
* HOB Package
* New utilities:
* `flopy.utils.get_transmissivities()` Computes transmissivity in each model layer at specified locations and open intervals. A saturated thickness is determined for each row, column or x, y location supplied, based on the well open interval (sctop, scbot), if supplied, otherwise the layer tops and bottoms
and the water table are used.
* Added MODFLOW-LGR support - no support for model name files in different directories than the directory with the lgr control file.
* Additions to MODPATH:
* shapefile export of MODPATH Pathline and Endpoint data
* Modpath.create_mpsim() supports MNW2
* creation of MODPATH StartingLocations files
* Easy subsetting of endpoint and pathline results to destination cells of interest
* New ZoneBudget class provides ZONEBUDGET functionality:
* reads a CellBudgetFile and accumulates flows by zone
* pass `kstpkper` or `totim` keyword arguments to retrieve a subset of available times in the CellBudgetFile
* includes a method to write the budget recarrays to a .csv file
* ZoneBudget objects support numerical operators to facilitate conversion of units
* utilities are included which read/write ZONEBUDGET-style zone files to and from numpy arrays
* pass a dictionary of {zone: "alias"} to rename fields to more descriptive names (e.g. {1: 'New York', 2: 'Delmarva'}
* Added new precision='auto' option to flopy.utils.binaryfile for HeadFile and UcnFile readers. This will automatically try and determine the float precision for head files created by single and double precision versions of MODFLOW. 'auto' is now the default. Not implemented yet for cell by cell flow file.
* Modified MT3D-related packages to also support MT3D-USGS
* BTN will support the use of keywords (e.g., 'MODFLOWStyleArrays', etc.) on the first line
* DSP will support the use of keyword NOCROSS
* Keyword FREE now added to MT3D name file when the flow-transport link (FTL) file is formatted. Previously defaulted to unformatted only.
* Added 3 new packages:
* SFT: Streamflow Transport, companion transport package for use with the SFR2 package in MODFLOW
* LKT: Lake Transport, companion transport package for use with the LAK3 package in MODFLOW
* UZT: Unsaturated-zone Transport, companion transport package for use with the UZF1 package in MODFLOW
* Modified LMT
* load() functionality will now support optional PACKAGE_FLOWS line (last line of LMT input)
* write_file() will will now insert PACKAGE_FLOWS line based on user input

* Bug fixes:
1. Fixed bug in parsenamefile when file path in namefile is surrounded with quotes.
2. Fixed bug in check routine when THICKSTRT is specified as an option in the LPF and UPW packages.
3. Fixed bug in BinaryHeader.set_values method that prevented setting of entries based on passed kwargs.
4. Fixed bugs in reading and writing SEAWAT Viscosity package.
5. The DENSE and VISC arrays are now Transient3d objects, so they may change by stress period.
6. MNW2: fixed bug with k, i, j node input option and issues with loading at model level
7. Fixed bug in ModflowDis.get_cell_volumes().

3.2.5

- Added support for LAK and GAGE packages - full load and write functionality supported.
- Added support for MNW2 package. Load and write of .mnw2 package files supported. Support for .mnwi, or the results files (.qsu, .byn) not yet implemented.
- Improved support for changing the output format of arrays and variables written to MODFLOW input files.
- Restructued SEAWAT support so that packages can be added directly to the SEAWAT model, in addition to the approach of adding a modflow model and a mt3d model. Can now load a SEAWAT model.
- Added load support for MT3DMS Reactions package
- Added multi-species support for MT3DMS Reactions package
- Added static method to Mt3dms().load_mas that reads an MT3D mass file and returns a recarray
- Added static method to Mt3dms().load_obs that reads an MT3D mass file and returns a recarray
- Added method to flopy.modpath.Modpath to create modpath simulation file from modflow model instance boundary conditions. Also added examples of creating modpath files and post-processing modpath pathline and endpoint files to the flopy3_MapExample notebook.
- Bug fixes:
1. Fixed issue with VK parameters for LPF and UPW packages.
2. Fixed issue with MT3D ADV load in cases where empty fields were present in the first line of the file.
3. Fixed cross-section array plotting issues.
4. BTN observation locations must now be entered in zero-based indices (a 1 is now added to the index values written to btn file)
5. Uploaded supporting files for SFR example notebook; fixed issue with segment_data submitted as array (instead of dict) and as 0d array(s).
6. Fixed CHD Package so that it now supports options, and therefore, auxiliary variables can be specified.
7. Fixed loading BTN save times when numbers are touching.

3.2.4

- Added basic model checking functionality (`.check()`).
- Added support for reading SWR Process observation, stage, budget, flow, reach-aquifer exchanges, and structure flows.
- `flopy.utils.HydmodObs` returns a numpy recarray. Previously numpy arrays were returned except when the `slurp()` method was used. The slurp method has been deprecated but the same functionality is available using the `get_data()` method. The recarray returned from the `get_data()` method includes the `totim` value and one or all of the observations (`HYDLBL`).
- Added support for MODFLOW-USG DISU package for unstructured grids.
- Added class (`Gridgen`) for creating layered quadtree grids using GRIDGEN (`flopy.utils.gridgen`). See the flopy3_gridgen notebook for an example of how to use the `Gridgen` class.
- Added user-specified control on use of `OPEN/CLOSE` array options (see flopy3_external_file_handling notebook).
- Added user-specified control for array output formats (see flopy3_array_outputformat_options IPython notebook).
- Added shapefile as optional output format to `.export()` method and deprecated `.to_shapefile()` method.
- Bug fixes:
1. Fixed issue with right justified format statement for array control record for MT3DMS.
2. Fixed bug writing PHIRAMP for MODFLOW-NWT well files.
3. Fixed bugs in NETCDF export methods.
4. Fixed bugs in LMT and BTN classes.

Page 5 of 5

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.