From 53443e40d59da19fa483f561048942a95a4a9972 Mon Sep 17 00:00:00 2001 From: Will Hobbs <45701090+williamhobbs@users.noreply.github.com> Date: Thu, 16 May 2024 08:23:58 -0500 Subject: [PATCH] filter on asset_type == combiner --- demos/plant_digitization_example.ipynb | 180 +++++++++++++------------ 1 file changed, 97 insertions(+), 83 deletions(-) diff --git a/demos/plant_digitization_example.ipynb b/demos/plant_digitization_example.ipynb index f473b8e..d409560 100644 --- a/demos/plant_digitization_example.ipynb +++ b/demos/plant_digitization_example.ipynb @@ -64,12 +64,14 @@ }, { "cell_type": "code", + "execution_count": 1, "metadata": { "ExecuteTime": { "end_time": "2024-05-15T23:19:06.581166Z", "start_time": "2024-05-15T23:19:05.820496Z" } }, + "outputs": [], "source": [ "# we need geopandas and matplotlib, which are not automatically installed with solartoolbox, so we'll install them if they're not present.\n", "try:\n", @@ -84,45 +86,27 @@ " !pip install matplotlib\n", " \n", "import pandas as pd" - ], - "outputs": [], - "execution_count": 1 + ] }, { "cell_type": "markdown", "metadata": {}, - "source": "Read in the GeoJSON file that we created with QGIS and preview the resulting DataFrame, which uses latitude and longitude coordinates in degrees:" + "source": [ + "Read in the GeoJSON file that we created with QGIS and preview the resulting DataFrame, which uses latitude and longitude coordinates in degrees:" + ] }, { "cell_type": "code", + "execution_count": 2, "metadata": { "ExecuteTime": { "end_time": "2024-05-15T23:19:06.725162Z", "start_time": "2024-05-15T23:19:06.583132Z" } }, - "source": [ - "data = gpd.read_file('data/digitized_plant.geojson')\n", - "data.head()" - ], "outputs": [ { "data": { - "text/plain": [ - " id asset_type asset_name \\\n", - "0 None combiner CMB-001-01 \n", - "1 None combiner CMB-001-02 \n", - "2 None combiner CMB-001-03 \n", - "3 None combiner CMB-001-04 \n", - "4 None combiner CMB-001-05 \n", - "\n", - " geometry \n", - "0 MULTIPOLYGON (((-83.67303 33.68023, -83.67303 ... \n", - "1 MULTIPOLYGON (((-83.67282 33.68006, -83.67282 ... \n", - "2 MULTIPOLYGON (((-83.67261 33.67975, -83.67261 ... \n", - "3 MULTIPOLYGON (((-83.67240 33.67946, -83.67240 ... \n", - "4 MULTIPOLYGON (((-83.67220 33.67916, -83.67220 ... " - ], "text/html": [ "
\n", "