-
-
Notifications
You must be signed in to change notification settings - Fork 332
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
raster: Read raster for mask from env variable #2392
Open
wenzeslaus
wants to merge
52
commits into
OSGeo:main
Choose a base branch
from
wenzeslaus:mask-env-var
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
52 commits
Select commit
Hold shift + click to select a range
7e5ba56
raster: Read raster for mask from env variable
wenzeslaus 4f7b08a
Merge remote-tracking branch 'upstream/main' into mask-env-var
neteler 1f9a63c
Merge remote-tracking branch 'upstream/main' into mask-env-var
wenzeslaus 36f0e67
Use separate function for name of the mask
wenzeslaus a9fe1d4
Merge remote-tracking branch 'upstream/main' into mask-env-var
wenzeslaus 2d987b9
Improve doc
wenzeslaus a8b23f6
Merge remote-tracking branch 'upstream/main' into mask-env-var
wenzeslaus 7065da2
Use env var in r.mapcalc test to disable masking instead of managing …
wenzeslaus b14ce17
Add Python context manager for mask env variable and start tests
wenzeslaus 39bf7e9
Merge with main
wenzeslaus 586158b
Update auto_mask.c
echoix a33358d
Merge branch 'main' into mask-env-var
echoix f79c613
Merge remote-tracking branch 'upstream/main' into mask-env-var
wenzeslaus cfa78be
New mask handling for raster md5 sh test and sync the const test
wenzeslaus 900b67d
Use unique names for test
wenzeslaus 58d157a
Merge remote-tracking branch 'upstream/main' into mask-env-var
wenzeslaus 0920569
Merge remote-tracking branch 'upstream/main' into mask-env-var
wenzeslaus d6a41d7
Add tests for different situations (implementation is still incomplete)
wenzeslaus 4465c56
Support arbitrary mask name in the library (updates r.mask.status beh…
wenzeslaus 967bd73
Merge remote merge
wenzeslaus d5ef245
Fix reclass retrival
wenzeslaus 84f669b
Create a new internal function to separate testing of the presence an…
wenzeslaus a44a5f3
Support user-provided mask name in r.mask
wenzeslaus 91da751
Use raster mask, not MASK in r.mask documentation in code
wenzeslaus 3d3b117
Merge remote-tracking branch 'upstream/main' into mask-env-var
wenzeslaus 40bdc2b
Add MaskManager to init
wenzeslaus 3a3901e
Merge remote-tracking branch 'upstream/main' into mask-env-var
wenzeslaus 7ae34f6
Use global variable instead of a hardcoded name just to make it more …
wenzeslaus 84ce225
r.fillnulls: Use a custom mask (but don't set it) instead of moving a…
wenzeslaus 7dfc51b
Merge remote-tracking branch 'upstream/main' into mask-env-var
wenzeslaus 26ffe8a
r.in.wms: Refactor into a function and use with-statement
wenzeslaus c026601
MaskManager: No need to talk about removing a mask, that's obvious
wenzeslaus 3bd24bb
Update best pratices for managing mask
wenzeslaus 0a7bf59
Use a global variable for the default mask name in tests
wenzeslaus aef5f41
A simple change updating raster into to the new mask wording and flex…
wenzeslaus 035b80f
r.mask: Document the new behavior in a basic way and center documenta…
wenzeslaus 2ae76b7
Replace MASK by mask in source code comments
wenzeslaus 449f44d
Basic update for Doxygen doc
wenzeslaus 58686fb
Extent parallelization notebook
wenzeslaus 37bd6d4
Add typing to the init function of MaskManager
wenzeslaus 8903969
Add GRASS_MASK to env vars doc
wenzeslaus 2706bec
Document best practices more specifically for Python.
wenzeslaus 18d9e56
Add doc and examples to Python docstring for the MaskManager
wenzeslaus ca89681
Add more context to the notebook example
wenzeslaus 43c3476
More complex expression, but creating strictly 0-or-1 mask.
wenzeslaus bbd6ae0
Unqualifying map name in Python needs a function
wenzeslaus e6440b6
Fix typo
wenzeslaus cd9ebee
Move general comments to general section, add examples, improve wording
wenzeslaus 99b7edb
Merge remote-tracking branch 'upstream/main' into mask-env-var
wenzeslaus d62b1e5
Apply clear spelling/wording fixes
wenzeslaus 6fc315d
Merge branch 'main' into mask-env-var
wenzeslaus 5697586
Rewrite whole section about different masks
wenzeslaus File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.
Oops, something went wrong.
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.
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.
what do you mean here with import tool? all the examples are with r.slope.aspect
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.
Maybe "an import tool". I could refer to r.in.wms as an example, but tgat relies an that code not changing. Making up an example seem like a lot theoretical code, but maybe the r.in.wms alpha is a good example. Appling a cloud mask would be another example.
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.
Yes, the "an" sounds good. Something like: "... in the processing steps of, e.g., an import tool, ..." to make it clear that it's just an example