A curated list of open technology projects to sustain a stable climate, energy supply, biodiversity and natural resources.

Recent Releases of pyflwdir

pyflwdir - v0.5.10

What's Changed

  • Add support for py 3.13
  • bugfix in from_dataframe method when downstream index is not present in the dataframe

Hydrosphere - Freshwater and Hydrology - Python
Published by DirkEilander 2 months ago

pyflwdir - v0.5.9

What's Changed

New Contributors

Full Changelog: https://github.com/Deltares/pyflwdir/compare/v0.5.8...v0.5.9

Hydrosphere - Freshwater and Hydrology - Python
Published by DirkEilander 4 months ago

pyflwdir - v0.5.8

Support py 3.11 and drop support for py 3.8

Hydrosphere - Freshwater and Hydrology - Python
Published by DirkEilander over 1 year ago

pyflwdir - v0.5.7

This release includes one new feature to estimate floodplain volumes at different heights relative to the river.

Hydrosphere - Freshwater and Hydrology - Python
Published by DirkEilander about 2 years ago

pyflwdir - v0.5.6

New

  • FlwdirRaster.smooth_rivlen method to smooth river length with a moving window operation over a river network.

Changed

  • Move to flit and pyproject.toml for installation and publication
  • drop support for python 3.7
  • update docs to Sphinx pydata style

Hydrosphere - Freshwater and Hydrology - Python
Published by DirkEilander over 2 years ago

pyflwdir - v0.5.5

New

  • read_nextxy method to read binary nextxy data

Bugfix

  • Support -9 (river outlet at ocean) and -10 (inland river pit) pit values for nextxy data
  • Fix 'argmin of an empty sequence' error in dem_dig_d4

Improved

  • improve gvf and manning estimates in river_depth method

Hydrosphere - Freshwater and Hydrology - Python
Published by DirkEilander about 3 years ago

pyflwdir - v0.5.4

Improved

  • prioritize non-boundary cells with same elevation over boundary cells in dem.fill_depressions #17

Bugfix

  • fix dem_adjust method #16

Hydrosphere - Freshwater and Hydrology - Python
Published by DirkEilander over 3 years ago

pyflwdir - v0.5.3

Improved

  • add new idxs_pit argument to dem.fill_despressions

Bugfix

  • min_rivdph argument was not always applied in FlwdirRaster.river_depth

Hydrosphere - Freshwater and Hydrology - Python
Published by DirkEilander over 3 years ago

pyflwdir - v0.5.2

New

  • Flwdir.river_depth for gradually varying flow (gvf) and manning river depth estimation
  • Flwdir.path method to get the indices of flow paths for vector flow directions

Improved

  • FlwdirRaster.streams method includes a (zero-length) line at pits and adds option for trace direction in combination with segment end cells.
  • Moved accuflux method from FlwdirRaster to parent Flwdir class.
  • Additional how argument in fillnodata to indicate how to combine values at confluences. Min, max, sum and mean are supported.

Hydrosphere - Freshwater and Hydrology - Python
Published by DirkEilander over 3 years ago

pyflwdir - v0.5.1

New

  • Restore FlwdirRaster.inflow_idxs and FlwdirRaster.outflow_idxs methods

Fixed

  • image in readme for display on pypi

Hydrosphere - Freshwater and Hydrology - Python
Published by DirkEilander over 3 years ago

pyflwdir - v0.5

New

  • General Flwdir object for 1D vector based (instead of raster based) flow directions
  • flwdir.from_dataframe methods to derive a Flwdir object from a (Geo)DataFrame based on the row index and a column with downstream row indices.
  • dem.fill_depressions and pyflwdir.from_dem methods to derive flow directions from DEMs based on Wang & Lui (2015)
  • gis_utils.get_edge method to get a boolean mask of valid cells at the interface with nodata cells or the array edge.
  • gis_utils.spread2d method to spread valid values on a 2D raster with optional friction and mask rasters
  • FlwdirRaster.dem_dig_d4 method to adjust a DEM such that each cell has a 4D neighbor with equal or lower elevation.
  • FlwdirRaster.fillnodata method fill nodata gaps by propagating valid values up or downstream.
  • region.region_outlets method; which is also wrapped in the new FlwdirRaster.basin_outlets method
  • region.region_dissolve method to dissovle regions into their nearest neighboring region
  • FlwdirRaster.subbasins_areas method to derive subbasins based on a minimal area threshold

Improved

  • added type="classis" for bottum-up stream order to FlwdirRaster.stream_order, default is type="strahler"
  • return subbasin outlet indices for all FlwdirRaster.subbasin* methods
  • improved subgrid slope method with optional lstsq regression based slope
  • FlwdirRaster.streams takes an optional idxs_out argument to derive stream vectors for unit catchments
  • FlwdirRaster.streams takes an optional max_len argument to split large segments into multiple smaller ones.
  • Using the new Flwdir object as common base of FlwdirRaster to share methods and properties
  • gis_utils.IDENTITY transform has North -> South orientation (yres < 0) instead of S->N orientation which is in line with flow direction rasters.
  • new restrict_strord argument in FlwdirRaster.moving_average and FlwdirRaster.moving_median methods to restrict the moving window to cells with same or larger stream order.

Bugfix

  • strahler stream_order method gave incorrect results
  • basins.subbasins_pfafstetter reimplementation to fix mall functioning when jitted
  • FlwdirRaster.streams fix when called with optional min_sto argument

Deprecated

  • FlwdirRaster.main_tributaries method is deprecated due to mallfunctioning when jitted
  • FlwdirRaster.inflow_idxs and FlwdirRaster.outflow_idxs

Hydrosphere - Freshwater and Hydrology - Python
Published by DirkEilander over 3 years ago