该函数用于自定义网格,即用户可以根据需要创建自己的网格。
geo_model = GemPy.GeoModel(
extent=[0, 1000, 0, 1000, 0, 1000],
resolution=[50, 50, 50],
)
xyz = np.random.rand(10, 3) * [1000, 1000, 1000]
grid_csv = pd.DataFrame(
{"lith": np.random.randint(0, 2, 10)}
)
geo_model.create_custom_grid(
extent=[0, 1000, 0, 1000, 0, 1000],
resolution=[50, 50, 50],
origin=[0, 0, 0],
path_xyz='path_to_xyz_file.csv',
path_grid='path_to_grid_file.csv',
dtype='int8'
)
https://www.gempy.org/