网站营销单页怎么设计方案,湖南手机响应式网站建设企业,站长网站查询工具,电商平台推广工具有哪些文章目录 数据集代码演示1. SEG盐真实数据2. SEG盐速度模型3. SEG盐模拟地震数据4. SEG盐模拟速度模型5. openfwi地震数据6. openfwi速度模型 数据集代码演示
1. SEG盐真实数据
# 绘制SEG盐层数据的地震图像
def pain_seg_seismic_data(para_seismic_data):Plotting seismic … 文章目录 数据集代码演示1. SEG盐真实数据2. SEG盐速度模型3. SEG盐模拟地震数据4. SEG盐模拟速度模型5. openfwi地震数据6. openfwi速度模型 数据集代码演示
1. SEG盐真实数据
# 绘制SEG盐层数据的地震图像
def pain_seg_seismic_data(para_seismic_data):Plotting seismic data images of SEG salt datasets:param para_seismic_data: Seismic data (400 x 301) (numpy):param is_colorbar: Whether to add a color bar (1 means add, 0 is the default, means dont add)fig, ax plt.subplots(figsize(6.2, 8), dpi120)im ax.imshow(para_seismic_data, extent[0, 300, 400, 0], cmapplt.cm.seismic, vmin-0.4, vmax0.44)ax.set_xlabel(Position (km), font21)ax.set_ylabel(Time (s), font21)ax.set_xticks(np.linspace(0, 300, 5))ax.set_yticks(np.linspace(0, 400, 5))ax.set_xticklabels(labels[0, 0.75, 1.5, 2.25, 3.0], size21)ax.set_yticklabels(labels[0.0, 0.50, 1.00, 1.50, 2.00], size21)plt.rcParams[font.size] 14 # Set colorbar font sizedivider make_axes_locatable(ax)cax divider.append_axes(top, size3%, pad0.32)plt.colorbar(im, axax, caxcax, orientationhorizontal)plt.subplots_adjust(bottom0.08, top0.98, left0.11, right0.99)plt.show()2. SEG盐速度模型
def pain_seg_velocity_model(para_velocity_model)::param para_velocity_model: Velocity model (200 x 301) (numpy):param min_velocity: Upper limit of velocity in the velocity model:param max_velocity: Lower limit of velocity in the velocity model:return:fig, ax plt.subplots(figsize(5.8, 4.3), dpi150)im ax.imshow(para_velocity_model, extent[0, 3, 2, 0])ax.set_xlabel(Position (km), font18)ax.set_ylabel(Depth (km), font18)ax.tick_params(labelsize14)plt.rcParams[font.size] 14 # Set colorbar font sizedivider make_axes_locatable(ax)cax divider.append_axes(top, size3%, pad0.32)plt.colorbar(im, axax, caxcax, orientationhorizontal)plt.subplots_adjust(bottom0.12, top0.95, left0.11, right0.99)plt.show()3. SEG盐模拟地震数据
def pain_seg_seismic_data(para_seismic_data):Plotting seismic data images of SEG salt datasets:param para_seismic_data: Seismic data (400 x 301) (numpy):param is_colorbar: Whether to add a color bar (1 means add, 0 is the default, means dont add)fig, ax plt.subplots(figsize(6.2, 8), dpi120)im ax.imshow(para_seismic_data, extent[0, 300, 400, 0], cmapplt.cm.seismic, vmin-0.4, vmax0.44)ax.set_xlabel(Position (km), font21)ax.set_ylabel(Time (s), font21)ax.set_xticks(np.linspace(0, 300, 5))ax.set_yticks(np.linspace(0, 400, 5))ax.set_xticklabels(labels[0, 0.75, 1.5, 2.25, 3.0], size21)ax.set_yticklabels(labels[0.0, 0.50, 1.00, 1.50, 2.00], size21)plt.rcParams[font.size] 14 # Set colorbar font sizedivider make_axes_locatable(ax)cax divider.append_axes(top, size3%, pad0.32)plt.colorbar(im, axax, caxcax, orientationhorizontal)plt.subplots_adjust(bottom0.08, top0.98, left0.11, right0.99)plt.show()4. SEG盐模拟速度模型
def pain_seg_velocity_model(para_velocity_model)::param para_velocity_model: Velocity model (200 x 301) (numpy):param min_velocity: Upper limit of velocity in the velocity model:param max_velocity: Lower limit of velocity in the velocity model:return:fig, ax plt.subplots(figsize(5.8, 4.3), dpi150)im ax.imshow(para_velocity_model, extent[0, 3, 2, 0])ax.set_xlabel(Position (km), font18)ax.set_ylabel(Depth (km), font18)ax.tick_params(labelsize14)plt.rcParams[font.size] 14 # Set colorbar font sizedivider make_axes_locatable(ax)cax divider.append_axes(top, size3%, pad0.32)plt.colorbar(im, axax, caxcax, orientationhorizontal)plt.subplots_adjust(bottom0.12, top0.95, left0.11, right0.99)plt.show()5. openfwi地震数据
def pain_openfwi_seismic_data(para_seismic_data):Plotting seismic data images of openfwi dataset:param para_seismic_data: Seismic data (1000 x 70) (numpy)data cv2.resize(para_seismic_data, dsize(400, 301), interpolationcv2.INTER_CUBIC)fig, ax plt.subplots(figsize(6.1, 8), dpi120)im ax.imshow(data, extent[0, 0.7, 1.0, 0], cmapplt.cm.seismic, vmin-18, vmax19)ax.set_xlabel(Position (km), font21)ax.set_ylabel(Time (s), font21)ax.set_xticks(np.linspace(0, 0.7, 5))ax.set_yticks(np.linspace(0, 1.0, 5))ax.set_xticklabels(labels[0, 0.17, 0.35, 0.52, 0.7], size21)ax.set_yticklabels(labels[0, 0.25, 0.5, 0.75, 1.0], size21)plt.rcParams[font.size] 14 # Set colorbar font sizedivider make_axes_locatable(ax)cax divider.append_axes(top, size3%, pad0.3)plt.colorbar(im, axax, caxcax, orientationhorizontal)plt.subplots_adjust(bottom0.08, top0.98, left0.11, right0.99)plt.show()6. openfwi速度模型
def pain_openfwi_velocity_model(para_velocity_model):Plotting seismic data images of openfwi dataset:param para_velocity_model: Velocity model (70 x 70) (numpy):param min_velocity: Upper limit of velocity in the velocity model:param max_velocity: Lower limit of velocity in the velocity model:param is_colorbar: Whether to add a color bar (1 means add, 0 is the default, means dont add):return:fig, ax plt.subplots(figsize(5.8, 6), dpi150)im ax.imshow(para_velocity_model, extent[0, 0.7, 0.7, 0])ax.set_xlabel(Position (km), font18)ax.set_ylabel(Depth (km), font18)ax.set_xticks(np.linspace(0, 0.7, 8))ax.set_yticks(np.linspace(0, 0.7, 8))ax.set_xticklabels(labels[0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7], size18)ax.set_yticklabels(labels[0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7], size18)plt.rcParams[font.size] 14 # Set colorbar font sizedivider make_axes_locatable(ax)cax divider.append_axes(top, size3%, pad0.35)plt.colorbar(im, axax, caxcax, orientationhorizontal)plt.subplots_adjust(bottom0.10, top0.95, left0.13, right0.95)plt.show()