Skip to content
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

Can't find where the data weighting matrix (Wd) is implemented #795

Open
leonli60639404 opened this issue Dec 6, 2024 · 5 comments
Open

Comments

@leonli60639404
Copy link

Problem description

I am trying to modify the data weighting matrix to see how that affects the inversion output, but I could not find where the data weighting matrix (Wd) is implemented in the code? Thanks.

Your environment

Please provide the output of print(pygimli.Report()) here. If that does not
work, please give provide some additional information on your:

Operating system: e.g. Windows, Linux or Mac?
Python version: e.g. 3.9, 3.10, etc.?
pyGIMLi version: Output of print(pygimli.__version__)
Way of installation: e.g. Conda package, manual compilation from source, etc.

Steps to reproduce

Tell us how to reproduce this issue. Ideally, you could paste the code that produces the error:

import pygimli as pg
...

Expected behavior

Tell us what should happen or what you want to achieve.

Actual behavior

Tell us what happens instead and/or provide the output of your script.

Paste your script output here.

If possible, please add one or more labels to your issue, e.g. if you expect that your issue is rather a question than a problem with the code, please add the label "question".

@halbmy halbmy self-assigned this Dec 6, 2024
@halbmy
Copy link
Contributor

halbmy commented Dec 6, 2024

The data weighting matrix is created from the data errors as e.g. explained in
https://www.pygimli.org/_tutorials_auto/3_inversion/plot_5_Regularization.html
so to change the weighting you will have to change the error.

@leonli60639404
Copy link
Author

Thank you for the response. I would like to change the actual matrix into a banded matrix to investigate the effect of correlated vs uncorrelated data noise on the inverted model. Is there a way to physically implement the actual Wd matrix? Thanks!

@halbmy
Copy link
Contributor

halbmy commented Dec 9, 2024

A very good question, indeed! I am afraid, this is currently not supported, but I'll put it in the list for the redesign of the inversion that the data covariance can also be specified as alternative to the error vector.

@leonli60639404
Copy link
Author

Thank you. But for simplicity, could I simply read in a different matrix to overwrite the default Wd matrix ... ? Just a thought ...

@halbmy
Copy link
Contributor

halbmy commented Dec 10, 2024

No, in the inverse solver it is currently implemented as a simple vector. But I will make it flexible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants