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

Add function to get inclination and declination #10

Merged
merged 1 commit into from
Apr 17, 2023

Conversation

santisoler
Copy link
Contributor

Add a new function to compute the inclination and declination of
a magnetic field vector by passing its easting, northing and upward
components. Add test function that compares against simple geometric
cases and against a precomputed value using online calculators.

Add a new function to compute the inclination and declination of
a magnetic field vector by passing its easting, northing and upward
components. Add test function that compares against simple geometric
cases and against a precomputed value using online calculators.
@santisoler
Copy link
Contributor Author

Hi @klaundal! I think having this function in ppigrf is very handy. Let me know what do you think!


.. math::

D = - \arcsin \frac{B_e}{\sqrt{B_e^2 + B_n^2}}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Suggested change
D = - \arcsin \frac{B_e}{\sqrt{B_e^2 + B_n^2}}
D = \arcsin \frac{B_e}{\sqrt{B_e^2 + B_n^2}}

@klaundal klaundal merged commit e1dc056 into IAGA-VMOD:main Apr 17, 2023
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.

2 participants