-
-
Notifications
You must be signed in to change notification settings - Fork 308
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
lib: Add new SRTM_percent color table #4608
Conversation
This color table uses the color ramp from the srtm_plus color table for terrain to create colors for relative elevation (spread over the range of elevations in a raster map) rather than absolute elevation in meters. This applies srtm colors in a way similar to the way the elevation color table applies them. This color table is especially useful in creating nice looking elevation maps and shading relief maps.
Would you mind to add a screenshot here? (simply pasting works) |
Following up creating an image for Markus, I'd like to make a slight change in this. What is the best way to do it? Modify the PR or submit a new one? |
Please modify this pull request. |
A slight tweak in the color ramp to have smoother changes of color with relative elevation change. Looks good in both low relief and high relief landscapes.
done. Added a new image too |
For full integration of the new color table, it also needs to be added to https://github.com/OSGeo/grass/blob/main/lib/gis/colors.desc (otherwise it won't show up in |
OK. Thanks. Just put a 2nd copy there?
…____________________
Michael Barton
On Oct 28, 2024, at 2:38 PM, Markus Neteler ***@***.***> wrote:
For full integration of the new color table, it also needs to be added to https://github.com/OSGeo/grass/blob/main/lib/gis/colors.desc (otherwise it won't show up in r.colors, v.colors, etc.).
—
Reply to this email directly, view it on GitHub <#4608 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ACENLL6OQZAMBY2IEEOUXHTZ52OC7AVCNFSM6AAAAABQWJMH36VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINBSGY4DANRYG4>.
You are receiving this because you authored the thread.
|
Essentially you edit the file here in your branch and commit/push it to this branch. |
I'll do that after class today. I guess that will make a 2nd PR |
Since we normally squash-merge PRs, up until this PR is merged, you can add more commits, merge main into, do anything you'd like, and we can edit the final merge message once done |
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.
The ds store modification to gitignore needs to be universal to all directories. That might the thing which is better handled in a separate PR.
Yes, that should go into a separate PR. Note that the pattern ".DS_Store" is enough. It is also good to have this in the global git config: echo .DS_Store >> ~/.gitignore
git config --global core.excludesfile ~/.gitignore |
Add strm_pct and short description to list of colors in colors.desc
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.
I am not fond of the name "srtm_pct", how about srtm_percent or srtm_relative?
|
1 branch (of your fork) = 1 PR. You can continue changing the branch, and each commit pushed once the PR is opened shows up here. You can use your fork for creating multiple PRs, each in a branch. |
Thanks much. This explains a lot. So I can make any updates, commit and push, and it will update the PR. Good to know. |
Changed the name of the color table from srtm_pct to srtm_percent, and shortened the description of the color table in colors.desc
I made the recommended changes in the PR. I am happy to remove the .gitignore commit if someone can tell me how. Can/should I just delete it in my fork/branch and commit/push? |
That would do it. It's better a new commit (rather than rebase+force push) as there are already some review comments. After a force-push, it's hard to follow the comments that were made on commits that don't exist anymore in the PR. |
Thanks. Done. |
The goal is to remove the changes, not file file. Try |
I can always get this back locally. I just want this PR to go through |
The deletion is included in the PR. See the Files tab. That's why the file needs to be restored with checkout. |
Also, I just modified the PR title, see the instructions: |
checked out from main
This color table uses the color ramp from the srtm_plus color table for terrain to create colors for relative elevation (spread over the range of elevations in a raster map) rather than absolute elevation in meters. This applies srtm colors in a way similar to the way the elevation color table applies them. This color table is especially useful in creating nice looking elevation maps and shading relief maps.
If this seems useful, it could be backported to 8.4.x and 7.8