Skip to content

Commit 97c0995

Browse files
committed
docs: update release history; other minor doc fixes and removal of stale comments
1 parent 2d5fd25 commit 97c0995

File tree

3 files changed

+30
-18
lines changed

3 files changed

+30
-18
lines changed

docs/source/config-file-gallery.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Shellmound TMR inset test case
2828
* parent model grid defined with a SpatialReference subblock (which overrides information in MODFLOW Namefile)
2929
* DIS package top and bottom elevations copied from parent model
3030
* IC, NPF, STO, RCH, and WEL packages copied from parent model (default if not specified in config file)
31-
* `default OC configuration <#MODFLOW-6 configuration defaults>`_
31+
* :ref:`default OC configuration <MODFLOW-6 configuration defaults>`
3232
* variable time discretization
3333
* model grid aligned with the `National Hydrologic Grid`_
3434
* SFR network created from custom hydrography

docs/source/release-history.rst

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,28 @@
22
Release History
33
===============
44

5+
6+
Version 0.3.0 (2023-07-25)
7+
----------------------------------------
8+
9+
* Transient input to basic stress packages can now be supplied via a ``csvfile:`` block. Transient
10+
values for the package variables are associated with the shapefile feature extents via an
11+
``id_column`` of values that match values in the shapefile id_column. Input can be mixed between
12+
transient ``csvfile:`` input and static input supplied via rasters (that varies spatially)
13+
or uniform global values. See the Basic stress packages section in the documentation for more details.
14+
* add automatic reprojection of NetCDF source data files
15+
* most Soil Water Balance code models should be work as-is
16+
* added ``crs:`` configuration file item to specify the coordinate reference system for NetCDF files
17+
where coordinate reference information can't be parsed.
18+
* add support for inner and outer CSV file output in MODFLOW 6 IMS options (remap input to work with Flopy)
19+
* refactor ``grid.rasterize()`` function to work with standard Flopy ``StructuredGrid`` (s)
20+
* refactor MODFLOW 6 head observations setup
21+
* add ``allow_obs_in_bc_cells`` option to allow observations in boundary condition cells (previously not allowed).
22+
* put modflow-setup specific options in an ``mfsetup_options:`` sub-block, consistent with other packages
23+
* fixes to adapted to breaking changes with pandas 2.0 and revised flopy modelgrid/crs interface
24+
* fix ``AttributeError`` issue with model name not getting passed to flopy
25+
* some fixes to model version reporting in MODFLOW input file headers
26+
527
Version 0.2.0 (2023-02-06)
628
----------------------------------------
729
* add minimal support for MODFLOW-2000 parent models and variably-spaced structured grids

mfsetup/tdis.py

Lines changed: 7 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ def setup_perioddata(model,
465465
============== =========================================
466466
start_datetime Start date of each model stress period
467467
end_datetime End date of each model stress period
468-
time MODFLOW elapsed time, in days*
468+
time MODFLOW elapsed time, in days [#f1]_
469469
per Model stress period number
470470
perlen Stress period length (days)
471471
nstp Number of timesteps in stress period
@@ -480,29 +480,19 @@ def setup_perioddata(model,
480480
perioddata is also saved to stress_period_data.csv in the tables folder
481481
(usually `/tables`).
482482
483-
*Modflow elapsed time includes the time lengths specified for
484-
any steady-state periods (at least 1 day). Therefore if the model
485-
has an initial steady-state period with a ``perlen`` of one day,
486-
the elapsed time at the model start date will already be 1 day.
483+
.. rubric:: Footnotes
484+
485+
.. [#f1] Modflow elapsed time includes the time lengths specified for
486+
any steady-state periods (at least 1 day). Therefore if the model
487+
has an initial steady-state period with a ``perlen`` of one day,
488+
the elapsed time at the model start date will already be 1 day.
487489
"""
488490
# get start_date_time from parent if available and start_date_time wasn't specified
489491
# only apply to tdis_perioddata_config if it wasn't specified there
490492
if tdis_perioddata_config.get('start_datetime', '1970-01-01') == '1970-01-01' and \
491493
default_start_datetime != '1970-01-01':
492494
tdis_perioddata_config['start_date_time'] = default_start_datetime
493495

494-
# cast steady array to boolean
495-
#if steady is not None and not isinstance(steady, dict):
496-
# tdis_perioddata_config['steady'] = np.array(steady).astype(bool).tolist()
497-
498-
# get period data groups
499-
# if no groups are specified, make a group from general stress period input
500-
#cfg = self.cfg
501-
defaults = {#'start_date_time': default_start_datetime,
502-
#'nper': nper,
503-
#'steady': steady,
504-
#'oc_saverecord': oc_saverecord,
505-
}
506496
perioddata_groups = parse_perioddata_groups(tdis_perioddata_config,
507497
nper=nper, steady=steady,
508498
start_date_time=default_start_datetime)

0 commit comments

Comments
 (0)