Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 29 additions & 6 deletions notebooks/part1_flopy/02-Building-Post-Processing-MODFLOW6.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,24 @@
"outputs": [],
"source": []
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"#### Add head observations \n",
"\n",
"Define observations of head at a couple locations in the model. This is helpful to track continuous output at those locations and will write out CSV files that are easy to process for parameter estimation or other purposes. An observation package is in utilities (`OSB`) for the model is created using the `flopy.mf6.ModflowUtlobs()` method. Use `Shift-Tab` to see the optional variables that can be specified although a key format issue may be missing. A description of the data required by the `OBS` package (`flopy.mf6.ModflowUtlobs()`) can be found in the MODFLOW 6 [ReadTheDocs document](https://modflow6.readthedocs.io/en/latest/_mf6io/utl-obs.html). \n",
"\n",
"Pro Tip: The `continous` object must be a dictionary with `keys` being filenames in which to write the output, and `values` should be a list of lists with each list representing an observation location including a name, obstype, and cell location. For example `['obswell1','head',(0,4,4)]`."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down Expand Up @@ -425,25 +443,30 @@
]
},
{
"cell_type": "code",
"execution_count": null,
"cell_type": "markdown",
"metadata": {},
"outputs": [],
"source": []
"source": [
"#### Read in the output from the observation package"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
"source": [
"import pandas as pd\n",
"obs_results = pd.read_csv(ws + '/head_obs.csv')"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
"source": [
"obs_results"
]
}
],
"metadata": {
Expand Down
Loading
Loading