Environment

SEP Home

About SEP
People
Research
Courses
Software
TeX Software
SEPlib
Changes
SEPlibv6.0
Environment
Installing
Old Versions
SEPlib3d
SEPlib Overview
Internal Info


Environmental Variables
Compiling
Converting old code


SETTING UP THE SEP ENVIRONMENT

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.

Environmental Variables

  • 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.

    SEP Compiling rules

    To use these you must:

    To compile a program

    To compile a code:
    
      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
    
    
    

    Converting old SEPlib code

    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.


    © 2008 , Stanford Exploration Project
    Department of Geophysics
    Stanford University

    Modified: 02/18/08, 17:53:03 PST , by altheyab
    Page Maintainer: bob `AT' sep.stanford.edu