1. 首先安装python gempy 包
pip install gempy
python 版本 3.10 这个很重要,版本不同可能会报错
2. gdal 可能会报错, 一下地址根据python版本下载,然后移入到python解释器环境中, Script文件中,然后cmd ,pip install 文件名安装即可
Releases · cgohlke/geospatial-wheels · GitHub
3. 代码如下
import gempy as gp
import gemgis as gg
import pandas as pd
import matplotlib.pyplot as plt
import pyvista as pv
pd.options.display.precision = 2
import subprocess
data_path = './file'
geo_data = gp.create_data('horizontal', extent=[0, 1000, 0, 1000, -100, 200], resolution=[50, 50, 50],path_o=data_path + "/fooil.csv",path_i=data_path +