Skip to content

Commit 954be80

Browse files
authored
Change Detection v1 Jupyter Notebooks Round 3 (planetlabs#156)
* Make before and after observation diagram clearer * Update list of available subscription IDs to latest feeds that trial users can access * Fix a spurious character AN-4649
1 parent 2a428d5 commit 954be80

File tree

1 file changed

+20
-8
lines changed

1 file changed

+20
-8
lines changed

jupyter-notebooks/analytics/user-guide/03_change_detection.ipynb

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
" \n",
2323
"> Explore change detection datasets visually and against Planet imagery\n",
2424
"\n",
25-
"4. [4. Change Detections Tip & Cue Tasking](#4.-Change-Detections-Tip-&-Cue-Tasking)\n",
25+
"4. [Change Detections Tip & Cue Tasking](#4.-Change-Detections-Tip-&-Cue-Tasking)\n",
2626
" \n",
2727
"> Task high resolution collects using change detections\n"
2828
]
@@ -181,10 +181,22 @@
181181
"outputs": [],
182182
"source": [
183183
"# Define the Subscripton UUID\n",
184-
"subscription_id = \"PASTE_YOUR_SUBSCRIPTION ID HERE\"\n",
185-
"# Example subscription IDs:\n",
186-
"#subscription_id = \"635c57d3-b921-453f-8e79-70929e50a470\" # Monthly Building Construction\n",
187-
"#subscription_id = \"8869cf69-9596-47ab-8d94-52b94fcf528e\" # Monthly Road Construction\n",
184+
"#subscription_id = \"PASTE_YOUR_SUBSCRIPTION ID HERE\"\n",
185+
"\n",
186+
"# Define the Subscripton UUID\n",
187+
"#subscription_id = \"PASTE_YOUR_SUBSCRIPTION ID HERE\"\n",
188+
"\n",
189+
"# Example subcription IDs:\n",
190+
"\n",
191+
"# Melbourne, Australia:\n",
192+
"subscription_id = \"2f71f34a-c9f0-4348-9c5d-278b1d7a6b02\" # Monthly Road Construction\n",
193+
"#subscription_id = \"234e9cb1-49f1-418a-899e-52e4edfd55d4\" # Monthly Building Construction\n",
194+
"\n",
195+
"# Mckinney City, Texas, USA:\n",
196+
"#subscription_id = \"c84d91c5-2d04-4447-a0a6-806b2a297343\" # Monthly Building Construction\n",
197+
"\n",
198+
"# Old Baldy, New Mexico, USA:\n",
199+
"#subscription_id = \"c4ed4a53-dacf-4fa3-8570-5804f67c330b\"\n",
188200
"\n",
189201
"# Construct the URL for the Subscription\n",
190202
"subscription_url = PAA_BASE_URL + 'subscriptions/' + subscription_id\n",
@@ -688,15 +700,15 @@
688700
"detection_plot = gv.Shape(shape(single_detection['geometry'])).options(padding=3, fill_alpha=0, line_color='red', active_tools=['pan', 'wheel_zoom'])\n",
689701
"\n",
690702
"# Format dates\n",
691-
"observed_date = single_detection['observed'].strftime('%B, %Y')\n",
692703
"before_date = single_detection['date_before'].strftime('%B, %Y')\n",
704+
"observed_date = single_detection['observed'].strftime('%B, %Y')\n",
693705
"\n",
694706
"# Create plots for the imagery\n",
695-
"observed_imagery_plot = gv.WMTS(get_mosaic_url(single_detection['source_mosaic_after'])).options(title=observed_date, width=400, height=400)\n",
696707
"before_imagery_plot = gv.WMTS(get_mosaic_url(single_detection['source_mosaic_before'])).options(title=before_date, width=400, height=400)\n",
708+
"observed_imagery_plot = gv.WMTS(get_mosaic_url(single_detection['source_mosaic_after'])).options(title=observed_date, width=400, height=400)\n",
697709
"\n",
698710
"# Show the combined plots\n",
699-
"detection_plot * (observed_imagery_plot + before_imagery_plot)\n"
711+
"detection_plot * (before_imagery_plot + observed_imagery_plot)\n"
700712
]
701713
},
702714
{

0 commit comments

Comments
 (0)