![]() | SEP Stanford Exploration Project | GP Department of Geophysics | SES School of Earth Sciences | Stanford Stanford University |
Page Maintainer: webmaster@sep.stanford.edu
Copyright © 2009 SEP.
Before running SEPlib do the following:
create ~/.datapath
SEPlib files are composed of ascii/binary pairs. The ascii portion describes the data (the size, the type, and the location of the binary). The binary portion is the actual data. The two are separated to allow processing to be done in a centralized location (a home directory for example) while the data is written where ever there is space. The datapath file tells SEPlib where to put binary data and should look something like this:
datapath=/scrka3/bob/;/scrka2/bob/ spur datapath=/scrka2/bob/ oas datapath=/scrsa1/bob/ vesuvio datapath=/SDA/bob/ santorin datapath=/scrsa4/bob/
By default SEPlib first checks the command line for datapath=, then the directory where the program is run for a .datapath
file, and finaly the home directory. The above .datapath
files tells SEPlib to put binary data by default in /scrka3/bob and if it runs out of space in /scrka2/bob
, but when on the computer “santorin” to put the data in /scrsa4/bob
.
setenv VPLOTSPOOLDIR /tmp
The next step is to tell SEPlib where to put temporary vplot files. It is best to put these in a location such as /tmp/
which is periodically cleaned.
setenv SEP_DOC_PATH docpath
If you move the SEP sources you can set this enviorenmental variable. If set self-doc will look in the sub-directiories of “docpath” for documentation.
setenv SEP my/sep/path/
The location of the SEP install (–prefix
which defaults to /usr/local/SEP
)
setenv PYTHONPATH $SEP/lib/python/
You need to set this variable to use Rm
and to access SEP's python modules Add the mandir
and the bindir
you specified to your MANPATH
and PATH
variables.
If you prefer you can use the HTML version of the documentation in docs/html
With the distribution comes a set of makerules customized to your system that are by default installed in the include directory.
include ${SEPINC}/SEP.top ... include ${SEPINC}/SEP.bottom
BINDIR = /my/bin/dir {if not set, current directory} SRCIDR = /my/src/dir {if not set, current directory} OBJDIR = /my/obj/dir {my object directory}
UCFLAGS
, UF77FLAGS
, UF90FLAGS
- additional flags needed to compile a C, F77, or F90 programUCLIBDIR
, UF77LIBDIR
, UF90LIBDIR
a list of directories where additional libraries can be foundUCLIBS
, UF77LIBS
, UF90LIBS
addition libaries to compile with Assuming that the main program is my_prog.o and you need the additional sub1, sub2, and sub3 compiled (and linked with the C linker)
${BINDIR}/my_prog.x: $(addprefix ${OBJDIR}/, sub1.o sub2.o sub3.o)
Note if your OBJDIR is the local directory you just need to list the object files, the add prefix portion is not necessary.
gmake objdir/code.o
where objdir is what you set OBJDIR to TO link
gmake bindir/myprog.x
where bindir is what you set BINDIR to Example Makefile:
include ${SEPINC}/SEP.top
include ${SEPINC}/SEP.bottom
From Joe:
Need to replace reed(infd, …)
with sreed(“in”, …)
.
Need to replace rite(outfd, …)
with srite(“out”, …)
.
Need to replace getpar
with getch
.
vp_filep(outstream)
;
to the start of any program that calls -lvplot
.
![]() | SEP Stanford Exploration Project | GP Department of Geophysics | SES School of Earth Sciences | Stanford Stanford University |
Page Maintainer: webmaster@sep.stanford.edu
Copyright © 2009 SEP.