Skip to content
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

Compute total field anomaly from the anomalous magnetic field #510

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

indiauppal
Copy link
Member

Implement the total field anomaly function. Add to the api index.

Relevant issues/PRs:
Fixes #506

>>> print(tfa)
50000.0
"""
b_e, b_n, b_u = magnetic_field

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You could add a small check to control that the parameter declination is indeed in degree.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the suggestion @VascoSch92. It's hard to implement such checks. There's no way we can identify if the user passed an angle in radians or in degrees, besides making assumptions upon its value. I think documenting the argument properly, and keeping the consistency among the package (all inclination and declination angles, along with all longitude and latitude angles in Harmonica as expected in degrees) is enough to make users aware what is expected for these arguments.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you are right :-)

@leouieda leouieda changed the title Compute total field anomaly from the anomalous magnetic field. Compute total field anomaly from the anomalous magnetic field Jun 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Compute total field anomaly from magnetic field components
3 participants