scons与Madagascar!

(一) scons 使用参考链接:
  1. https://blog.csdn.net/chuanzhilong/article/details/53841230
  2. 官方User Guide :https://www.scons.org/doc/0.96/HTML/scons-user/x325.html
  3. IBM 给出的简单介绍:https://www.ibm.com/developerworks/cn/linux/l-cn-scons/
  4. CSDN上面给出的一些好的博文:https://blog.csdn.net/flyingcys/article/details/61196557
(二) madagascar 与scons 相关链接
  1. madagascar 官方scons使用说明:http://www.ahay.org/wiki/SCons
  2. 相关博客:https://www.jianshu.com/p/67ae80b538c8

一些常用的命令

  1. 在命令好输入scons,就是执行所在目录下的SConstruct文件!
  2. scons -c 清理目标文件
  3. scons -Q:只显示编译信息,去处多余的打印信息
对于madagascar而言,还有如下常用命令
  1. scons view 在屏幕上显示结果
  2. scons lock
  3. scons test

四个基本函数+end()

  • Fetch
  • Flow
  • Plot
  • Result
  • end
1. Fetch

格式: Fetch(<file[s]>,,[options])

Fetch('KAHU-3D-PR3177-FM.3D.Final_Migration.sgy',
	  dir='newzealand/Taranaiki_Basin/KAHU-3D',   // 
	  server='http://s3.amazonaws.com',
	  top='open.source.geoscience/open_data',
	  usedatapath=1)
2. Flow

通过运行shell 中指定的命令来生成目标的一个函数。
格式:Flow(<target[s]>,<source[s]>,,[options])
其中的options 主要有

stdout
stdin
rsfflow
suffix
prefix
spilt

3. Plot

用来生成一个graphic file (vplot file),但是如果没有指定源文件的的话,那么默认生成的.vpl文件和原文件名字相同!
格式:Plot(,[<source[s]>],,[options])

4. Result

格式:Result(,[<source[s]>],,[options])
把输出的图形文件放到一个单独的文件夹中(默认为./Fig)

5. end()

放在文件的末尾,并且不需要任何参数;它提供了上面提到的scons view; scons lock 等四个功能,如下
官方的解释是:

  • scons view: displays the resuts on the screen.
  • scons print: sends the results to the printer (specified with PSPRINTER environmental variable).
  • scons lock: copies the results to a location inside the DATAPATH tree.
  • scons test: compares the previously “locked” results with the current results and aborts with an error in case of mismatch.

与Seismic Unix 的结合

可以使用模块
rsf.suproj
参考:book/rsf/su 中有更多的例子,

  • 0
    点赞
  • 9
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值