将解决方案插值到规则网格上,并返回插值结果。
set_solution_to_regular_grid(grid: gempy.core.grid.Grid,
property_name: str,
regularization: Union[str, gempy.core.solution.Regularization],
rescale: bool = True,
**kwargs) -> Tuple[Any, np.ndarray]
grid
(gempy.core.grid.Grid
):需要插值到的规则网格对象。property_name
(str
):需要插值的属性名称,字符串类型。regularization
(Union[str, gempy.core.solution.Regularization]
):正则化的方法,可以是字符串类型,也可以是gempy.core.solution.Regularization
对象。rescale
(bool
, optional):是否对插值结果进行重新缩放。默认值为True。**kwargs
:传递给interpolator
的其他关键字参数。一个元组(Tuple
),包含两个元素:
Any
),可能是numpy数组(如果属性是格点属性)或者Kriging对象(如果属性是块属性)。np.ndarray
),插值结果的网格或者插值结果对应的网格(如果插值方法是Ordinary或者Universal Kriging)。如果需要对插值结果进行可视化,则可以使用这个网格。from gempy.core import Solution
from gempy.core.grid import RegularGrid
solution = Solution(...)
grid = RegularGrid(...)
prop = "lith"
regularization = "KL"
prop_interp, new_grid = solution.set_solution_to_regular_grid(grid, prop, regularization)