Add horizontal_tilt_angle function and tests#562
Open
ErosKerouak wants to merge 6 commits intofatiando:mainfrom
Open
Add horizontal_tilt_angle function and tests#562ErosKerouak wants to merge 6 commits intofatiando:mainfrom
ErosKerouak wants to merge 6 commits intofatiando:mainfrom
Conversation
Implements the computation of the total horizontal derivative (THDR) of a potential field grid. This function calculates the square root of the sum of squares of the horizontal derivatives in the easting and northing directions.
Includes tests for: - Agreement with a synthetic model - Rejection of 1D and 3D grids - Handling of grids containing NaN values Ensures correctness and robustness of the total_horizontal_gradient filter.
Implements the theta map filter. The function computes the arctangent of the horizontal gradient magnitude over the total gradient amplitude. Includes a detailed docstring with formula and references.
Includes: - Validation against synthetic model using finite differences and FFT - Input error handling for 1D, 3D, and NaN-containing grids - Integration of theta_map import for test discovery
Implements the horizontal tilt angle (HTA) filter, which computes the arctangent of the horizontal gradient magnitude over the absolute value of the upward derivative. Includes a full docstring with LaTeX formula and reference.
Includes: - Validation against synthetic model - Input error handling for 1D, 3D, and NaN-filled grids
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.
This pull request adds the
horizontal_tilt_anglefunction toharmonica._transformations.The horizontal tilt angle is a enhancement filter used in gravity and magnetic interpretation. It computes the arctangent of the horizontal gradient magnitude over the absolute value of the upward derivative.
Summary of changes:
horizontal_tilt_anglefunction with full docstring and LaTeX formulaRelevant issues/PRs:
Closes #559
Related to #560, #561