Skip to content

Commit

Permalink
deploy: 9590ec5
Browse files Browse the repository at this point in the history
  • Loading branch information
ecomodeller committed Dec 18, 2023
1 parent 78d4f04 commit 269755b
Show file tree
Hide file tree
Showing 340 changed files with 20,947 additions and 27,619 deletions.
2 changes: 1 addition & 1 deletion .buildinfo
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
config: 4f77bf3fa44831f9b028b51d17f75dc7
config: d67d185dc58ecfd435f64d446be4e821
tags: 645f666f9bcd5a90fca523b33c5a78b7
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed _images/config.png
Diff not rendered.
Binary file removed _images/config_yml.png
Diff not rendered.
Binary file removed _images/dfsu2d_12_0.png
Diff not rendered.
Binary file removed _images/dfsu2d_16_0.png
Diff not rendered.
Binary file removed _images/dfsu2d_6_0.png
Diff not rendered.
Binary file removed _images/dfsu3d_14_0.png
Diff not rendered.
Binary file removed _images/dfsu3d_18_0.png
Diff not rendered.
Binary file removed _images/dfsu3d_22_0.png
Diff not rendered.
Binary file removed _images/dfsu3d_27_0.png
Diff not rendered.
Binary file removed _images/input_data_11_1.png
Diff not rendered.
Binary file removed _images/input_data_14_1.png
Diff not rendered.
Binary file removed _images/input_data_16_1.png
Diff not rendered.
Binary file removed _images/input_data_25_1.png
Diff not rendered.
Binary file removed _images/input_data_37_0.png
Diff not rendered.
Binary file removed _images/input_data_46_0.png
Diff not rendered.
Binary file removed _images/input_data_47_1.png
Diff not rendered.
Binary file removed _images/input_data_56_0.png
Diff not rendered.
Binary file removed _images/input_data_59_0.png
Diff not rendered.
Binary file removed _images/mesh_13_1.png
Diff not rendered.
Binary file removed _images/mesh_15_0.png
Diff not rendered.
Binary file removed _images/mesh_19_0.png
Diff not rendered.
Binary file removed _images/mesh_29_0.png
Diff not rendered.
Binary file removed _images/mesh_31_0.png
Diff not rendered.
Binary file removed _images/mesh_33_0.png
Diff not rendered.
Binary file removed _images/mesh_36_0.png
Diff not rendered.
Binary file removed _images/mesh_38_0.png
Diff not rendered.
Binary file removed _images/mesh_7_0.png
Diff not rendered.
Binary file removed _images/model_skill_15_0.png
Diff not rendered.
Binary file removed _images/model_skill_16_1.png
Diff not rendered.
Binary file removed _images/model_skill_18_0.png
Diff not rendered.
Binary file removed _images/model_skill_23_0.png
Diff not rendered.
Binary file removed _images/model_skill_24_0.png
Diff not rendered.
Binary file removed _images/model_skill_27_0.png
Diff not rendered.
Binary file removed _images/model_skill_31_0.png
Diff not rendered.
Binary file removed _images/model_skill_32_0.png
Diff not rendered.
Binary file removed _images/model_skill_33_1.png
Diff not rendered.
Binary file removed _images/model_skill_34_1.png
Diff not rendered.
Binary file removed _images/model_skill_35_0.png
Diff not rendered.
Binary file removed _images/model_skill_8_0.png
Diff not rendered.
Binary file removed _images/model_skill_visualisation_15_1.png
Diff not rendered.
Binary file removed _images/model_skill_visualisation_16_1.png
Diff not rendered.
Binary file removed _images/model_skill_visualisation_20_0.png
Diff not rendered.
Binary file removed _images/multi_model_comparison_10_0.png
Diff not rendered.
Binary file removed _images/multi_model_comparison_17_0.png
Diff not rendered.
Binary file removed _images/multi_model_comparison_18_0.png
Diff not rendered.
Binary file removed _images/multi_model_comparison_20_0.png
Diff not rendered.
Binary file removed _images/multi_model_comparison_23_0.png
Diff not rendered.
Binary file removed _images/multi_model_comparison_26_0.png
Diff not rendered.
Binary file removed _images/multi_model_comparison_28_0.png
Diff not rendered.
Binary file removed _images/multi_model_comparison_33_0.png
Diff not rendered.
Binary file removed _images/multi_model_comparison_33_1.png
Diff not rendered.
Binary file removed _images/multi_model_comparison_36_0.png
Diff not rendered.
Binary file removed _images/multi_model_comparison_37_0.png
Diff not rendered.
Binary file removed _images/multi_model_comparison_9_0.png
Diff not rendered.
Binary file removed _images/output_statistics_10_0.png
Diff not rendered.
Binary file removed _images/output_statistics_12_0.png
Diff not rendered.
Binary file removed _images/output_statistics_13_0.png
Diff not rendered.
Binary file removed _images/output_statistics_15_0.png
Diff not rendered.
Binary file removed _images/output_statistics_28_0.png
Diff not rendered.
Binary file removed _images/output_statistics_35_0.png
Diff not rendered.
Binary file removed _images/output_statistics_39_0.png
Diff not rendered.
Binary file removed _images/output_statistics_40_0.png
Diff not rendered.
Binary file removed _images/output_statistics_43_0.png
Diff not rendered.
Binary file removed _images/output_statistics_44_0.png
Diff not rendered.
Binary file removed _images/output_statistics_7_0.png
Diff not rendered.
Binary file removed _images/output_visualisation_11_0.png
Diff not rendered.
Binary file removed _images/output_visualisation_15_0.png
Diff not rendered.
Binary file removed _images/output_visualisation_19_0.png
Diff not rendered.
Binary file removed _images/output_visualisation_21_0.png
Diff not rendered.
Binary file removed _images/output_visualisation_5_0.png
Diff not rendered.
Binary file removed _images/output_visualisation_6_0.png
Diff not rendered.
Binary file removed _images/output_visualisation_7_0.png
Diff not rendered.
Binary file removed _images/output_visualisation_9_0.png
Diff not rendered.
Binary file removed _images/point_observations_10_0.png
Diff not rendered.
Binary file removed _images/point_observations_11_0.png
Diff not rendered.
Binary file removed _images/point_observations_14_0.png
Diff not rendered.
Binary file removed _images/point_observations_19_0.png
Diff not rendered.
Binary file removed _images/point_observations_24_0.png
Diff not rendered.
Binary file removed _images/point_observations_28_0.png
Diff not rendered.
Binary file removed _images/track_observations_10_0.png
Diff not rendered.
Binary file removed _images/track_observations_15_0.png
Diff not rendered.
104 changes: 52 additions & 52 deletions _sources/exercises/exercise_basic_model_skill.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2,156 +2,156 @@
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Exercise: Basic model skill"
],
"metadata": {}
]
},
{
"cell_type": "code",
"execution_count": null,
"source": [
"import fmskill"
],
"metadata": {},
"outputs": [],
"metadata": {}
"source": [
"import modelskill"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"You want do to a simple comparison between model and observation using the fmskill.compare method, but the following code snippet doesn't work.\n",
"\n",
"Change the code below, so that it works as intended. Hint: look at the documentation\n",
"```\n",
"help(fmskill.compare)\n",
"```"
],
"metadata": {}
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"fn_mod = '../data/SW/ts_storm_4.dfs0'\n",
"fn_obs = '../data/SW/eur_Hm0.dfs0'\n",
"\n",
"c = fmskill.compare(fn_obs, fn_mod)"
],
"outputs": [],
"metadata": {}
"c = modelskillill.compare(fn_obs, fn_mod)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"When you have fixed the above snippet, you can continue to do the skill assessment"
],
"metadata": {}
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"# plot a timeseries of the comparison\n",
"# * remove the default title\n",
"# * set the limits of the y axis to cover the 0-6m interval"
],
"outputs": [],
"metadata": {}
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Your colleague, who is very skilled at Excel, wants to make a plot like this one:\n",
"\n",
"![](../images/excel_chart.png)"
],
"metadata": {}
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"# Use the .df property on the comparer object to save the obs and model timeseries as an Excel file (\"skill.xlsx\")\n",
"# you might get an error \"No module named 'openpyxl'\", the solution is to run `pip install openpyxl`"
],
"outputs": [],
"metadata": {}
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"# calculate the default skill metrics using the skill method\n"
],
"outputs": [],
"metadata": {}
]
},
{
"cell_type": "code",
"execution_count": 20,
"metadata": {},
"outputs": [],
"source": [
"# calculate the skill using the mean absolute percentage error and max error, use the metrics argument\n",
"# c.skill(metrics=[__,__])"
],
"outputs": [],
"metadata": {}
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"# import the hit_ratio metric from fmskill.metrics\n",
"# import the hit_ratio metric from modelskillill.metrics\n",
"# and calculate the ratio when the deviation between model and observation is less than 0.5 m\n",
"# hint: use the Observation and Model columns of the dataframe from the .df property you used above\n",
"\n",
"# is the hit ratio ~0.95 ? Does it match with your expectation based on the timeseries plot?\n",
"# what about a deviation of less than 0.1m? Pretty accurate wave model..."
],
"outputs": [],
"metadata": {}
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"# hit_ratio(c.df.Observation, __, a=__)"
],
"outputs": [],
"metadata": {}
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"# compare the distribution of modelled and observed values, using the .hist method\n",
"# change the number of bins to 10"
],
"outputs": [],
"metadata": {}
]
}
],
"metadata": {
"orig_nbformat": 4,
"interpreter": {
"hash": "f4041ee05ab07c15354d6207e763f17a216c3f5ccf08906343c2b4fd3fa7a6fb"
},
"kernelspec": {
"display_name": "Python 3.9.6 64-bit",
"name": "python3"
},
"language_info": {
"name": "python",
"version": "3.9.6",
"mimetype": "text/x-python",
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"pygments_lexer": "ipython3",
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"file_extension": ".py"
},
"kernelspec": {
"name": "python3",
"display_name": "Python 3.9.6 64-bit"
"pygments_lexer": "ipython3",
"version": "3.9.6"
},
"interpreter": {
"hash": "f4041ee05ab07c15354d6207e763f17a216c3f5ccf08906343c2b4fd3fa7a6fb"
}
"orig_nbformat": 4
},
"nbformat": 4,
"nbformat_minor": 2
}
}

0 comments on commit 269755b

Please sign in to comment.