该方法用于将指定的表面数据添加到Gempy数据对象中。
surfaces:str或List[str]。要添加的表面的名称。values:np.ndarray或List[np.ndarray]。要添加的每个表面的值(可能是多个)。import gempy as gp
import numpy as np
geo_model = gp.create_model('MyGeoModel')
# 添加新的表面数据
geo_model.surfaces.add_surfaces_values(surfaces='Sandstone',
values=np.array([0, 0.5, 1]))
# 添加多个表面数据
geo_model.surfaces.add_surfaces_values(surfaces=['Sandstone', 'Shale'],
values=[np.array([0, 0.5, 1]),
np.array([0, 0.25, 1])])
values参数必须是np.ndarray类型的列表,其中每个数组的长度必须与surfaces列表中的元素数量相对应。