-
Notifications
You must be signed in to change notification settings - Fork 72
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
Difficulty in performing Reduction to the Pole #534
Comments
@gabrahamastro could you please post the error message that you got? Without it, it's hard to know what went wrong. |
Apologies @leouieda - below is the error message:
|
@gabrahamastro thank you! OK, the problem is that you're doing the |
Also, note that in your reduction to the pole you don't specify the source magnetization direction. An induced magnetization is implied and your reduction will only be correct if this is true. If there is any source with remanent magnetization in your data then the reduction will be incorrect. Just thought it was worth point out. |
Let me know if removing the mask works of it comes up again. I'll close this issue for now but if you're still getting an error, please feel free to reopen it. |
Hi @leouieda, thank you for the help! I've now removed I've looked into it and, using the code which raised the error, I ran the below code:
running through all listed attributes in To these statements, I received This has confused me, since, if there are no To help, below I'll write down the output of Output of
|
Added to this, I've run the following to convert it into an
The only problem is that the
This means that it doesn't work with Do you think my theory about what is happening here is correct, and is there a better way to format an |
Apologies for the frequent comments, but I seem to have made a breakthrough. I've managed to get an output for the command, having converted the CodeConverting
|
I'm trying to perform a reduction to the pole operation on some gridded magnetic field data. However, I can't work out how to remove the error of
Found nan(s) on the passed grid. The grid must not have missing values before computing the Fast Fourier Transform.
To get the grid in the first place, I used the below code (using this, this and this tutorial):
However, this is where the error occurred.
I'm currently using:
Verde v1.8.1
Harmonica v0.7.0
xarray 2024.9.0
I realise that there have been some comments about Equivalent Sources (#426) not being suitable in its current form for magnetic fields, so please advise about another method of gridding the magnetic field data if this would be the best way forward.
The text was updated successfully, but these errors were encountered: