Skip to content

doc: Migrate notebooks to grass.tools API#7360

Open
wenzeslaus wants to merge 7 commits intoOSGeo:mainfrom
wenzeslaus:update-notebooks-to-grass.tools
Open

doc: Migrate notebooks to grass.tools API#7360
wenzeslaus wants to merge 7 commits intoOSGeo:mainfrom
wenzeslaus:update-notebooks-to-grass.tools

Conversation

@wenzeslaus
Copy link
Copy Markdown
Member

@wenzeslaus wenzeslaus commented May 2, 2026

Replace grass.script command functions (gs.run_command, gs.parse_command, gs.read_command, gs.write_command, gs.mapcalc, gs.list_strings) with grass.tools.Tools across the doc/ notebooks.

The migration of parallelization_tutorial.ipynb is partial.

Also fixes the SeriesMap example in jupyter_tutorial.ipynb so it works with the nc_basic_spm_grass7 dataset, where "lakes" is a raster, not a vector: replace "lakes" with "roadsmajor".

https://mybinder.org/v2/gh/wenzeslaus/grass/update-notebooks-to-grass.tools?urlpath=lab%2Ftree%2Fdoc%2Fexamples%2Fnotebooks%2Fjupyter_example.ipynb

Replace grass.script command functions (gs.run_command, gs.parse_command, gs.read_command, gs.write_command, gs.mapcalc, gs.list_strings) with grass.tools.Tools across the doc/ notebooks.

The migration of parallelization_tutorial.ipynb is partial.

Also fixes the SeriesMap example in jupyter_tutorial.ipynb so it works with the nc_basic_spm_grass7 dataset, where "lakes" is a raster, not a vector: replace "lakes" with "roadsmajor".
Comment thread doc/examples/notebooks/hydrology.ipynb Outdated
Comment thread doc/examples/notebooks/hydrology.ipynb Outdated
Comment thread doc/examples/notebooks/hydrology.ipynb Outdated
Comment thread doc/examples/notebooks/hydrology.ipynb Outdated
Comment thread doc/examples/notebooks/hydrology.ipynb Outdated
Comment thread doc/examples/notebooks/solar_potential.ipynb Outdated
Comment thread doc/examples/notebooks/viewshed_analysis.ipynb Outdated
Comment thread doc/examples/notebooks/viewshed_analysis.ipynb Outdated
Comment thread doc/examples/notebooks/viewshed_analysis.ipynb Outdated
Comment thread doc/examples/notebooks/viewshed_analysis.ipynb Outdated
Co-authored-by: Anna Petrasova <kratochanna@gmail.com>
Comment thread doc/examples/notebooks/hydrology.ipynb Outdated
wenzeslaus and others added 2 commits May 6, 2026 00:20
Co-authored-by: Anna Petrasova <kratochanna@gmail.com>
Comment thread doc/examples/notebooks/hydrology.ipynb Outdated
Comment thread doc/examples/notebooks/hydrology.ipynb
Comment thread doc/examples/notebooks/hydrology.ipynb
wenzeslaus and others added 2 commits May 6, 2026 00:27
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Comment thread doc/examples/notebooks/parallelization_tutorial.ipynb Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants