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

Change signal of Bz component in random_directions #55

Open
YagoMCastro opened this issue Mar 6, 2025 · 0 comments
Open

Change signal of Bz component in random_directions #55

YagoMCastro opened this issue Mar 6, 2025 · 0 comments

Comments

@YagoMCastro
Copy link
Contributor

YagoMCastro commented Mar 6, 2025

Harmonica's function vec_to_angles inverts the upward compontent (Bz component in our case) so that the inclination points downwards, as bellow:

inclination = np.arctan(-magnetic_u / horizontal_component)

As Magali proposes that Bz component points down, it should be inverted when used in vec_to_anglesso that it keeps pointing in the right direction.

Suggestion

_, directions_inclination, directions_declination = hm.magnetic_vec_to_angles(
    x_r, y_r, z_r
)
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

No branches or pull requests

1 participant