Exercise 3: Update a gwrefpymodel with new data#
This notebook introduces how to create and fit a simple gwrefpy model.
This notebook can be downloaded from the source code here.
Warning
This exercise is not completed yet.
1. Import the gwrefpy package#
import gwrefpy as gr
import numpy as np
import pandas as pd
2. Create some sample data#
# Create some example data
n_days = 100
dates = pd.date_range("2020-01-01", periods=n_days, freq="D")
# Observed and reference values with some noise
values_obs1 = ( 25.75 + 0.7 * np.sin(np.linspace(0, 4 * np.pi, n_days)) + np.random.normal(0, 0.1, n_days))
values_obs1 = pd.Series(values_obs1, index=dates)
values_ref1 = (18.75 + 0.3 * np.sin(np.linspace(0, 4 * np.pi, n_days)) + np.random.normal(0, 0.05, n_days))
values_ref1 = pd.Series(values_ref1, index=dates)
3. Create a Well objects#
# Create your well objects here
4. Create a Model object#
# Create your model object here
5. Fit the model#
# Perform the model fitting here
6. Plot the results#
# Plot the results here