You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Exploring some tools for log analysis in the future and came across Welly. Looks amazing! Trying out some of the base features and I cannot get it to display a multiple track plot (which looks like the easiest thing to do!). Simple enough code to start with:
import welly
from welly import Well
import matplotlib.pyplot as plt
Hi there,
Exploring some tools for log analysis in the future and came across Welly. Looks amazing! Trying out some of the base features and I cannot get it to display a multiple track plot (which looks like the easiest thing to do!). Simple enough code to start with:
import welly
from welly import Well
import matplotlib.pyplot as plt
print(welly.version)
well = Well.from_las('c:/temp/las/demo.las')
header = well.header
location = well.location
latitude = well.location.latitude
longitude = well.location.longitude
curve_names = well._get_curve_mnemonics()
print (curve_names)
print (latitude)
print (longitude)
That works fine, and yields me a version (0.5.2) and the curves available in the file, as well as lat and long, so definitely connected ok.
0.5.2
['DTCO', 'DTRP', 'DTSM', 'DTTP', 'GR', 'TNPH', 'A16H', 'A16L', 'A22H', 'A22L', 'A28H', 'A28L', 'A34H', 'A34L', 'A40H', 'A40L', 'DRHB', 'DRHL', 'DRHO', 'DRHR', 'DRHU', 'HORD', 'P16H', 'P16L', 'P22H', 'P22L', 'P28H', 'P28L', 'P34H', 'P34L', 'P40H', 'P40L', 'PEB', 'PEF', 'PEL', 'PER', 'PEU', 'RHOB', 'ROBB', 'ROBL', 'ROBR', 'ROBU', 'VERD']
58 16 3.174 N
01 14 8.927 E
So far so good. If I try to plot a single track, that works well too:
gr=well.data['GR']
gr.plot()
plt.show()
Yields
It is when I try to do the multi track plot things fail.
datatoplot = ['MD', 'GR', 'HORD', 'RHOB', ['ROBB', 'ROBU'], 'MD']
well.plot(tracks=datatoplot)
plt.show()
yields nothing, even the simpler:
well.plot()
plt.show()
does nothing.
This is so simple, I am sure I am doing something very dumb, but I cannot see it. Any thoughts?
The text was updated successfully, but these errors were encountered: