Comments (8)
A simple bug only occuring for Pole-Dipole that was corrected (eedac16)
from gimli.
There was an error during terrain import because the Sensors are 73, while the terrain data is only 30. How should I handle this?
print(data)
print(data.sensorCount())
Data: Sensors: 73 data: 358, nonzero entries: ['a', 'b', 'm', 'n', 'rhoa', 'valid']
73
0 1291.784
5 1289.801
10 1287.954
15 1286.057
20 1284.747
25 1282.701
30 1280.152
35 1278.045
40 1276.219
45 1274.407
50 1271.613
55 1270.119
60 1268.588
65 1266.813
70 1264.946
75 1264.023
80 1265.691
85 1265.998
90 1264.944
95 1263.731
100 1259.808
105 1256.49
110 1252.827
115 1249.332
120 1246.578
125 1243.499
130 1240.428
135 1238.206
140 1236.123
145 1234.132
from gimli.
Generally, topographic data are having a different discretization. However, it seems like the are not read from the res2dinv file. Try reading them with numpy and use the following function for interpolation:
https://www.pygimli.org/pygimliapi/_generated/pygimli.meshtools.html#pygimli.meshtools.interpolateAlongCurve
from gimli.
I understand. Thank you very much for your patient response. Good luck to you.
from gimli.
We enabled reading topography from res2dinv file format (48ce372).
Note that the points are read but not yet automatically applied to the electrode positions, which might make sense later in a script. One can use
data.setSensorPositions(pg.meshtools.tapeMeasureToCoordinates(data.additionalPoints(), pg.x(data)))
However, in your case there is something wrong as your electrodes go beyond zero. So either there is something wrong in your data file, or our import routine has a bug for pole-dipole in conjunction for midpoint (is it between M and N or between A and M or the mean of A,M,N?) positions specified. We will have to check but you should do so as well as independent on topography, your data are not correctly read.
from gimli.
Any reply to my last comment on the wrong data?
Note that we have released version v.1.4.6 supporting res2dinv topography information.
from gimli.
I've checked the code of the current version v1.4.6 with some other res2dinv files and the following procedure works well:
topo = data.additionalPoints() #
elec = pg.meshtools.tapeMeasureToCoordinates(topo, pg.x(data))
data.setSensorPositions(elec)
It assumes that the x coordinates in the data file are along the topography.
You can check the positions by
plt.plot(pg.x(topo), pg.y(topo), ".-", label="topo")
plt.plot(pg.x(elec), pg.y(elec), "+", markersize=4, label="electrodes")
plt.grid()
plt.legend()
from gimli.
In your case the electrodes start at -30m.
If you're sure that your format is correct and the import of Pole-Dipole data is wrong, please open a new issue.
from gimli.
Related Issues (20)
- Gmsh to pygimli
- Running inversion multiple times give different result HOT 11
- 1. How get j of specify nodes after forward? HOT 2
- Joint inversion module missing HOT 3
- bug-typo/Cm05.cols HOT 1
- The cellMarkers is different before and after the inversion process AND inversion mesh setting HOT 2
- This may be a corrupt mesh error HOT 7
- pyvista shows no result graph when I tried to reproduce the example '3D surface ERT inversion' HOT 2
- ERT: blanked out cells when adding new regions to the mesh HOT 4
- Cannot import name 'RVector3' form 'pygimli.core.core HOT 6
- how to fix import pygimli error libcholmod.so.3 on Mybinder HOT 5
- Plot Inversion Result from Another Software use Pygimli HOT 2
- fitReciprocalErrorModel IP data HOT 4
- Seeking Help with 3D Magnetic Inversion HOT 2
- Question about geometric factor for an ERT survey with submerged and terrestrial electrodes HOT 3
- ERTManager.invert() --> error: malloc(): unsorted double linked list corrupted HOT 3
- Failure to install on mac HOT 6
- Wrong coordinates in tutorial notebook HOT 4
- pyGIMLi and NUM_THREADS HOT 7
- 3d geometry with topography and fixed thin layer HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gimli.