xmcor.c
来自「seismic software,very useful」· C语言 代码 · 共 23 行
C
23 行
#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 + =
减小字号Ctrl + -
显示快捷键?