Skip to content

lrlucena/SeismicScala

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SeismicScala

Using Scala as a script language for Seismic Unix

#!/bin/sh
exec scala $0 $@
!#

import seismicscala.Command._

$.suplane.suxwigb.&

Is equivalent to

#!/bin/sh

suplane | suxwigb &
#!/bin/sh
exec scala $0 $@
!#

import seismicscala.Command._

($ > "junk.su").suplane.!
($ < "junk.su").suxwigb(title = "Suplane test pattern", label1 = "time (s)", label2 ="trace number").&

Is equivalent to

#!/bin/sh

suplane > junk.su

suxwigb < "junk.su" title='Suplane test pattern' label1='time (s)' label2='trace number' &
#!/bin/sh
exec scala $0 $@
!#

import seismicscala.Command._

($ > "junk.su").suplane.!

val p = $ < "junk.su"
params = Map("title" -> "Suplane test pattern", "label1" -> "time (s)", "label2" -> "trace number")

p.suxwigb(params).&
(p > "suplane.eps").supswigb(params).!

Is equivalent to

#!/bin/sh

suplane > junk.su

suxwigb < 'junk.su' title='Suplane test pattern' label1='time (s)' label2='trace number' &
supswigb < 'junk.su' > 'suplane.eps' title='Suplane test pattern' label1='time (s)' label2='trace number'

Releases

No releases published

Packages

No packages published

Languages