Skip to content

Commit

Permalink
update notebook
Browse files Browse the repository at this point in the history
  • Loading branch information
changliao1025 committed Oct 23, 2023
1 parent 70bdcd9 commit 25627b9
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions notebooks/mpas_example.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -419,14 +419,14 @@
"#only a list of parameters can be changed, for full list, please check the documentation\n",
"#in this example, we will change the mesh file name\n",
"#the function will check the data type, if incorrect data type is provided, it will raise an error\n",
"oPyflowline.change_model_parameter('sFilename_mesh_netcdf', sFilename_download) #because the mpas mesh already contains elevation, we do not need to set the elevation file name\n",
"oPyflowline.change_model_parameter('sFilename_mesh_boundary', sFilename_mesh_boundary)\n",
"oPyflowline.pyflowline_change_model_parameter('sFilename_mesh_netcdf', sFilename_download) #because the mpas mesh already contains elevation, we do not need to set the elevation file name\n",
"oPyflowline.pyflowline_change_model_parameter('sFilename_mesh_boundary', sFilename_mesh_boundary)\n",
"\n",
"#we can also set for individual basin in the domain, in this example, we only has one basin.\n",
"#remember that, each basin can have different parameters, so if you want to set them different (for example, basin 1 has no dam, but basin 2 has dam), you should edit the basin json instead using this function.\n",
"#because change_model_parameter will set all the basin using the same parameter in current version\n",
"#must set iFlag_basin_in = 1 for basin parameter\n",
"oPyflowline.change_model_parameter('iFlag_dam', 0, iFlag_basin_in= 1)\n"
"oPyflowline.pyflowline_change_model_parameter('iFlag_dam', 0, iFlag_basin_in= 1)\n"
]
},
{
Expand Down Expand Up @@ -515,8 +515,8 @@
"source": [
"#another important setting for basin is the approximate outlet location\n",
"#you can set it using the change_model_parameter function\n",
"oPyflowline.change_model_parameter('dLongitude_outlet_degree', -76.0093, iFlag_basin_in = 1)\n",
"oPyflowline.change_model_parameter('dLatitude_outlet_degree', 39.4620, iFlag_basin_in = 1)"
"oPyflowline.pyflowline_change_model_parameter('dLongitude_outlet_degree', -76.0093, iFlag_basin_in = 1)\n",
"oPyflowline.pyflowline_change_model_parameter('dLatitude_outlet_degree', 39.4620, iFlag_basin_in = 1)"
]
},
{
Expand Down Expand Up @@ -615,7 +615,7 @@
],
"source": [
"#setup the model \n",
"oPyflowline.setup()"
"oPyflowline.pyflowline_setup()"
]
},
{
Expand Down Expand Up @@ -729,7 +729,7 @@
],
"source": [
"#run step 1\n",
"oPyflowline.flowline_simplification();"
"oPyflowline.pyflowline_flowline_simplification();"
]
},
{
Expand Down Expand Up @@ -1404,7 +1404,7 @@
"oPyflowline.dLatitude_bot= 39.20\n",
"oPyflowline.dLatitude_top= 42.8\n",
"\n",
"aCell = oPyflowline.mesh_generation()"
"aCell = oPyflowline.pyflowline_mesh_generation()"
]
},
{
Expand Down Expand Up @@ -1470,7 +1470,7 @@
],
"source": [
"oPyflowline.iFlag_mesh_boundary = 1\n",
"aCell = oPyflowline.mesh_generation()"
"aCell = oPyflowline.pyflowline_mesh_generation()"
]
},
{
Expand Down Expand Up @@ -1545,7 +1545,7 @@
],
"source": [
"#runs step 3\n",
"oPyflowline.reconstruct_topological_relationship();"
"oPyflowline.pyflowline_reconstruct_topological_relationship();"
]
},
{
Expand Down Expand Up @@ -1606,7 +1606,7 @@
"outputs": [],
"source": [
"#export output\n",
"oPyflowline.export();"
"oPyflowline.pyflowline_export();"
]
},
{
Expand Down

0 comments on commit 25627b9

Please sign in to comment.