GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||
GeezerVison is showing github.com — pygmt.grdgradient: Add parameters 'normalize'/'norm_ambient'/'norm_amp'/'norm_sigma'/'norm_offset' for normalization by seisman · Pull Request #4365 · GenericMappingTools/pygmt Conversation
|
| File | Description |
|---|---|
| pygmt/src/grdgradient.py | Adds helper function _alias_option_N to handle new normalization parameters and their conversion to GMT CLI format; updates function signature and documentation |
| pygmt/tests/test_grdgradient.py | Adds tests to verify that mixing old GMT syntax with new parameters raises appropriate errors |
| examples/gallery/images/grdgradient_shading.py | Updates example to demonstrate new Pythonic normalization syntax with normalize="cauchy"/"laplace" and norm_amp parameter |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
@GenericMappingTools/pygmt-maintainers I plan to merge this PR in 24 hours if no further comments. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Formulations and implementations seems ok. Just one comment on the gallery example.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| - ``normalize`` to enhance the three-dimensional sense of the topography. | ||
| - ``azimuth`` sets the illumination light source direction (0° is North, 90° is East, | ||
| 180° is South, 270° is West). | ||
| - ``normalize`` and related parameters enhances the 3-D sense of the topography. |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Maybe state that the normalize param sets the normalization method (e.g. Cauchy/Laplace), and norm_amp sets the output magnitude/amplitude?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I've make related changes in 9c142eb.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.