![]() |
![]() |
![]() |
![]() | Madagascar tutorial | ![]() |
![]() |
bash$ sfdoc -k "keyword"Madagascar command typed without any argument gives the documentation of that command. For example, try typing the following in the command line
bash$ sfspikeMadagascar programs can be piped and executed from the command line, for example:
bash$ sfspike n1=1000 k1=300 | sfbandpass fhi=2 phase=1 | \ sfwiggle pclip=100 title="\s200 Welcome to \c2 RSF" | sfpencreates a minimum phase wavelet.
To convert the command line arguments into a SCons script, first create a file named "SConstruct" using your favorite text editor. Start it with a line
from rsf.proj import *and end it with
End()The two lines above are essential components of a SCons script. It can be executed by running
bash$ sconsunder the current directory, but nothing would happen since we have not included any commands. To convert the command line arguments we just used into the SCons script, add the following two lines before the End() argument:
Flow('min',None,'spike n1=1000 k1=300 | bandpass fhi=2 phase=1 ') Result('min','min','wiggle pclip=100 title="\s200 Welcome to \c2 RSF" ')The result can be viewed by running
bash$ scons view
![]() |
![]() |
![]() |
![]() | Madagascar tutorial | ![]() |
![]() |