1 #ifndef SURFACEWAVEDATA_H_
2 #define SURFACEWAVEDATA_H_
15 trealdata phasevelocities;
20 return phasevelocities;
30 return phasevelocities;
41 void ReadFile(
const std::string &filename);
43 virtual void ReadAscii(
const std::string &filename);
47 virtual void WriteAscii(
const std::string &filename)
const;
const trealdata & GetPeriods() const
Read-only access to the vector of periods for the phase velocities.
const trealdata & GetPhaseVelocities() const
Read-only access to the vector of phase velocities.
void ReadSurf96(const std::string &filename)
read data as produced by the computer programs in seismology codes ascii
A class to read, write and store fundamental mode surface wave dispersion data.
SurfaceWaveData & operator=(const SurfaceWaveData &source)
trealdata & SetPeriods()
Read-write access to periods, the format might be changed in the future.
virtual void ReadAscii(const std::string &filename)
Read a file in general ascii format, i.e lines with period velocity each.
virtual ~SurfaceWaveData()
virtual void WriteAscii(const std::string &filename) const
Write the data in simple ascii format.
void ReadFile(const std::string &filename)
Read data from file, depending on the extension.
trealdata & SetPhaseVelocities()
Read-write access to phase velocities, the format might be changed in the future. ...