Skip to content

SFRmaker v0.12.0

Choose a tag to compare

@github-actions github-actions released this 09 May 16:52

Changes in this Release:

0.12.0 (2025-05-09)

Features

  • nhdplus_utils.read_nhdplus_hr: support reading multiple geodatabases; add test (b260669)
  • preprocessing: add preprocess_nhdplus_hr_flowlines and preprocess_nhdplus_hr_waterbodies functions (f8a190e)

Bug Fixes

  • gis.py: Ensure valid geometries for intersection functions (0b41d3f), closes #169
  • mf5to6: issue when converting MODFLOW-2005 SFR2 packages to MODFLOW-6; line_id is included by default as an auxiliary variable, but no line_id column was getting written to the MODFLOW 6 packagedata. Use SFR2 segment number as line_id in this case. Raise an error for any other declared auxiliary variables that aren't included in packagedata. (1071944)
  • sfrdata.create_mf6sfr: don't include 'None' in connectiondata for unconnected reaches (b4e5697)
  • test_preprocessing.py: add missing nhdplus_hr_waterbodies.shp (6ba3532)
  • utils.py::assign_layers: bad logic in return branch (f2b611e)

Code Refactoring

  • use strings universally as datatype for line identifiers, to avoid confusion withfloats vs ints and issues with long identifiers such as those in NHDPlus HR that can't be represented as integers in 32-bit contexts (efa5c5a)
  • lines.to_sfr::add_outlets: search full original routing when looking for a specified outlet (e6969d8)
  • NHDPlus HR waterbody preprocessing (preprocessing.py::preprocess_nhdplus_hr_waterbodies: represent NHDPlusIDs as strings, consistent with the rest of SFRmaker. (1977d79)
  • preprocessing.py: use GeoPandas instead of gis-utils for reading/writing shapefiles; except whenreading multiple shapefiles; fixes potential issue with mixed geometry types (e.g. Polygon and MultiPolygon) and possibly other potential issues. (6e2d24f)

Documentation

  • Add demo for converting SFR2 to MODFLOW 6 (0cea8df)
  • added examples for preprocessing NHDPLus HR (8bcb443)