Comments (5)
- The matrix can be accessed (through the forward operator), printed (in your case a SparseMapMatrix) and shown by
C=mgr.fop.constraintMatrix()
print(C)
pg.show(C, markersize=1)
- By default, the reference model does not exist (or is zero) but can be set by using
invert(startModel=model, isReference=True)
- By default, GCLS is used but can be switched to LSQR by using the
LSQRInversion
framework. The solver yields the same model update but opens some new possibilities, e.g. to add parameter constraints, and will be the default in the future.
from gimli.
I tried to obtain constraint matrix but its giving me following error
AttributeError: 'TravelTimeDijkstraModelling' object has no attribute 'constraintMatrix'
Similarly for LSQRInversion
I did
from pygimli.frameworks.lsqrinversion import LSQRInversion
pg.info("Traveltime Inversion")
velInv = mgr.LSQRInversion(data, mesh=mesh, lam=20, useGradient=1, zWeight=15.0, secNodes=5, absoluteError=error,
blockyModel = True, robustData = True,
lambdaFactor=1,
cType=1,
startModel=1/2200, isReference=True,
#verbose=True
)
mgr.inv.echoStatus()
print(mgr.inv.chi2History )
plt.plot(mgr.inv.chi2History)
from gimli.
Sorry, I made a mistake, it is fop.constraints()
but constraintMatrix
is the better name, so we will create an alias for it.
from gimli.
Thanks,
Does x
and y-axis
of constraint matrix shows the velocity values?
Other than that when I run inversion it prompt following error because there is no error column in data. Can I specify error in percent while doing inversion. As default it is 3%, I did define absolute error absoluteError=error
ERROR - <class 'pygimli.physics.traveltime.TravelTimeManager.TravelTimeManager'>.checkError(C:\Users\376189\Documents\pyGimli\pygimli\gimli\pygimli\physics\traveltime\TravelTimeManager.py:97)
Is this the correct way of doing that? Can we specify both error and absolute error?
data['err'] = mgr.estimateError(data['t'], errLevel=0.03, absError=1e-3)
from gimli.
Please read some notes about inverse theory to learn about the constraint matrix. The model vector contains the (log-transformed) velocity vector and the constraint matrix is a smoothness operator.
Yes, the line you specified for the error estimation is correct. Instead, you can pass either relativeError
or absoluteError
to the inversion.
from gimli.
Related Issues (20)
- 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 4
- 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 9
- Plot Inversion Result from Another Software use Pygimli HOT 2
- fitReciprocalErrorModel IP data HOT 7
- Seeking Help with 3D Magnetic Inversion HOT 2
- Question about geometric factor for an ERT survey with submerged and terrestrial electrodes HOT 4
- ERTManager.invert() --> error: malloc(): unsorted double linked list corrupted HOT 4
- 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
- pg.interpolate() giving error with regionwise regularization HOT 8
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.