{{ message }}
Colab and Python tutorials: clarify paths, use new NC dataset - #146
Open
petrasovaa wants to merge 1 commit into
Open
petrasovaa wants to merge 1 commit into
petrasovaa wants to merge 1 commit into
Conversation
Mark the three Colab paths as alternatives rather than steps, define what a GRASS project is, and fix gs.init -> gj.init. Switch both tutorials to raleigh_northcarolina_usa_epsg6542, adapting the r.univar and census examples and regenerating the histogram figure.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Colab tutorial clarity
A user ran the whole notebook top to bottom, not realizing the sections
after installation are alternatives. Changes:
choice, and headings renamed to
Option A/B/Cso the TOC shows it too.option you picked — and shows both variants instead of silently repeating
Option A.
gj.init()switches to another project.
manual,
since "sample dataset" suggested a folder of GeoTIFFs.
gs.init()→gj.init(), which raisedAttributeError(
initis not exported fromgrass.script).New sample project
Both tutorials now use
raleigh_northcarolina_usa_epsg6542.elevationand
landusecarry over, but two cells in the fast track needed changes:r.univar -t ... separator=commaintopd.read_csvfailed, because theNLCD class labels contain commas (
Developed, Open Space). Switched tothe pipe separator. (
format="json"would be the robust fix, butr.univar gained it in 8.5 and Colab's ubuntugis PPA is still on 8.4.2.)
censusvector doesn't exist in the new project; replaced withcensus_blocksand itsPOP20/HOUSING20columns.grass_python_histogram.pngfrom the new elevation raster.This also corrects the legend, whose labels were swapped in the old figure.
All cells in both tutorials were run against a fresh download of the new
project.