
    STK : Seismic ToolKit with GTK+
    Copyright (C) 2002  Dominique Reymond

    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation; either version 2 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program; if not, write to the Free Software
    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA

This General Public License does not permit incorporating your program into
proprietary programs.  If your program is a subroutine library, you may
consider it more useful to permit linking proprietary applications with the
library.  If this is what you want to do, use the GNU Library General
Public License instead of this License.

send feed back and bugs to: reymond.d@labogeo.pf
/////////////////////////////////////////////////////////////////
to extract the archive:

tar xvfz stk0_21.tgz

to compile type the both commands:

./configure
make

copy the executable where you want
or type make install (as root): it will install the exec. in /usr/local/bin

But you can also install where you want: in your home directory for example.
(Usually the executables are installed in /usr/local/bin, but do it yourself).

# VERY IMPORTANT REMARK:
 In case of multi-users to STK program, it is recommanded that each user create
 its own environment variables in the .profile of each account
 so that there will not be interferences between users in the log_files and tmp_files
 pointed by STK_TMP, and STK_LOG environment variables
 
only this environnment variables are important:
export LC_NUMERIC=en_US.utf-8
export STK_TMP=/tmp/STK_tmp
export STK_LOG=~/STK_Log
export STK_BITE_ORDER=TO_SWAP

 An other possibility is to execute a shell like run_STK given in the package in each account, exporting
 the env. variables of STK

************************************************************************
If you experience difficulties to compile, here are some suggestions:
1) check the path to gtk.h, gdk.h and glib.h; it is defined in configure.in, in the CFLAGS paragraph
2) type the following, in this order:
rm aclocal.m4
aclocal
autoconf
automake --add-missing
automake
./configure
make
make install (as root: it will copy STK executable in /usr/local/bin )
************************************************************************

consult also the documentation files (install.html)


///////////////////////////////////////////////////////////////////
READ ABSOLUTELY THIS:
^^^^^^^^^^^^^^^^^^^^^

to select multiple files: you must use wildcar * in the selection box
example:
to select the 3 componants files of a given station:
if the file  names are the folowing:
2002_035_12_02_LHZ_ADK_SAC.ASC
2002_035_12_02_LHN_ADK_SAC.ASC
2002_035_12_02_LHE_ADK_SAC.ASC

replace the comp. name by:
2002_035_12_02_LH*_ADK_SAC.ASC

or type:
*ADK*

or:
2002.*ADK*.ASC

etc.

//////////////////////////////////////

to export of environment variables needed by the program,
adapt and run the exec. gst with the script "run_gst"
replace :
/home/domi/Prog/Gtk+/GST.0.10/STK

by the path to the executable "STK"
for example:

/usr/local/bin/STK

or

/home/toto/bin/STK

etc...



//////////////////////////////////////////
with the new version of gtk2.x that uses pango and pkg-config,
there is no problem of path and configuration
as in the old versions.

///////////////////////////////////////

the optimization option -O or -O2  of the compiler (gcc) 
produce a fault-segmentation in the FFT function
for huge array (more than 132 000 pts):
**** remove the option -O in the Makefile if you experience this **********
///////////////////////////////////////////////////////

