-
Notifications
You must be signed in to change notification settings - Fork 137
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
Inversion with fixed region does not export results #774
Comments
Regions with fixed values are background regions (like the big box around every normal inversion) just needed for the forward calculation and therefore not part of the inverse problem. As a result, the values are not mapped back from the model vector and therefore not plotted as in the region tutorial You add this by hand using
We could potentially also include fixed regions into |
Hi Thomas, Thanks for the reply, but I think I still don't get it. I am attaching a small data file that should take few seconds to run (ws__00.txt and bath_00.txt). I am not actually fixing the the water layer, but I rather use a lower and upper limit (not sure how's it's treated in the inversion, but that's another question). Still, when I
I get this image (the water layer is present) when I
The pdf looks fine (including the water layer) I suppose the mesh in the vtk does not include the the fixed area? |
Follow up
So if I understand correctly, you export the values of the rest2 (581) + water mesh (923) in the mgr.model (1504), but the way you plot it in the vtk has these values NOT in mesh order ? For Instance
works, not sure where you export the mesh in vtk |
Edit 2: I think I found the bug (?) When you export in vtk, you export as
but if I export as
Then it works. |
Edit 3: In case someone else has a similar issue, this is how I solved it, without re-running the inversion and assuming you have saved the results `
` |
Well, the model vector |
Thanks Thomas. Hope my "case" is helpful. |
Problem description
I am inverting some marine ERT data, using floating cable. I am fixing the bathymetry and resistivity value of the water layer, but when I save the results, the VTK file looks off while the pdf looks ok.
Your environment
Operating system: e.g. Windows
Python version: 3.11,1
pyGIMLi version: Output of
print(pygimli.__version__)
Way of installation: e.g. Conda
Steps to reproduce
Tell us how to reproduce this issue. Ideally, you could paste the code that produces the error:
Expected behavior
The inversion results saved as vtk and pdf match
ws__02.txt
Actual behavior
Rename resistivity_vtk.txt to resistivity.vtk
bath_02.txt
resistivity.pdf
ws__02.txt
resistivity_vtk.txt
The text was updated successfully, but these errors were encountered: