In [1]:
# These two lines are necessary only if gempy is not installed
import sys, os
sys.path.append("../")
# Importing gempy
import gempy as gp
# Embedding matplotlib figures into the notebooks
%matplotlib inline
# Aux imports
import numpy as np
In [2]:
geo_data = gp.read_pickle('BasicFault.pickle')
In [3]:
gp.plot_data(geo_data)
Out[3]:
In [6]:
gp.set_data_series(geo_data, {"fault":geo_data.formations[4],
"Rest":np.delete(geo_data.formations, 4)},
order_series = ["fault",
"Rest",
], verbose=0)
In [7]:
gp.get_raw_data(geo_data).head()
Out[7]:
In [8]:
interp_data = gp.InterpolatorInput(geo_data, u_grade=[3,3])
In [9]:
sol = gp.compute_model(interp_data)
In [12]:
gp.plot_section(geo_data, sol[0,:], 25, plot_data = True)
Out[12]:
In [11]:
gp.plot_section(geo_data, sol[2,:], 25)
Out[11]: