diff --git a/reshape.ipynb b/reshape.ipynb index e874b6c..1cb3c32 100644 --- a/reshape.ipynb +++ b/reshape.ipynb @@ -1857,7 +1857,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 10, "id": "f85ea9b9-c0cc-41d1-b60e-9abf6aa59b68", "metadata": {}, "outputs": [ @@ -1865,22 +1865,30 @@ "name": "stdout", "output_type": "stream", "text": [ - "Processing folder: NIWOT_calibration_flight_08_2020/NEON_D13_NIWO_DP1_20200801_161441_reflectance\n" + "Processing folder: NIWOT_calibration_flight_08_2020/NEON_D13_NIWO_DP1_20200807_170802_reflectance\n" ] }, { "data": { "application/vnd.jupyter.widget-view+json": { - "model_id": "816df44aa6f94a9da252152bb66b25dc", + "model_id": "68d0e9b150a548e49532db11b53584ac", "version_major": 2, "version_minor": 0 }, "text/plain": [ - "Processing CSV: 0%| | 0/66 [00:00\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
Pixel_RowPixel_ColGlobalIDCreationDateCreatorEditDateEditordescription_notesdbhtree_height...Landsat_8_band_4Landsat_8_band_5Landsat_8_band_6Landsat_9_band_1Landsat_9_band_2Landsat_9_band_3Landsat_9_band_4Landsat_9_band_5Landsat_9_band_6Flight_line
01222554{E9346797-777A-4D43-BD01-02A511C57DAA}2023-06-20 19:27:29+00:00Tyler.L.McIntosh_ucboulder2023-06-20T19:27:29+00:00Tyler.L.McIntosh_ucboulderNaNNaNNaN...2559.932534729.276808235.844050150.485106227.386952144.6700112559.932534729.276808235.844050NEON_D13_NIWO_DP1_20200801_161441_reflectance
11222555{E9346797-777A-4D43-BD01-02A511C57DAA}2023-06-20 19:27:29+00:00Tyler.L.McIntosh_ucboulder2023-06-20T19:27:29+00:00Tyler.L.McIntosh_ucboulderNaNNaNNaN...2316.964286677.671657213.190474130.234725187.391979114.9670462316.964286677.671657213.190474NEON_D13_NIWO_DP1_20200801_161441_reflectance
21223554{E9346797-777A-4D43-BD01-02A511C57DAA}2023-06-20 19:27:29+00:00Tyler.L.McIntosh_ucboulder2023-06-20T19:27:29+00:00Tyler.L.McIntosh_ucboulderNaNNaNNaN...3274.149362911.557229295.761100177.427782295.826530195.8558623274.149362911.557229295.761100NEON_D13_NIWO_DP1_20200801_161441_reflectance
31223555{E9346797-777A-4D43-BD01-02A511C57DAA}2023-06-20 19:27:29+00:00Tyler.L.McIntosh_ucboulder2023-06-20T19:27:29+00:00Tyler.L.McIntosh_ucboulderNaNNaNNaN...3048.000241919.375727302.883800165.633962261.292609171.1734233048.000241919.375727302.883800NEON_D13_NIWO_DP1_20200801_161441_reflectance
41224558{54D1A59F-2B5C-4D76-913A-690314E314A7}2023-06-20 19:28:37+00:00Tyler.L.McIntosh_ucboulder2023-06-20T19:28:37+00:00Tyler.L.McIntosh_ucboulderNaNNaNNaN...2242.813980852.598010344.220227165.620471243.318364176.1341242242.813980852.598010344.220227NEON_D13_NIWO_DP1_20200801_161441_reflectance
..................................................................
144853895799{C7FA2D22-8033-4D92-A756-1299D67986B4}2023-06-13 16:03:03+00:00Tyler.L.McIntosh_ucboulder2023-06-13T16:03:03+00:00Tyler.L.McIntosh_ucboulderNaNNaNNaN...2608.0098181120.970482574.358940209.718434450.654481350.5270432608.0098181120.970482574.358940NEON_D13_NIWO_DP1_20200807_163444_reflectance
144863895800{C7FA2D22-8033-4D92-A756-1299D67986B4}2023-06-13 16:03:03+00:00Tyler.L.McIntosh_ucboulder2023-06-13T16:03:03+00:00Tyler.L.McIntosh_ucboulderNaNNaNNaN...2618.9260131125.762646576.686649210.389938452.442482352.1891342618.9260131125.762646576.686649NEON_D13_NIWO_DP1_20200807_163444_reflectance
144873895801{C7FA2D22-8033-4D92-A756-1299D67986B4}2023-06-13 16:03:03+00:00Tyler.L.McIntosh_ucboulder2023-06-13T16:03:03+00:00Tyler.L.McIntosh_ucboulderNaNNaNNaN...2259.0852941435.186943765.169186239.016707474.551501423.2448532259.0852941435.186943765.169186NEON_D13_NIWO_DP1_20200807_163444_reflectance
144883895802{C7FA2D22-8033-4D92-A756-1299D67986B4}2023-06-13 16:03:03+00:00Tyler.L.McIntosh_ucboulder2023-06-13T16:03:03+00:00Tyler.L.McIntosh_ucboulderNaNNaNNaN...1696.776515734.542505326.745070149.602721321.140541232.9871531696.776515734.542505326.745070NEON_D13_NIWO_DP1_20200807_163444_reflectance
144893892792{4E5FD762-1FAA-4E10-9D08-97B812020D01}2023-06-13 16:03:49+00:00Tyler.L.McIntosh_ucboulder2023-06-13T16:03:49+00:00Tyler.L.McIntosh_ucboulderNaNNaNNaN...2134.7708542362.0438631549.487657320.706987553.750150620.5449232134.7708542362.0438631549.487657NEON_D13_NIWO_DP1_20200807_163444_reflectance
\n", + "

14490 rows × 904 columns

\n", + "" + ], + "text/plain": [ + " Pixel_Row Pixel_Col GlobalID \\\n", + "0 1222 554 {E9346797-777A-4D43-BD01-02A511C57DAA} \n", + "1 1222 555 {E9346797-777A-4D43-BD01-02A511C57DAA} \n", + "2 1223 554 {E9346797-777A-4D43-BD01-02A511C57DAA} \n", + "3 1223 555 {E9346797-777A-4D43-BD01-02A511C57DAA} \n", + "4 1224 558 {54D1A59F-2B5C-4D76-913A-690314E314A7} \n", + "... ... ... ... \n", + "14485 3895 799 {C7FA2D22-8033-4D92-A756-1299D67986B4} \n", + "14486 3895 800 {C7FA2D22-8033-4D92-A756-1299D67986B4} \n", + "14487 3895 801 {C7FA2D22-8033-4D92-A756-1299D67986B4} \n", + "14488 3895 802 {C7FA2D22-8033-4D92-A756-1299D67986B4} \n", + "14489 3892 792 {4E5FD762-1FAA-4E10-9D08-97B812020D01} \n", + "\n", + " CreationDate Creator \\\n", + "0 2023-06-20 19:27:29+00:00 Tyler.L.McIntosh_ucboulder \n", + "1 2023-06-20 19:27:29+00:00 Tyler.L.McIntosh_ucboulder \n", + "2 2023-06-20 19:27:29+00:00 Tyler.L.McIntosh_ucboulder \n", + "3 2023-06-20 19:27:29+00:00 Tyler.L.McIntosh_ucboulder \n", + "4 2023-06-20 19:28:37+00:00 Tyler.L.McIntosh_ucboulder \n", + "... ... ... \n", + "14485 2023-06-13 16:03:03+00:00 Tyler.L.McIntosh_ucboulder \n", + "14486 2023-06-13 16:03:03+00:00 Tyler.L.McIntosh_ucboulder \n", + "14487 2023-06-13 16:03:03+00:00 Tyler.L.McIntosh_ucboulder \n", + "14488 2023-06-13 16:03:03+00:00 Tyler.L.McIntosh_ucboulder \n", + "14489 2023-06-13 16:03:49+00:00 Tyler.L.McIntosh_ucboulder \n", + "\n", + " EditDate Editor \\\n", + "0 2023-06-20T19:27:29+00:00 Tyler.L.McIntosh_ucboulder \n", + "1 2023-06-20T19:27:29+00:00 Tyler.L.McIntosh_ucboulder \n", + "2 2023-06-20T19:27:29+00:00 Tyler.L.McIntosh_ucboulder \n", + "3 2023-06-20T19:27:29+00:00 Tyler.L.McIntosh_ucboulder \n", + "4 2023-06-20T19:28:37+00:00 Tyler.L.McIntosh_ucboulder \n", + "... ... ... \n", + "14485 2023-06-13T16:03:03+00:00 Tyler.L.McIntosh_ucboulder \n", + "14486 2023-06-13T16:03:03+00:00 Tyler.L.McIntosh_ucboulder \n", + "14487 2023-06-13T16:03:03+00:00 Tyler.L.McIntosh_ucboulder \n", + "14488 2023-06-13T16:03:03+00:00 Tyler.L.McIntosh_ucboulder \n", + "14489 2023-06-13T16:03:49+00:00 Tyler.L.McIntosh_ucboulder \n", + "\n", + " description_notes dbh tree_height ... Landsat_8_band_4 \\\n", + "0 NaN NaN NaN ... 2559.932534 \n", + "1 NaN NaN NaN ... 2316.964286 \n", + "2 NaN NaN NaN ... 3274.149362 \n", + "3 NaN NaN NaN ... 3048.000241 \n", + "4 NaN NaN NaN ... 2242.813980 \n", + "... ... ... ... ... ... \n", + "14485 NaN NaN NaN ... 2608.009818 \n", + "14486 NaN NaN NaN ... 2618.926013 \n", + "14487 NaN NaN NaN ... 2259.085294 \n", + "14488 NaN NaN NaN ... 1696.776515 \n", + "14489 NaN NaN NaN ... 2134.770854 \n", + "\n", + " Landsat_8_band_5 Landsat_8_band_6 Landsat_9_band_1 Landsat_9_band_2 \\\n", + "0 729.276808 235.844050 150.485106 227.386952 \n", + "1 677.671657 213.190474 130.234725 187.391979 \n", + "2 911.557229 295.761100 177.427782 295.826530 \n", + "3 919.375727 302.883800 165.633962 261.292609 \n", + "4 852.598010 344.220227 165.620471 243.318364 \n", + "... ... ... ... ... \n", + "14485 1120.970482 574.358940 209.718434 450.654481 \n", + "14486 1125.762646 576.686649 210.389938 452.442482 \n", + "14487 1435.186943 765.169186 239.016707 474.551501 \n", + "14488 734.542505 326.745070 149.602721 321.140541 \n", + "14489 2362.043863 1549.487657 320.706987 553.750150 \n", + "\n", + " Landsat_9_band_3 Landsat_9_band_4 Landsat_9_band_5 Landsat_9_band_6 \\\n", + "0 144.670011 2559.932534 729.276808 235.844050 \n", + "1 114.967046 2316.964286 677.671657 213.190474 \n", + "2 195.855862 3274.149362 911.557229 295.761100 \n", + "3 171.173423 3048.000241 919.375727 302.883800 \n", + "4 176.134124 2242.813980 852.598010 344.220227 \n", + "... ... ... ... ... \n", + "14485 350.527043 2608.009818 1120.970482 574.358940 \n", + "14486 352.189134 2618.926013 1125.762646 576.686649 \n", + "14487 423.244853 2259.085294 1435.186943 765.169186 \n", + "14488 232.987153 1696.776515 734.542505 326.745070 \n", + "14489 620.544923 2134.770854 2362.043863 1549.487657 \n", + "\n", + " Flight_line \n", + "0 NEON_D13_NIWO_DP1_20200801_161441_reflectance \n", + "1 NEON_D13_NIWO_DP1_20200801_161441_reflectance \n", + "2 NEON_D13_NIWO_DP1_20200801_161441_reflectance \n", + "3 NEON_D13_NIWO_DP1_20200801_161441_reflectance \n", + "4 NEON_D13_NIWO_DP1_20200801_161441_reflectance \n", + "... ... \n", + "14485 NEON_D13_NIWO_DP1_20200807_163444_reflectance \n", + "14486 NEON_D13_NIWO_DP1_20200807_163444_reflectance \n", + "14487 NEON_D13_NIWO_DP1_20200807_163444_reflectance \n", + "14488 NEON_D13_NIWO_DP1_20200807_163444_reflectance \n", + "14489 NEON_D13_NIWO_DP1_20200807_163444_reflectance \n", + "\n", + "[14490 rows x 904 columns]" + ] + }, + "execution_count": 24, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "import pandas as pd\n", + "\n", + "# Specify the path to your 'polygon_spectra.csv' file\n", + "csv_file_path = 'NIWOT_calibration_flight_08_2020/polygon_spectra.csv'\n", + "\n", + "# Load the CSV file into a pandas DataFrame\n", + "df = pd.read_csv(csv_file_path)\n", + "\n", + "\n", + "\n", + "# If you're using Jupyter notebooks or a similar interactive environment,\n", + "# you can just type the DataFrame variable to render it as a table:\n", + "pd.DataFrame(df)\n", + "\n" + ] } ], "metadata": { diff --git a/vignette.ipynb b/vignette.ipynb index e12ca17..17cf905 100644 --- a/vignette.ipynb +++ b/vignette.ipynb @@ -344029,7 +344029,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 77, "id": "b51e2c89-f47b-46e8-8f78-f0cabda1a2d7", "metadata": {}, "outputs": [ @@ -344053,6 +344053,14 @@ }, "metadata": {}, "output_type": "display_data" + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Filtered data saved to NIWOT_calibration_flight_08_2020/NEON_D13_NIWO_DP1_20200731_155024_reflectance/NEON_D13_NIWO_DP1_20200731_155024_reflectance_polygons.csv\n", + "Filtered data saved to NIWOT_calibration_flight_08_2020/NEON_D13_NIWO_DP1_20200731_155024_reflectance/NEON_D13_NIWO_DP1_20200731_155024_reflectance_polygons.csv\n" + ] } ], "source": [