Closed ferryatm closed 2 months ago
Please help me just this once
Here's some code. Most things are, however, about reading and filtering data using numpy and pandas.
import pygimli as pg
from pygimli.physics import ves
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
xls = pd.read_excel("Datasheet.TA.xlsx", skiprows=9)
print(xls)
xls = xls.dropna(subset="Rho (Ohm.m)")
ab2 = xls["AB/2 (m)"].array
mn2 = xls["MN/2 (m)"].array
rhoa = xls["Rho (Ohm.m)"].array
mgr = ves.VESManager()
mgr.fop.setDataSpace(ab2=ab2, mn2=mn2)
mgr.invert(rhoa, err=np.ones_like(rhoa)*0.05, verbose=True)
fig, ax = plt.subplots()
ax.loglog(rhoa, ab2, "x", label="data")
ax.loglog(mgr.inv.response, ab2, "+-", label="response")
ax.grid()
ax.legend()
ax.invert_yaxis()
fig, ax = plt.subplots()
pg.viewer.mpl.drawModel1D(ax, model=model)
Thank you very much. May I ask for one more assistance? Can this VES data be used for 2D modeling? If so, please kindly provide the code. I truly apologize if this causes any inconvenience.
please I have an error regarding this, same with np.bool, np.long and others, it's like an outdated version of numpy, is there any solution?
This is related to the code you provided
This seems to be an outdated numpy version, which one do you have?
Can this VES data be used for 2D modeling?
Generally, of course. However, it makes only sense for a couple of (overlapping) soundings. You would have to collect the data in a DataContainerERT
. In case of separated soundings, an LCI inversion is more appropriate.
Numpy version 1.24.4
This is a quite modern version. It seems like you are using an outdated pyGIMLi version (which one?) that is no more compatible with modern numpy. The problem was solved with v1.3.1. Try update pyGIMLi (or downgrade numpy).
Thank you in advance, I might give it a try first, but please don't close it temporarily because I really need guidance and assistance as a newcomer
Dari: Thomas Günther @.> Dikirim: Jumat, 15 Maret 2024 15.54 Kepada: gimli-org/gimli @.> Cc: FERRY ATH THAARIQ MUDHOFIR @.>; Author @.> Subjek: Re: [gimli-org/gimli] Please help me, I'm new to this. Provide me with the code for Schlumberger VES inversion with field data (Issue #673)
This is a quite modern version. It seems like you are using an outdated pyGIMLi version (which one?) that is no more compatible with modern numpy. The problem was solved with v1.3.1. Try update pyGIMLi (or downgrade numpy).
— Reply to this email directly, view it on GitHubhttps://github.com/gimli-org/gimli/issues/673#issuecomment-1999199150, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AYMQCYRRCQJK2XZG6SNW2MLYYKZNXAVCNFSM6AAAAABEWV75MWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSOJZGE4TSMJVGA. You are receiving this because you authored the thread.Message ID: @.***>
As the original issue had been solved and the last problems are not related to the title and are probably due to an outdated pyGIMLi version, I am closing the issue. In case of any problem with a modern version, please raise a new issue.
Datasheet TA.xlsx
Discussed in https://github.com/gimli-org/gimli/discussions/672