Skip to content

Commit eb6e6cb

Browse files
committed
docs: updated release history; add flows and observations as automodules
1 parent 576e3bf commit eb6e6cb

File tree

5 files changed

+24
-5
lines changed

5 files changed

+24
-5
lines changed

Readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ SFRmaker
33
SFRmaker is a python package for automating construction of stream flow routing networks from hydrography data. Hydrography are input from a polyline shapefile and intersected with a structured grid defined using a shapefile or a Flopy `StructuredGrid` instance. Attribute data are supplied via `.dbf` files (NHDPlus input option) or via specified fields in the hydrography shapefile. Line fragments representing intersections between the flowlines and model grid cells are converted to SFR reaches using the supplied attribute data. MODFLOW-NWT/2005 or MODFLOW-6 SFR package input can then be written, along with shapefiles for visualizing the SFR package dataset.
44

55

6-
### Version 0.7
6+
### Version 0.8
77

88
![Tests](https://github.com/usgs/sfrmaker/workflows/Tests/badge.svg)
99
[![Coverage Status](https://codecov.io/github/usgs/SFRmaker/coverage.svg?branch=develop)](https://codecov.io/github/usgs/SFRmaker/coverage.svg?branch=develop)

docs/source/api/index.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@ Modules
33

44
.. toctree::
55

6+
Flows Module <sfrmaker.flows>
67
Grid Module <sfrmaker.grid>
78
Lines Module <sfrmaker.lines>
89
MODFLOW-2005 to 6 Module <sfrmaker.mf5to6>
10+
Observations Module <sfrmaker.observations>
911
Preprocessing Module <sfrmaker.preprocessing>
1012
SFRData Module <sfrmaker.sfrdata>
1113
Utilities Module <sfrmaker.utils>
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
The Observations Module
2+
=============================
3+
4+
.. automodule:: sfrmaker.observations
5+
:members:
6+
:undoc-members:
7+
:show-inheritance:

docs/source/release-history.rst

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,18 @@
22
Release History
33
===============
44

5-
Version 0.7.2 (2021-04-06)
5+
Version 0.8.0 (2021-04-19)
66
--------------------------
7-
* Fix issue with starting arbolate sums, that was causing artificially narrow estimated widths on the first segment of any streams originating from outside of the model, by computing starting arbolate sums for each reach from the ending asum minus the line length.
8-
* Inflows: Allow multiple inflows to be specified along a single headwater to outlet path, via an optional one_inflow_per_path argument (default False; previously was hardcoded as True).
9-
* Observations: base unique observations on name and type; allowing multiple observation types (e.g. downstream-flow and stage) to be appended to the observations table via add_observations
7+
* Inflows:
8+
* Allow multiple inflows to be specified along a single headwater to outlet path, via an optional *one_inflow_per_path argument* (default False; previously was hardcoded as True).
9+
* Runoff and other stress period data (including inflows)
10+
* Add support for specifying runoff (or other stress period inputs), allowing for multiple flows to be specified to a line, via lines IDs that may not be in the SFR package, but which route to lines in the SFR package. Routing information is provided by the ``flowline_routing argument`` to :meth:`sfrmaker.flows.add_to_perioddata` or :meth:`sfrmaker.sfrdata.SFRData.add_to_perioddata`. Line IDs may be missing if the linework was culled (i.e. to higher order streams or streams with a minimum arbolate sum). Runoff generated within the catchments of these culled lines still needs to be routed to the first line in the stream network.
11+
* Add option to distribute specified flows evenly among reaches associated with a line.
12+
* Refactor :meth:`sfrmaker.sfrdata.SFRData.period_data` to be indexed by stress period and reach number, allowing incremental updating (e.g. via pandas.DataFrame.update()). Previously, each call to :meth:`sfrmaker.flows.add_to_perioddata` would reset :meth:`sfrmaker.sfrdata.SFRData.period_data`. These changes allow for the specification of runoff to the SFR package in addition to specified inflows.
13+
* Observations:
14+
* base unique observations on name and type; allowing multiple observation types (e.g. downstream-flow and stage) to be appended to the observations table via add_observations
15+
* Bug fixes:
16+
* Fix issue with starting arbolate sums, that was causing artificially narrow estimated widths on the first segment of any streams originating from outside of the model, by computing starting arbolate sums for each reach from the ending asum minus the line length.
1017

1118
Version 0.7.1 (2021-01-29)
1219
--------------------------

sfrmaker/flows.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
"""
2+
Functions for getting or adding specified flows or other stress-period-based inputs to the SFR package.
3+
"""
14
import warnings
25
import numpy as np
36
import pandas as pd

0 commit comments

Comments
 (0)