📄 xmcor.c
字号:
#include "su.h"float xmcor(long sx, long gx, short scalco) {/* input: sx ---- x coordinate of source gx ---- x coordinate of geophone scalco ---- scale factor (in segy trace) for sx and gx (+- 10, 100, 1000, 10000) return: xmcor ---- x coordinate of midpoint author: Zhiming Li 7/92*/ float mx; mx = (sx+gx)/2.; if(scalco>1) { mx = mx * scalco; } else if(scalco<0) { mx = mx / (-scalco); } return mx;}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -