|
12 | 12 | },
|
13 | 13 | {
|
14 | 14 | "cell_type": "code",
|
15 |
| - "execution_count": 2, |
| 15 | + "execution_count": 1, |
16 | 16 | "metadata": {},
|
17 | 17 | "outputs": [
|
18 | 18 | {
|
19 |
| - "name": "stdout", |
| 19 | + "name": "stderr", |
20 | 20 | "output_type": "stream",
|
21 | 21 | "text": [
|
22 |
| - "The autoreload extension is already loaded. To reload it, use:\n", |
23 |
| - " %reload_ext autoreload\n" |
| 22 | + "/home/ucfajlg/.local/lib/python3.6/site-packages/tqdm/autonotebook/__init__.py:14: TqdmExperimentalWarning: Using `tqdm.autonotebook.tqdm` in notebook mode. Use `tqdm.tqdm` instead to force console mode (e.g. in jupyter console)\n", |
| 23 | + " \" (e.g. in jupyter console)\", TqdmExperimentalWarning)\n" |
24 | 24 | ]
|
25 | 25 | }
|
26 | 26 | ],
|
|
116 | 116 | },
|
117 | 117 | {
|
118 | 118 | "cell_type": "code",
|
119 |
| - "execution_count": 40, |
| 119 | + "execution_count": 3, |
120 | 120 | "metadata": {
|
121 | 121 | "scrolled": false
|
122 | 122 | },
|
123 | 123 | "outputs": [
|
124 | 124 | {
|
125 | 125 | "data": {
|
126 | 126 | "application/vnd.jupyter.widget-view+json": {
|
127 |
| - "model_id": "e5374d8943fa4a6eb9c45e50cf26d078", |
| 127 | + "model_id": "6c3afc4e926a4b619351e95bbab84ada", |
128 | 128 | "version_major": 2,
|
129 | 129 | "version_minor": 0
|
130 | 130 | },
|
|
137 | 137 | }
|
138 | 138 | ],
|
139 | 139 | "source": [
|
140 |
| - "def run_enkf_widget():\n", |
141 |
| - " start_date = dt.datetime(2011, 7, 1)\n", |
142 |
| - " end_date = dt.datetime(2011, 10, 15)\n", |
143 |
| - "\n", |
144 |
| - " dates = pd.date_range(start_date, end_date, freq='D')\n", |
145 |
| - "\n", |
146 |
| - " options = [(date.strftime(' %d %b '), date) for date in dates]\n", |
147 |
| - " index = (0, len(options) - 1)\n", |
148 |
| - " integration_slider = widgets.SelectionRangeSlider(\n", |
149 |
| - " options=options,\n", |
150 |
| - " index=index,\n", |
151 |
| - " description='Observation period',\n", |
152 |
| - " orientation='horizontal',\n", |
153 |
| - " layout={'width': '600px'},\n", |
154 |
| - " )\n", |
155 |
| - "\n", |
156 |
| - " widgets.interact_manual(run_ensemble,\n", |
157 |
| - " n_ensemble=widgets.IntSlider(\n", |
158 |
| - " min=2, max=1000, value=10, description=\"Number of ensemble members\"),\n", |
159 |
| - " ens_param_inflation=widgets.FloatSlider(min=0.1, max=5, value=1.,\n", |
160 |
| - " description=\"Increase the ensemble dispersion/unc\"),\n", |
161 |
| - " obs_period=integration_slider,\n", |
162 |
| - " sigma_lai=widgets.FloatSlider(\n", |
163 |
| - " min=0.01, max=0.5, value=0.1, description=\"Relative Uncertainty in LAI\"),\n", |
164 |
| - " sigma_sm=widgets.FloatSlider(\n", |
165 |
| - " min=0.01, max=0.5, value=0.25, description=\"Relative Uncertainty in SM\"),\n", |
166 |
| - " n_obs=widgets.IntSlider(min=1, max=30, value=10,\n", |
167 |
| - " description=\"Number of observations to assimilate\"),\n", |
168 |
| - " assim_lai=widgets.Checkbox(\n", |
169 |
| - " value=True, help=\"Assimilate LAI observations\"),\n", |
170 |
| - " assim_sm=widgets.Checkbox(\n", |
171 |
| - " value=True, help=\"Assimilate soil moisture observations\"),\n", |
172 |
| - " \n", |
173 |
| - " )\n", |
174 |
| - "run_enkf_widget()\n", |
175 |
| - " #results, observations = run_ensemble(10, assim_lai=False)" |
| 140 | + "\n", |
| 141 | + "run_enkf_widget();\n" |
176 | 142 | ]
|
177 | 143 | },
|
178 | 144 | {
|
|
0 commit comments