-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Sam Vente <[email protected]>
- Loading branch information
Showing
9 changed files
with
307 additions
and
1,115 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,122 @@ | ||
{ | ||
"cells": [ | ||
{ | ||
"attachments": {}, | ||
"cell_type": "markdown", | ||
"metadata": {}, | ||
"source": [ | ||
"## Example: Working with mesh components" | ||
] | ||
}, | ||
{ | ||
"attachments": {}, | ||
"cell_type": "markdown", | ||
"metadata": {}, | ||
"source": [ | ||
"The main feature of HydroMT is to facilitate the process of building and analyzing spatial geoscientific models with a focus on water system models. It does so by automating the workflow to go from raw data to a complete model instance which is ready to run and to analyse model results once the simulation has finished. \n", | ||
"\n", | ||
"This notebook will explore how to work with mesh models." | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": 1, | ||
"metadata": {}, | ||
"outputs": [], | ||
"source": [ | ||
"# import hydromt\n", | ||
"import hydromt\n", | ||
"\n", | ||
"# other imports\n", | ||
"import matplotlib.pyplot as plt\n", | ||
"import geopandas as gpd" | ||
] | ||
}, | ||
{ | ||
"attachments": {}, | ||
"cell_type": "markdown", | ||
"metadata": {}, | ||
"source": [ | ||
"### Check if `MeshComponent` comes from" | ||
] | ||
}, | ||
{ | ||
"attachments": {}, | ||
"cell_type": "markdown", | ||
"metadata": {}, | ||
"source": [ | ||
"To know which models are available within your active environment, you can use global `PLUGINS` variable in hydromt" | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": 2, | ||
"metadata": {}, | ||
"outputs": [ | ||
{ | ||
"name": "stdout", | ||
"output_type": "stream", | ||
"text": [ | ||
"Model classes: Model plugins:\n", | ||
"\t- model (hydromt 1.0.0a0)\n", | ||
"Model components: Component plugins:\n", | ||
"\t- ConfigComponent (hydromt 1.0.0a0)\n", | ||
"\t- DatasetsComponent (hydromt 1.0.0a0)\n", | ||
"\t- GeomsComponent (hydromt 1.0.0a0)\n", | ||
"\t- GridComponent (hydromt 1.0.0a0)\n", | ||
"\t- MeshComponent (hydromt 1.0.0a0)\n", | ||
"\t- SpatialDatasetsComponent (hydromt 1.0.0a0)\n", | ||
"\t- TablesComponent (hydromt 1.0.0a0)\n", | ||
"\t- VectorComponent (hydromt 1.0.0a0)\n" | ||
] | ||
} | ||
], | ||
"source": [ | ||
"# generic model classes\n", | ||
"print(f\"Model classes: {hydromt.PLUGINS.model_summary()}\")\n", | ||
"# model classes from external plugin\n", | ||
"print(f\"Model components: {hydromt.PLUGINS.component_summary()}\")" | ||
] | ||
}, | ||
{ | ||
"cell_type": "markdown", | ||
"metadata": {}, | ||
"source": [ | ||
"TBC" | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": null, | ||
"metadata": {}, | ||
"outputs": [], | ||
"source": [] | ||
} | ||
], | ||
"metadata": { | ||
"kernelspec": { | ||
"display_name": "Python 3 (ipykernel)", | ||
"language": "python", | ||
"name": "python3" | ||
}, | ||
"language_info": { | ||
"codemirror_mode": { | ||
"name": "ipython", | ||
"version": 3 | ||
}, | ||
"file_extension": ".py", | ||
"mimetype": "text/x-python", | ||
"name": "python", | ||
"nbconvert_exporter": "python", | ||
"pygments_lexer": "ipython3", | ||
"version": "3.11.9" | ||
}, | ||
"vscode": { | ||
"interpreter": { | ||
"hash": "3808d5b5b54949c7a0a707a38b0a689040fa9c90ab139a050e41373880719ab1" | ||
} | ||
} | ||
}, | ||
"nbformat": 4, | ||
"nbformat_minor": 4 | ||
} |
Oops, something went wrong.