基于python的三维射线追踪库-ttcrpy详解(2)
继续研究ttcrpy,利用ttcrpy实现二维射线追踪。
1、射线追踪效果
2、python代码
# -*- coding: utf-8 -*-
"""
Created on Wed Apr 27 15:37:28 2022
@author: 86159
"""
import ttcrpy.rgrid as rg
import numpy as np
import matplotlib.pyplot as plt
# 创建网格
x = np.arange(1,11.0)
z = np.arange(1,12.0)
# 创建速度模型
v = 2000*np.ones((x.size,z.size))
v1 = 4000*np.ones((2, 3))
# index = [2,3]
# v[5:7,5:8] = v1
v[5:7,5:8] = v1
fig,