zoukankan      html  css  js  c++  java
  • 在一个SConstruct文件中使用SU与Madagarscar命令 June

    同一段包含su与mada命令的代码两种实现方式(不同部分粗体标注了一下)

    方法1.

    from rsf.proj import *

    os.system(
    "suplane>plane.su")
    os.system(
    "segyhdrs<plane.su |segywrite tape=plane.segy")
    Flow(
    'plane tfile hfile bfile','plane.segy','segyread endian=1 tfile=${TARGETS[1]} hfile=${TARGETS[2]} bfile=${TARGETS[3]}')

    End()

    方法2.

    from rsf.proj import *
    import rsf.suproj
    suproject
    = rsf.suproj.SUProject()

    suproject.Flow(
    'plane.su',None,'suplane')
    suproject.Flow(
    'plane.segy','plane.su','segyhdrs |segywrite tape=$TARGET'
    )
    Flow(
    'plane tfile hfile bfile','plane.segy','segyread endian=1 tfile=${TARGETS[1]} hfile=${TARGETS[2]} bfile=${TARGETS[3]}')

    End()

  • 相关阅读:
    测试打印功能
    绘图
    图片验证码
    图片防盗
    图片水印
    surface 译
    ViewManager 译
    WindowId 译
    Display
    LayoutParams
  • 原文地址:https://www.cnblogs.com/zebra/p/2005671.html
Copyright © 2011-2022 走看看