Maintenance scheduled for Thursday, September 24th at 15:00 MDT. Expected downtime <1 hour.

Edited notebooks

parent 2c5a5afe
This diff is collapsed.
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
This diff is collapsed.
......@@ -2,7 +2,7 @@
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
......@@ -11,167 +11,23 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": null,
"metadata": {
"scrolled": false
"scrolled": false,
"tags": []
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Help on class RASProject in module fluegg.ras:\n",
"\n",
"class RASProject(builtins.object)\n",
" | RAS project.\n",
" | \n",
" | After use, call close() to keep the RAS process from lingering. The\n",
" | RASProject interface facilitates the use of the with-statement. See\n",
" | below for an example.\n",
" | \n",
" | ```\n",
" | with RASProject(project_file_path) as rp:\n",
" | hydrauilc_data = rp.hydraulic_model_data('Unsteady')\n",
" | ```\n",
" | \n",
" | \n",
" | Parameters\n",
" | ----------\n",
" | project_file_path : str\n",
" | Path to RAS project file\n",
" | \n",
" | Notes\n",
" | -----\n",
" | The values in the output of hydraulic_model_data are in metric units. If\n",
" | the quantities in the RAS project are in English units, the output will be\n",
" | converted.\n",
" | \n",
" | Methods defined here:\n",
" | \n",
" | __enter__(self)\n",
" | \n",
" | __exit__(self, *args)\n",
" | \n",
" | __init__(self, project_file_path)\n",
" | Initialize self. See help(type(self)) for accurate signature.\n",
" | \n",
" | close(self)\n",
" | Close the RAS controller\n",
" | \n",
" | current_plan_name(self)\n",
" | Returns the current plan name\n",
" | \n",
" | Returns\n",
" | -------\n",
" | str\n",
" | \n",
" | current_reach_name(self)\n",
" | Returns the current reach name\n",
" | \n",
" | Returns\n",
" | -------\n",
" | str\n",
" | \n",
" | current_river_name(self)\n",
" | Returns the current river name\n",
" | \n",
" | Returns\n",
" | -------\n",
" | str\n",
" | \n",
" | hydraulic_model_data(self, profile_name, temperature=22)\n",
" | Returns a pandas.DataFrame containing hydraulic data for the specified profile.\n",
" | \n",
" | If 'Unsteady' is specified for profile_name, the index of the DataFrame will be a pandas.MultiIndex\n",
" | \n",
" | Parameters\n",
" | ----------\n",
" | profile_name : str\n",
" | Name of profile. The name must be in the list of profiles or 'Unsteady'. If 'Unsteady', the\n",
" | RAS profile must have an associated unsteady file.\n",
" | temperature : float\n",
" | Water temperature\n",
" | \n",
" | Returns\n",
" | -------\n",
" | pandas.DataFrame\n",
" | \n",
" | plan_names(self)\n",
" | Returns a list of plan names in this RAS project.\n",
" | \n",
" | Returns\n",
" | -------\n",
" | list\n",
" | \n",
" | profile_names(self)\n",
" | Returns a list of profile names in this RAS project.\n",
" | \n",
" | Returns\n",
" | -------\n",
" | list\n",
" | \n",
" | project_units(self)\n",
" | Returns the RAS project units.\n",
" | \n",
" | Returns\n",
" | -------\n",
" | str\n",
" | \n",
" | reach_names(self)\n",
" | Returns a list of reach names in this RAS project.\n",
" | \n",
" | Returns\n",
" | -------\n",
" | list\n",
" | \n",
" | river_names(self)\n",
" | Returns a list of river names in this RAS project.\n",
" | \n",
" | Returns\n",
" | -------\n",
" | list\n",
" | \n",
" | set_current_plan(self, plan_name)\n",
" | Sets the current plan name for this RAS project.\n",
" | \n",
" | Parameters\n",
" | ----------\n",
" | plan_name : str\n",
" | Plan name. The plan name must be in the list of plan names of this project.\n",
" | \n",
" | ----------------------------------------------------------------------\n",
" | Data descriptors defined here:\n",
" | \n",
" | __dict__\n",
" | dictionary for instance variables (if defined)\n",
" | \n",
" | __weakref__\n",
" | list of weak references to the object (if defined)\n",
"\n"
]
}
],
"outputs": [],
"source": [
"help(RASProject)"
]
},
{
"cell_type": "code",
"execution_count": 3,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Current plan name: case1\n",
"Profile names\n",
"----------\n",
" PF 1\n",
" PF 2\n"
]
}
],
"execution_count": null,
"metadata": {
"tags": []
},
"outputs": [],
"source": [
"project_file_path = r'..\\test\\data\\ras\\steadyflume\\rectangular-flume.prj'\n",
"\n",
......@@ -187,95 +43,9 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": null,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"<div>\n",
"<style scoped>\n",
" .dataframe tbody tr th:only-of-type {\n",
" vertical-align: middle;\n",
" }\n",
"\n",
" .dataframe tbody tr th {\n",
" vertical-align: top;\n",
" }\n",
"\n",
" .dataframe thead th {\n",
" text-align: right;\n",
" }\n",
"</style>\n",
"<table border=\"1\" class=\"dataframe\">\n",
" <thead>\n",
" <tr style=\"text-align: right;\">\n",
" <th></th>\n",
" <th>Depth_m</th>\n",
" <th>Q_cms</th>\n",
" <th>Vmag_mps</th>\n",
" <th>CumlDistance_km</th>\n",
" <th>Ustar_mps</th>\n",
" <th>Vvert_mps</th>\n",
" <th>Vlat_mps</th>\n",
" <th>Temp_C</th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th>1</th>\n",
" <td>1.835397</td>\n",
" <td>24.999996</td>\n",
" <td>0.136210</td>\n",
" <td>5.0</td>\n",
" <td>0.013188</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>22</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2</th>\n",
" <td>1.835564</td>\n",
" <td>24.999996</td>\n",
" <td>0.136198</td>\n",
" <td>15.0</td>\n",
" <td>0.013187</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>22</td>\n",
" </tr>\n",
" <tr>\n",
" <th>3</th>\n",
" <td>1.835687</td>\n",
" <td>24.999996</td>\n",
" <td>0.136189</td>\n",
" <td>20.0</td>\n",
" <td>0.013186</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>22</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"</div>"
],
"text/plain": [
" Depth_m Q_cms Vmag_mps CumlDistance_km Ustar_mps Vvert_mps \\\n",
"1 1.835397 24.999996 0.136210 5.0 0.013188 0 \n",
"2 1.835564 24.999996 0.136198 15.0 0.013187 0 \n",
"3 1.835687 24.999996 0.136189 20.0 0.013186 0 \n",
"\n",
" Vlat_mps Temp_C \n",
"1 0 22 \n",
"2 0 22 \n",
"3 0 22 "
]
},
"execution_count": 4,
"metadata": {},
"output_type": "execute_result"
}
],
"outputs": [],
"source": [
"profile_name = project_profile_names[0]\n",
"temperature = 22\n",
......@@ -308,4 +78,4 @@
},
"nbformat": 4,
"nbformat_minor": 2
}
}
\ No newline at end of file
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment