# changelog 

ver 0.59 Fev 16 2008
free_tab() function has been addded in dialog_sinle_chan.c, to avoid crash on non allocated memory of tab_file[]
Major bug corrected in get_path() function for WIN32 application 
(separator can be either '/' or '\').
Free_mem() called after closing the ALL_Channels window (in All_fct() function) ) for recoveringthe allocated memory


ver 0.58 Fev 10 2008
This release gives a portable code for the WIN32 application.

ver 0.57 Dec 07 2007
selection of multiple files is now enable with mouse delection (code from Petr Vyslouzil);
the selection using wild chars (*) in the dialog text box remains also possible.

ver 0.56 Nov 24 2997
Major bugs corrected with alloc() and memcpy() functions for 64 bits machines 
(without influence or problems on 32 bits ones) .

ver 0.55 Nov 17 2007
the new widdet  gtk_file_chooser_dialog_new replaces the old one (GtkFileSelection is deprecated)
*MM_MAG version 1.10
* major bug corrected, when surface waves arrivals are out of the selected windows.

ver 0.54 Oct 30 2007
* Since GTK_2.12 the widget GtkFileSelection is deprecated; consequently it is not possible
 to compile the project STK, with the currents options of compilation.
The file configure.in has been modified to accept deprecated functions: just remove the
 3 following options: GDK_DISABLE_DEPRECATED,GTK_DISABLE_DEPRECATED and G_DISABLE_DEPRECATED.
 * A median filter has been added,and replaces the anti_BIP filter; this kind of filter 
is principally used to.remove skikes from signals.

ver 0.53 Oct 16 2007
* In Fourier Series menu: the choice of the fundamental frequency F0, is proposed as the inverse 
of the window duration), but not imposed; thus operator can choose F0, in fucntion of 
'a priori' informations on the frequency content.
 

ver 0.52 Sep 23 2007
* Documentation has changed with all download made from sourceforge.net
* Computation of Fourier Series was added in Fourier menu. 
Estimated waveform is plotted from the Fourier series; Coefficients of Fourier and modulus of spectrum, are written in text files in the directory pointed by STK_LOG.

ver 0.51 Aug 30 2007
* in STK : a very small bugg is corrected, in function CallBackFile_Selection_Ascii(), that was not 
 storing the path to the selected directory of signal in SAC_ASCII 
* STK_0.51_win32.exe (for Windows) is compiled with optimized code (-O2 option) for acceleration of code
* in Mwp : test-null_channel() function was added to avoid process of signal with null values

ver 0.50 July 6, 2007
* major bug corrected in function CallBackFile_Selection_Bin, if the environment variable
 STK_SAC_BIN_PATH is not defined,the char * Sig_path variable points to NULL.
 It makes crash of STK on SUN machine (strangely not on PC Linux machine).
 
ver 0.49 June 04 2007 
* Mwp :  a new utility program; Mwp is the moment magnitude computed on P waves.
Mwp is very useful for early seismic warning on P wave. 

ver 0.48 May 11 2007
*PPOL_MTPA is a new utility program that was added to the project 
for computing polarization of P wave in the frequency domain. 
The spectral analysis tool is based on the MTPA method (Multi Proplate Taper Analysis). 
With this method, set polarization parameters are computed at each given frequency.

ver 0.47 07 march 07 2007 in PPOL. An error of compilation was produced by a missing line of comments.

ver 0.46 04 mar 2007
PPOL (P wave POLarisation) has been added, which was developed for a study on anisotropy
 of the earth mantle deduced from the anomaly of the azimuth of P wave.
 The principle is to automatically select a window centered on the P wave,
 and to compute the eigen direction of the linear vibration vector.
 The window containing the P wave is calculated from the origin time and coordinates
 of the hypocenter using the IASPEI time tables.


ver 0.45 21 sept 2006
* new version of MM_mag in Utilities program: version 1.09
* MM_mag accepts 7 arguments: dd/mm/yyyy hh:mm:ss lat lon depth
  if these 7args are input, they are taken into account,
  else all coordinates are read in the configuration file MM_mag_xxx.ini 
* tests reinforced for Rayleigh and Love out the time frame of selected signal
* Plots of all the results are performed, using GMT with a single script: gmt_all_plot.bash
  it plots in postscipt files the following results:
  MM_R_all_res_res.txt
  MM_R_results.txt
  MM_R_vs_period.txt
  MM_R_vs_azim.txt
  MM_L_all_res_res.txt
  MM_L_results.txt
  MM_l_vs_period.txt
  MM_L_vs_azim.txt

ver 0.44 05 sept 2006
* the WIN32 version seems to be stable
* code is very much slower in WIN32, than UNIX
* code also does not support optimization 
* in UNIX version the FFT produce segmentation fault with optimization (-O) for large number    of points.
* compilation with libfonyx.lib (a native format for our Lab)
  this library will not be distributed as we are alone to use it
* the frequency in mHz are written in Mm_vs_period
* new version of MM_mag in Utilities programs: version 1.08
* minor bug: in MM_mag in Utilies: the file Mm_vs_period was opened and not closed
* code cleaned: 
	change g_malloc() to malloc() 
	changed f_free() to free() to avoid error with WINDOWS at runtime
	

ver 0.43 30 Aug 2006
* new version of MM_mag in Utilities programs: version 1.07
* major bug corrected in cal_mm.cpp with the selection of period
  which is function of focal depth
* A new file Mw_vs_period containing the average of Mw 
  at each period is computed.


ver 0.42 12 Aug 2006: 
* new version of MM_mag in Utilities programs: version 1.06
* major bug corrected list_dir_unix3 (basic.cpp )
* results for Love are presented like for Rayleigh
* seimic moment are in the last column (more convenient to plot
  them vs azimuth for example)

ver 0.41 13 jun 2006
 + compilation of whole project STK for Windows  (using {MinGW and mysis} ).
   except GMT_plot and SVDS in utilities programs.

ver 0.40 June 10 2006
 + compilation of an executable of MM_mag for Windows; also in the same way a win32 executable 
	is available for  AZI, SEED_RESP, SAC2WAVE and MECA in the Utilities Programs.
	Compilation was made using {MinGW and mysis}.


ver 0.39 May 26 2006
 + MAJOR BUG corrected in TIME-FREQUENCY ANALYSIS: the step in frequency was wrong, and so introduced randomly until 20-30% of bias in frequency estimation. This bug is probably inside the 10 last version of STK. DO NOT use time-frequency with version older than 0.39.

ver 0.38 May 25 2006
 + doc corrected in file Doc/Install.html
 + new version of Mm_mag 1.05 : extrema values of magnitudes are removed 
   in fonction of standard error criterion

ver 0.37 some Docs cleaned

ver 0.36 dec 21 2005
 + code cleaned in SEED_RESP Utility program
 + change in the computation of frequency Step df : it becomes a geometrical suite, instead of regular step between FMIN and FMAX;
  consequently the modulus do not need a large number of point for describing the entire spectrum (a small number of point 
  as 512 is enough (against at least 25000, with old method using the regular step)   
 

ver 0.35 dec 12 2005
 + major bug corrected in Utilies\MM_mag : in conversion from SAC_BIN to SAC_ASCII
 + new version of MM_mag 1.03


ver 0.34 nov 01 2005
 + time-frequency greatly improved with overlapped window
 + also numerical rounding errors on the frequency step were corrected  
 + bug corrected in prog. plot_time_freq.c in Utilies/GMT_plot

ver 0.33 oct 27 2005
 + major bug corrected in the COMPILATION of Polar/Spectra utility program
 + new version Polar_0.05 has been created

ver 0.32 oct 17 2005
 + code cleaned and minor bug corrected in MM_mag utility

ver 0.31 oct 10 2005
 + new utility program: MM_mag for computation of Mm, Mw, Mo

ver 0.30 27 aug 2005
 + New utility program for converting signal in SAC_ASCII files into audio files (*.wav)

ver 0.29 Aug 2005
  + code cleaned
  + mouse selection of the button activated only for zoom in all press_event(), release_event() funtions
  + in the goal of using the other buttons of mouse

ver 0.28 Aug 2005
  +Major bug corrected in grad_x2, if the signal length is equal exactly to 1 day (8640s)
  +export to ASCII added in Polar_3D menu
  +prostcript file showing polarisation, can be generated by the new program:
  	plot_3comp_and_polar.c (compilation ./compil in Utilities/GMT_plot )
  +example of GMT script added for plotting polarisation, in Utilities/GMT_plot (example_of_polar.bash)

ver 0.27 July 2005
  +MTPA method added in Utilies, for spectral analysis and polarizarion in the frequency domain
  +GMT scripts for plotting results of MTPA in postscript
  +GMT script for plotting transfert functions in SEED_RESPONSE utility
    
ver 0.26 May 2005
  + Minor bug corrected in instantaneous polarisation

ver 0.25 (apr. 2005)
  + minor bug in Utilities/plot_all_chan.c if the channel is not standard (ie N,Z,E), the min and max was not read
  + Minor bug in STK_Integrator_Fc : the gain was not correct for signal with high_sampling rates
  + the function STK_Integrator_1 is renamed to STK_Integrator_Fc
  + the unused function STK_Integre has been removed
  
ver 0.24 
* export to ascii menu for 
	current_channel plotted
	NZE channels
	ALL channels
	
* in Utilities/GMT_plot programms:
prostcript files can be generated by the new programms:
	+ plot_3comp.c
	+ plot_current_chan.c
	+ plot_all_chan.c
 that create bash_file for GMT (Generic Mapping Tool) software,
 which is itself able to create postscript files.

ver 0.23
* major bug corrected in seed_resp Utility to take into account type B response
  (must multiplicate pole and zeros by 2 PI)

ver 0.22
* add exponantial taper to time_frequency & spectra menu
* minor bug corrected for VH* channel (dt <= 10 s) 
  for time_frequency, polar_evolutive and instantaneous_polar menus 
  (minimum length of windows adapted to sampling period)

ver 0.21 jan_2004
*add instantaneous polarisation

ver 0.21 dec_2004
*export to ascii functions in main window
*export to ascii functions in time_frequency


ver 0.21 nov 04
* change the name of environment variables:
 TMP             becomes     -> STK_TMP
 LOG_FILE        "           -> STK_LOG
 BITE_ORDER      "           -> STK_BITE_ORDER
 SAC_ASCII_PATH  "           -> STK_SAC_ASCII_PATH
 SAC_BIN_PATH    "           -> STK_SAC_BIN_PATH

 
ver 0.20 sept 04
*in SVDS : possibilty to integrate signal or not before polarisation analysis
   one argument is added: INT or NO_INT
*in STK: in time-frequency function : the choice among 4 taper functions were added
  (Hanning, Hamming, Blackman or Hanning generalized (the default)
  also a possibility to smooth or the spectra
     

ver 0.19 jul 04
* major bug corrected in Save_As_ASCII function
 *bug corrected for the incidence in SVDS utility in function calc_angle_2D

ver 0.18 jun 14
* major bug fixed in CallBackFile_Selection_Bin and AfficheFichierBin functions :
 opening a BIN sac file was not possible

ver 0.17 jun 14
* the smooth spectra (log-log and lin-lin) are written in /tmp/SPE... or /tmp/PSD... files
* add the members hh,mm,ss,day,month in the Fourier structure

ver 0.16 jun 2004
*add FFT spectra menu with PSD menu (Power Spectral Density) 

ver 0.15 jan 2004:
*add more tick marks in grad_x [in graph.c]
*add  struct Compens for having fc_min and fc_max parameters
*add compensator_1 and _2 in main menu 

*use pango_layout instead of gtk_draw_text in function outgtext()
*no more deprecated  gdk_functions

change all the following fctions:
gtk_drawing_area_size              to   gtk_widget_set_size_request
gtk_menu_append                    to   gtk_menu_shell_append
gtk_menu_bar_append                to   gtk_menu_shell_append
gtk_signal_connect_object          to   g_signal_connect_swapped
gtk_object_get_data(GTK_OBJECT(),) to   g_object_get_data(G_OBJECT(),)
gtk_entry_new_with_max_length()    to   gtk_entry_new()

ver 0.14 dec 2003:
*must add the environment variable LC_NUMERIC,
to take into account the "." as decimal separatorinstead of ",":
 export LC_NUMERIC=en_US.utf-8

*installation of glib2.2
*pkg-config
*compilation with gtk+-2.2.4

 compilation with -D GDK_DISABLE_DEPRECATED
 change argument of gtk_object_set_data_full()
 change all functions gdk_colormap_alloc, gdk_pixmap_unref,gdk_gc_destroy,
 gdk_draw_pixmap, gdk_colormap_alloc ..etc
 to new functions :g_object_unref, ..etc.
 
 majority of gtk_signal_connect() to new prototypes with G_CALLBACK 

* gdk_font_load and gdk_draw_text must be replaced by pango functions:
 it is not done now and too complicated.

 
ver  0.13 dec 2003
new module polar_box_evol.c for evolutive polarization
added function trace_signal3 in graph.c for evolutive polarization


NOV 2003:
* Add polarization analysis in 2Dx2D in the menu
* in NZE_box.c and Polar_Box.c all the dialogbox use now local variables:
no more global variables pointing to widget window are used.
so there is no more need  of the gtk_object_get_data() function.


