该函数可以设置Gempy项目的剖面网格,用于剖面建模。
set_section_grid(self, extent, resolution, air_layer_top, air_layer_bot, **kwargs)
import gempy as gp
# 创建一个Gempy项目
project = gp.create_project("example")
# 设置项目的地层顺序
layer_names = ["basement", "sandstone", "shale", "limestone"]
layer_heights = [0, 200, 500, 800]
gp.init_data(project, extent=[0, 10, 0, 10], resolution=[50, 50], layer_names=layer_names, layer_heights=layer_heights)
# 设置剖面网格
project.set_section_grid(extent=[-200, 1000, -200, 1000], resolution=50, air_layer_top=500, air_layer_bot=-300)