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

Magnetic field of dipoles in Cartesian coordinates #414

Merged
merged 15 commits into from
Jun 1, 2023
Merged

Magnetic field of dipoles in Cartesian coordinates #414

merged 15 commits into from
Jun 1, 2023

Conversation

santisoler
Copy link
Member

@santisoler santisoler commented May 19, 2023

Add forward modelling functions for the magnetic field of dipoles in Cartesian coordinates: dipole_magnetic and dipole_magnetic_component. The first one computes the three components of the magnetic field, while the latter computes only one of them. The forward modelling is done using the Choclo functions for dipoles.

Relevant issues/PRs:

Part of #406

Add forward modelling functions for dipoles: `dipole_magnetic` and
`dipole_magnetic_component`. The first one computes the three components
of the magnetic field, while the latter computes only one of them.
The forward modelling is done using the Choclo functions for dipoles.
Inform users that they should use `dipole_magnetic` if they want to
compute the three components of the magnetic vector.
@santisoler santisoler changed the title Magnetic field of dipoles Magnetic field of dipoles in Cartesian coordinates May 19, 2023
Add a private function to check the shape and size of dipoles and
magnetic moment vectors that is reused by the two magnetic forward
modelling functions.
Add a new user guide page with examples on how to compute the magnetic
fields generated by dipoles.
@santisoler santisoler requested a review from LL-Geo May 26, 2023 22:34
Copy link
Member

@LL-Geo LL-Geo left a comment

Choose a reason for hiding this comment

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

Looks great @santisoler !😁 A small change for the figure and some typos then it will be perfect to merge 😀
image

Copy link
Member

Choose a reason for hiding this comment

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

The vector should point toward the bottom (negative) pole?

Copy link
Member Author

Choose a reason for hiding this comment

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

haha, totally! Good catch!

doc/user_guide/forward_modelling/dipole.rst Outdated Show resolved Hide resolved
doc/user_guide/forward_modelling/dipole.rst Outdated Show resolved Hide resolved
harmonica/_forward/dipole.py Outdated Show resolved Hide resolved
harmonica/_forward/dipole.py Outdated Show resolved Hide resolved
santisoler and others added 3 commits June 1, 2023 09:07
Also, fix color of arrow head in Chrome-based browsers.
@santisoler
Copy link
Member Author

Thanks @LL-Geo for the review! I'm merging this!

@santisoler santisoler merged commit e567835 into main Jun 1, 2023
@santisoler santisoler deleted the dipole branch June 1, 2023 17:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

2 participants