diff --git a/docs/source/notebooks/tutorial2.ipynb b/docs/source/notebooks/tutorial2.ipynb index b620b3f598ce62205dcd27826b07ce6bcebf75a0..56751a09aa6fcc22d1ed60d163753d1051e6493f 100644 --- a/docs/source/notebooks/tutorial2.ipynb +++ b/docs/source/notebooks/tutorial2.ipynb @@ -14,6 +14,7 @@ "[free_forecast.py ](https://github.com/lkugler/DART-WRF/blob/master/free_forecast.py) contains examples.\n", "\n", "Initialize the forecast with either (1) or (2). Run the forecast with (3)\n", + "\n", "1) Initialize a forecast from defined profiles of temperature, humidity and wind, i.e. from a `wrf_profile` (see WRF guide)\n", "2) Initialize a forecast from an existing forecast, i.e. from WRF restart files - optionally with updates from data assimilation.\n", "3) Run the forecast\n", @@ -21,7 +22,29 @@ "\n", "### 1) Initialize from sounding profiles\n", "\n", - "tutorial missing\n", + "It is necessary to set the path to the prepared WRF input soundings in `config/cfg.py` like this\n", + "```python\n", + "exp.input_profile = '/user/test/data/initial_profiles/wrf/ens/raso.fc.<iens>.wrfprof'\n", + "```\n", + "where `<iens>` is a placeholder, since there is one file for each member, from `raso.fc.001.wrfprof` to `raso.fc.040.wrfprof`.\n", + "\n", + "Then, we set up the workflows as usual and prepare the input profiles using `prepare_WRFrundir`.\n", + "```python\n", + "import datetime as dt\n", + "from dartwrf.workflows import WorkFlows\n", + "\n", + "w = WorkFlows(exp_config='cfg.py', server_config='srvx1.py')\n", + "\n", + "begin = dt.datetime(2008, 7, 30, 7)\n", + "w.prepare_WRFrundir(begin)\n", + "```\n", + "\n", + "Finally, the WRF's ideal.exe program is called for all ensemble members to create initial condition files, called `wrfinput_d01`, for each member.\n", + "```python\n", + "w.run_ideal()\n", + "```\n", + "Now we can go to step 3 to run the forecast.\n", + "\n", "\n", "### 2) Initialize a forecast from a previous forecast\n", "To run a forecast from initial conditions of a previous forecasts, we import these modules\n",