docs: Show grass.tools with arrays before grass.script.array#6313
Merged
echoix merged 5 commits intoOSGeo:mainfrom Sep 13, 2025
Merged
docs: Show grass.tools with arrays before grass.script.array#6313echoix merged 5 commits intoOSGeo:mainfrom
echoix merged 5 commits intoOSGeo:mainfrom
Conversation
The main interface doc for Python now shows how GRASS tools are used with arrays through grass.tools before showing direct conversions between GRASS rasters and NumPy arrays with grass.script.array.
7563388 to
51898a5
Compare
Member
Author
|
With #5878 merged, this is ready for review. The code now runs (unlike the original which missed few things including showing the plot in an interactive console). The examples are shorter, both thanks to the usage of grass.tools and to shorter variable names. While the second code block says as is, the original first code block is now broken in two. The first block is now simply a grass.tools call with arrays, and the explicit conversion part is moved to a new, third block. The text and code examples cover the same usages as before, but feeding arrays to and getting arrays from tools is now covered first and as a separate subject from the data conversions. |
petrasovaa
reviewed
Sep 8, 2025
Co-authored-by: Anna Petrasova <[email protected]>
Member
Author
petrasovaa
approved these changes
Sep 9, 2025
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.


The main interface doc for Python now shows how GRASS tools are used with arrays through grass.tools before showing direct conversions between GRASS rasters and NumPy arrays with grass.script.array.