diff --git a/docs/boundary_forcing.ipynb b/docs/boundary_forcing.ipynb index 24bdf4a1..f26f99ba 100644 --- a/docs/boundary_forcing.ipynb +++ b/docs/boundary_forcing.ipynb @@ -15,7 +15,7 @@ "metadata": {}, "outputs": [], "source": [ - "from roms_tools import Grid, VerticalCoordinate" + "from roms_tools import Grid" ] }, { @@ -23,7 +23,7 @@ "id": "a65f0b74-cf3d-4615-9fad-ed1687527f18", "metadata": {}, "source": [ - "We start by creating a grid and the vertical coordinate system. Note that it is important to use the same grid and vertical coordinate system throughout all the steps (i.e., creating tidal forcing, atmospheric forcing, initial conditions, etc.) to set up a consistent ROMS simulation. Here, we use the following grid and vertical coordinate system." + "We start by creating a grid. Note that it is important to use the same grid throughout all the steps (i.e., creating tidal forcing, atmospheric forcing, initial conditions, etc.) to set up a consistent ROMS simulation. Here, we use the following grid with the default parameters for the vertical coordinate system." ] }, { @@ -59,22 +59,6 @@ "grid.plot(bathymetry=True)" ] }, - { - "cell_type": "code", - "execution_count": 4, - "id": "a73f30c9-eded-4378-8d4c-6cb04f477684", - "metadata": {}, - "outputs": [], - "source": [ - "vertical_coordinate = VerticalCoordinate(\n", - " grid=grid,\n", - " N=100, # number of vertical levels\n", - " theta_s=5.0, # surface control parameter\n", - " theta_b=2.0, # bottom control parameter\n", - " hc=300.0, # critical depth\n", - ")" - ] - }, { "cell_type": "markdown", "id": "cfcf7eb4-1812-4c2d-a9ce-4f526b0841a2", @@ -88,7 +72,7 @@ }, { "cell_type": "code", - "execution_count": 5, + "execution_count": 4, "id": "ef45d852-dd2f-4177-a855-31d24be8e221", "metadata": {}, "outputs": [], @@ -98,7 +82,7 @@ }, { "cell_type": "code", - "execution_count": 6, + "execution_count": 5, "id": "b72a2483-e2d8-4ee5-87dd-60bf7a3edd92", "metadata": {}, "outputs": [], @@ -117,7 +101,7 @@ }, { "cell_type": "code", - "execution_count": 7, + "execution_count": 6, "id": "12719098-276f-43ae-b977-38505840ac35", "metadata": {}, "outputs": [], @@ -135,7 +119,7 @@ }, { "cell_type": "code", - "execution_count": 8, + "execution_count": 7, "id": "f17c9a1b-a298-4c50-98a8-73b5d0ab7613", "metadata": {}, "outputs": [], @@ -145,7 +129,7 @@ }, { "cell_type": "code", - "execution_count": 9, + "execution_count": 8, "id": "deafd0b0-4329-48ba-a9aa-89ff83e6d4d1", "metadata": {}, "outputs": [ @@ -153,8 +137,8 @@ "name": "stdout", "output_type": "stream", "text": [ - "CPU times: user 17.4 s, sys: 2.56 s, total: 19.9 s\n", - "Wall time: 1min 2s\n" + "CPU times: user 16.7 s, sys: 985 ms, total: 17.7 s\n", + "Wall time: 39 s\n" ] } ], @@ -163,7 +147,6 @@ "\n", "boundary_forcing = BoundaryForcing(\n", " grid=grid,\n", - " vertical_coordinate=vertical_coordinate,\n", " start_time=start_time,\n", " end_time=end_time,\n", " physics_source={\"name\": \"GLORYS\", \"path\": path},\n", @@ -180,7 +163,7 @@ }, { "cell_type": "code", - "execution_count": 10, + "execution_count": 9, "id": "b7f465d7-3037-40b1-bde6-ab14d304f44e", "metadata": {}, "outputs": [ @@ -564,8 +547,7 @@ " model_reference_date: 2000-01-01 00:00:00\n", " theta_s: 5.0\n", " theta_b: 2.0\n", - " Tcline: 300.0\n", - " hc: 300.0