GPLIB++
Sdisp96Model.h
Go to the documentation of this file.
1 #ifndef SDISP96MODEL_H_
2 #define SDISP96MODEL_H_
3 
4 #include "SurfaceWaveModel.h"
5 
6 namespace gplib
7  {
8  /** \addtogroup seistools Seismic data analysis and modeling */
9  /* @{ */
10 
11  //! This class can write files specific for the synthetic surface wave codes that are part of the computer programs in seismology
13  {
14  private:
15  bool isSpherical;
16  public:
17  //! Do we want a spherical model or a flat earth model
18  void SetSpherical(const bool s)
19  {
20  isSpherical = s;
21  }
22  //! Read the model from a file
23  virtual void ReadModel(const std::string &filename);
24  //! Write them model to a file so that the forward codes can use it
25  virtual void WriteModel(const std::string &filename) const;
26  //! Write out a script file that when run creates synthetic data with the name filename+'.asc'
27  virtual void WriteRunFile(const std::string &filename, const std::vector<
28  double> periods) const;
29  Sdisp96Model& operator=(const Sdisp96Model& source);
30  Sdisp96Model(const Sdisp96Model &Old);
32  SurfaceWaveModel(Old)
33  {
34  }
35  ;
36  Sdisp96Model();
37  virtual ~Sdisp96Model();
38  };
39  /* @} */
40  }
41 #endif /*SDISP96MODEL_H_*/
void SetSpherical(const bool s)
Do we want a spherical model or a flat earth model.
Definition: Sdisp96Model.h:18
A class to store 1D model for calculation of synthetic surface wave data.
This class can write files specific for the synthetic surface wave codes that are part of the compute...
Definition: Sdisp96Model.h:12
virtual void WriteModel(const std::string &filename) const
Write them model to a file so that the forward codes can use it.
virtual void WriteRunFile(const std::string &filename, const std::vector< double > periods) const
Write out a script file that when run creates synthetic data with the name filename+'.asc'.
Sdisp96Model & operator=(const Sdisp96Model &source)
virtual void ReadModel(const std::string &filename)
Read the model from a file.
Sdisp96Model(const SurfaceWaveModel &Old)
Definition: Sdisp96Model.h:31