From 4c2e7f782736bf48aa260f97f8c98a3266befe5a Mon Sep 17 00:00:00 2001 From: vcigwe Date: Thu, 19 Sep 2024 14:33:48 -0400 Subject: [PATCH] Uploading latest changes --- siting_lab/revx_geotiff_tutorial.ipynb | 44 +++++++++++++++++++++++-- siting_lab/revx_setbacks_tutorial.ipynb | 2 +- 2 files changed, 42 insertions(+), 4 deletions(-) diff --git a/siting_lab/revx_geotiff_tutorial.ipynb b/siting_lab/revx_geotiff_tutorial.ipynb index 667036f..328eff3 100644 --- a/siting_lab/revx_geotiff_tutorial.ipynb +++ b/siting_lab/revx_geotiff_tutorial.ipynb @@ -50,6 +50,8 @@ "source": [ "from pathlib import Path\n", "\n", + "import leafmap\n", + "\n", "from reVX.handlers.geotiff import Geotiff" ] }, @@ -71,6 +73,42 @@ "DATA = Path(\"../data/nexrad_green_los.tif\")" ] }, + { + "cell_type": "markdown", + "id": "59a32af8", + "metadata": {}, + "source": [ + "Let's see what our data looks like." + ] + }, + { + "cell_type": "code", + "execution_count": 9, + "id": "e668c595", + "metadata": {}, + "outputs": [ + { + "data": { + "application/vnd.jupyter.widget-view+json": { + "model_id": "31063ab63cc447ba9b74e41402fa319c", + "version_major": 2, + "version_minor": 0 + }, + "text/plain": [ + "Map(center=[37.235084, -96.753095], controls=(ZoomControl(options=['position', 'zoom_in_text', 'zoom_in_title'…" + ] + }, + "execution_count": 9, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "m = leafmap.Map(center=[38, -106], zoom=15)\n", + "m.add_local_tile(\"../data/nexrad_green_los.tif\", layer_name=\"GeoTIFF Layer\")\n", + "m" + ] + }, { "cell_type": "markdown", "id": "cd62efe6", @@ -83,7 +121,7 @@ }, { "cell_type": "code", - "execution_count": 4, + "execution_count": 8, "id": "e9eea203", "metadata": {}, "outputs": [ @@ -132,7 +170,7 @@ }, { "cell_type": "code", - "execution_count": 5, + "execution_count": 4, "id": "23e2cca1", "metadata": {}, "outputs": [ @@ -233,7 +271,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.4" + "version": "3.12.6" } }, "nbformat": 4, diff --git a/siting_lab/revx_setbacks_tutorial.ipynb b/siting_lab/revx_setbacks_tutorial.ipynb index cc58349..5dd91fd 100644 --- a/siting_lab/revx_setbacks_tutorial.ipynb +++ b/siting_lab/revx_setbacks_tutorial.ipynb @@ -173,7 +173,7 @@ "source": [ "In some cases like in wind regulation, setbacks are given as multipliers of tip-height of turbine blade.\n", "\n", - "In such cases, we don need to manually compute the base setback distance, instead we can specify the turbine hub-height and rotor diameter, as well as the setback multiplier on tip height as arguments to `compute_setbacks`\n", + "In such cases, we don't need to manually compute the base setback distance, instead we can specify the turbine hub-height and rotor diameter, as well as the setback multiplier on tip height as arguments to `compute_setbacks`\n", "\n", "*set `base_setback_distance` to `None` when using this option" ]