/*************************************************************************** SIA - system for advanced seismic data analysis Copyright (c) 1995-2003, I. B. Morozov ****************************************************************************/ #ifndef MOD_TEMPL1E #define MOD_TEMPL1E #include "sia_module.C.h" #include "sia_fft.h" // needed for Fast Fourier Transforms /*-------------------------------------------------------------------- This template blocks the processing of this module until a complete trace ensembble is accumulated at its input. When the ensemble is complete, the Process Phase (schematically) prformes a double loop through the traces as if to calculate cross-correlations. --------------------------------------------------------------------*/ struct TEMPL1E : public SIA_MODULE { TEMPL1E(); HEADER_PARAM param1; // parameter obtained from the job or trace // These parameters usually correspond to those // listed in .mpar file. // Rename and add more as needed AHEADER out_header; // field used to output the result (pick) into trace // headers void read_params(); // read the parameters from the global list of job file double time_shift( TRACE *t1, TRACE *t2 ); // measure the time shift of t2 relative to t1 boolean proc( ENSEMBLE *t ); // process one ensemble CHARSTR module_name( boolean active ); // name for GUI int edit(); // edit phase boolean process(); // process phase }; #endif