-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tutorial updates #123
Tutorial updates #123
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,11 +38,11 @@ | |
"import os\n", | ||
"# clone tifs to tmp directory\n", | ||
"os.chdir('/tmp/')\n", | ||
"if not os.path.exists('/tmp/uavsar-tutorial-data'):\n", | ||
" !git clone --quiet https://github.com/SnowEx/uavsar-tutorial-data.git\n", | ||
"if not os.path.exists('/tmp/uavsar-tutorial-data-2022'):\n", | ||
" !git clone --quiet https://github.com/snowex-hackweek/uavsar-tutorial-data-2022.git\n", | ||
"\n", | ||
"# list files downloaded\n", | ||
"data_dir = '/tmp/uavsar-tutorial-data/'\n", | ||
"data_dir = '/tmp/uavsar-tutorial-data-2022/'\n", | ||
"os.chdir(data_dir)\n", | ||
"# ! ls -l" | ||
] | ||
|
@@ -101,7 +101,7 @@ | |
"outputs": [], | ||
"source": [ | ||
"# Directory of the uavsar tiffs\n", | ||
"data_dir = '/tmp/uavsar-tutorial-data/'\n", | ||
"data_dir = '/tmp/uavsar-tutorial-data-2022/'\n", | ||
"\n", | ||
"# Mesa Lake Snotel Coordinates\n", | ||
"snotel_coords = (-108.05, 39.05)" | ||
|
@@ -174,7 +174,8 @@ | |
"ax.set_ylim(38.75, 39.3)\n", | ||
"\n", | ||
"# Add background map\n", | ||
"cx.add_basemap(ax, crs=img.rio.crs, source = cx.providers.Stamen.TerrainLabels)\n", | ||
"# Unfortunately, the below line does not render as of 20240301\n", | ||
"# cx.add_basemap(ax, crs=img.rio.crs, source = cx.providers.Stamen.TerrainLabels)\n", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sad to see this not working with today's run anymore. Luckily it is not breaking essential parts of the tutorial. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, sadly since 10/2023 Stamen-provided map tiles require an API key (https://xyzservices.readthedocs.io/en/stable/changelog.html#xyzservices-2023-10-1-october-26-2023) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks for sharing and good to know |
||
"cx.add_basemap(ax, crs=img.rio.crs, alpha = 0.8, source = cx.providers.USGS.USImageryTopo)\n", | ||
"plt.title('Overview Map')\n", | ||
"plt.show()" | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was the main reason having this PR