Pasteup can generate PostScript files by batch processings. Major features can be specified through command line options, and all features can be controlled through the parameter (resource) file given from the command line argument.
Most important option is "--ps", which means generating a PostScript file to STDOUT. The simplest batch command to generate a PostScript file is,
$ pasteup --ps data.su > data.ps
This command generate a PostScript file "data.ps" from a seismic data
file "data.su". In this simplest example, offset range, time range,
reduction velocity, drawing style and so on... are not specified at all.
In this case, all the conditions are read from a file
"~/.pasteup/parameters".
Pasteup saves all the parameters in "~/.pasteup/parameters" when quit,
thus, the drawing conditions depend on the state when quitting the
pasteup last time.
To specify conditions explicitly, use command line options or
parameter (resource) files as the following.
$ pasteup --ps --xmin -30 --xmax 30 --tmin 0 --tmax 10 --rv 7.0 data.su > data.ps or $ pasteup --ps -f parameter.rc data.su > data.ps
Scale factor (amplitude gain) or offset range are usually dependent on data file, then you would like to determine these values from the data file "data.su". To read information from the data file, use --scale or --range options.
$ pasteup --ps --scale 20 --range 0 data.su > data.ps
Above example means full offset range (range=0), and the scale factor is determined by the 20% of maximum amplitude of all the drawing traces.
It is easy to generate PostScript files of record sections for many data
files by a batch job (using a shell script).
Note that Pasteup needs X-server during batch process. Pasteup almost
occupies the X-server during a batch job, therefore, you had better
provide X-server for the batch process of Pasteup when you process many
data files.
Parameters can be specified by command line options and resource files. Therefore, the precedence is important. The evaluation order is
This means, in short, command line options takes precedence over all other specification.
The following shell script is an example making PostScript files of all the SU files in the current directory.
To run the example script, you have to prepare a parameter file "default.rc". To make a parameter file, select save parameters as function in the console window.
#!/bin/sh for fn in *.su ; do # an output filename outfn=`basename $fn`.ps # making a PostScript file pasteup --ps --range 200 --rsize 10 --scale 20 -l $fn -f default.rc > $outfn done
In the above example,
Invoking X server is not a function of Pasteup but just a common knowledge of Unix/Linux users. But some pasteup users may not know the way to invoke plural X servers. Here I'm going to tell you to invoke plural X servers with a standard Linux machine.
From the ancient days, X window system can handle plural X servers at a time. The first X server is called :0, and the second is :1, and the third is .... When you type just "startx" command, it invoke the first X server :0. To invoke the second X server, type
startx -- :1
That's all. See manual of "startx" and "xinit" commands for details. You can invoke third and fourth X server easily (but X server uses a lot of memories, be careful).
If you are fortunately gnome user and use "gdm" (Gnome Display Manager), you can invoke another X session by "gdmflexiserver" command (usually, it is also contained in the system menu), instead of directly using startx command.
In either way, to change X server on your Linux box, type the following keys.
keys | X server |
---|---|
Ctrl+Alt+F7 | :0 (default) |
Ctrl+Alt+F8 | :1 |
Ctrl+Alt+F9 | :2 |
Now you can use plural X servers on your Linux box, and you can run bacth jobs of Pasteup comfortably.