-
Notifications
You must be signed in to change notification settings - Fork 22
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
Reproducing TDEM response of pyGIMLi in empymod. #211
Comments
Hi @ahsan435 ! I haven't run your code, just briefly looked at it. You want to run a VMD, right? Then you need to set I close it for now, feel free to re-open if you cannot get it to work. |
Also, you set your source and receiver at 62500 m depth, that does not make sense. There are various examples in the gallery, have a look how to define it properly (e.g., https://empymod.emsig.xyz/en/stable/gallery/tdomain/, https://empymod.emsig.xyz/en/stable/gallery/reproducing/ward1988.html). |
Thank you very much for your response |
@prisae Sir, I am still not getting the same results. I am new to coding, so that's why I'm having problems with it. Can you tell me if, for this code, a dipole will be more suitable than a loop? |
I am afraid I do not have the time now to look into your code. But the documentation and the gallery is quite extensive, so you should hopefully find the necessary information! For such a large area (62500) it might be best to model the loop as a sequence/sum of dipoles. |
Thank you very much Sir I will try that one |
@prisae Dear Sir I applied your comments on the code but still not getting the same results, is there anything still missing in the code please guide me. I know that you are very busy but I am really stuck in it and need help. Thank you very much.
|
Then you can make the corresponding computation. What does your result with pyGIMLi show? Time versus what? Looking briefly at the code of |
the model response (y axis) for the pyGIMLi case is an apparent resistivity. I like this as it best compresses the data. Try to convert the empymod into apparent resistivity and plot both in the same figure. I am looking forward to see the comparison. |
empymod does not compute apparent resistivities. Apparent resistivity depends on your survey configuration. In pyGIMLi, you can see here: https://github.com/gimli-org/gimli/blob/master/pygimli/physics/em/vmd.py#L259-L274 how it is computed. For empymod, to reproduce it, you probably need the However, you cannot have zero horizontal offset in empymod. One solution is to have the receiver as a point in the middle, and construct a loop around it as source. I suspect that the best starting point would be the WalkTEM example: https://empymod.emsig.xyz/en/stable/gallery/tdomain/tem_walktem.html Otherwise, please explain in more detail what you exactly want to achieve, and how your survey layout looks like. |
Dear Sir, @prisae @halbmy I hope both are doing well. I tried a lot to convert the PYGIMLI code to the EMPYMOD code but am still not having success, and I also converted the magnetic field into apparent resistivity, but still the results are not matching each other. According to my understanding, there is still an issue in the configuration, but I am not getting it. Please help me regarding this. This is the current progress of the code Empymod Code:
Pygimli Code:
|
can you please enclose your code lines in two lines with triple backcommas? |
Dear Sir, Please check what you mean like this? |
Dear Sir @halbmy @prisae this is another Empymod configuration result; please have a look
|
I did it for you, but in the future, you need to use three backticks |
Dear Sir Thank you very much, and sorry for my mistake. Next time, I will be more careful. |
Hi @ahsan435, I gave it a quick go. However, later they diverge, and I do not know the reason for it now. To understand this difference we would have to look at the underlying assumption of the formulation used in pyGIMLi (maybe @halbmy has an idea).
|
If I put the last layer resistivity to a low value, the two responses agree. However, if I put it to a high value, they do not. I think it might be related to this uncommented code @halbmy, could that be? |
OK, I think I know what it is. It is just the point where the used Hankel or Fourier transform breaks down. If I model it for larger times up to 1e5 s, empymod also goes down, but it does get closer to the true resistivity of the lowest layer first. So I think in this example the transform of empymod simply fails a bit later then the one of pyGIMLi, that is all. So now you should have everything you need to know @ahsan435 ;-) |
Dear Sir, I am incredibly grateful for your help. It means more to me than I can express. |
Out of interest, and only if you are willing to share: What are you working on @ahsan435? What is the reason to want to reproduce the pyGIMLi result with empymod? (It is always good to compare solution, so nothing wrong with it.) |
Dear Sir, @prisae I am presently engaged in the geologically and structurally constrained inversion of TDEM data to enhance subsurface characterization. Given my novice proficiency in coding, I intend to commence with the basic inversion of TDEM using PYGIMLI. Subsequently, I aim to validate my code outcomes using the EMPYMOD library as an initial step. Your assistance has facilitated this initial phase, enabling me to progress to the subsequent stage, the LCI of TDEM. Following this, I plan to incorporate geological and structural data into the code. |
Feel free to join the Mattermost Chat of Software Underground for an easy way to communicate. Many EM folks and code developers are there (from pyGIMLi, SimPEG, etc). Very soon a paper will come out by Lukas from TU Vienna, and he uses empymod for inversions of FastTem data - his code will be available within days to weeks I believe. Also here with us at TUD María uses currently empymod for LCI inversions together with pyGIMLi - it might be interesting for you to follow her work. |
Dear Sir, @prisae Thank you sincerely for your assistance and for sharing this valuable information with me. |
I am trying to convert Pygimli TDEM code into Empymod TDEM but not getting the same results can someone help me to resolve this issue.
Pygimli code
Empymod Code
The text was updated successfully, but these errors were encountered: