GPLIB++
|
A class to read, write and store fundamental mode surface wave dispersion data. More...
#include <SurfaceWaveData.h>
Public Member Functions | |
const trealdata & | GetPhaseVelocities () const |
Read-only access to the vector of phase velocities. More... | |
const trealdata & | GetPeriods () const |
Read-only access to the vector of periods for the phase velocities. More... | |
trealdata & | SetPhaseVelocities () |
Read-write access to phase velocities, the format might be changed in the future. More... | |
trealdata & | SetPeriods () |
Read-write access to periods, the format might be changed in the future. More... | |
void | ReadFile (const std::string &filename) |
Read data from file, depending on the extension. More... | |
virtual void | ReadAscii (const std::string &filename) |
Read a file in general ascii format, i.e lines with period velocity each. More... | |
void | ReadSurf96 (const std::string &filename) |
read data as produced by the computer programs in seismology codes ascii More... | |
virtual void | WriteAscii (const std::string &filename) const |
Write the data in simple ascii format. More... | |
SurfaceWaveData & | operator= (const SurfaceWaveData &source) |
SurfaceWaveData (const SurfaceWaveData &Old) | |
SurfaceWaveData () | |
virtual | ~SurfaceWaveData () |
A class to read, write and store fundamental mode surface wave dispersion data.
Definition at line 11 of file SurfaceWaveData.h.
gplib::SurfaceWaveData::SurfaceWaveData | ( | const SurfaceWaveData & | Old | ) |
Definition at line 19 of file SurfaceWaveData.cpp.
gplib::SurfaceWaveData::SurfaceWaveData | ( | ) |
Definition at line 11 of file SurfaceWaveData.cpp.
|
virtual |
Definition at line 15 of file SurfaceWaveData.cpp.
|
inline |
Read-only access to the vector of periods for the phase velocities.
Definition at line 23 of file SurfaceWaveData.h.
Referenced by gplib::AbsVelRecObjective::PostParallel(), gplib::SurfaceWaveObjective::PreParallel(), gplib::ParkSurfaceWaveData::ReadAscii(), and gplib::ParkSurfaceWaveData::WriteAscii().
|
inline |
Read-only access to the vector of phase velocities.
Definition at line 18 of file SurfaceWaveData.h.
Referenced by main(), gplib::AbsVelRecObjective::PostParallel(), gplib::ParkSurfaceWaveData::ReadAscii(), gplib::SurfaceWaveObjective::SafeParallel(), gplib::AnisoSurfaceWaveObjective::SafeParallel(), and gplib::ParkSurfaceWaveData::WriteAscii().
SurfaceWaveData & gplib::SurfaceWaveData::operator= | ( | const SurfaceWaveData & | source | ) |
Definition at line 25 of file SurfaceWaveData.cpp.
|
virtual |
Read a file in general ascii format, i.e lines with period velocity each.
Reimplemented in gplib::ParkSurfaceWaveData.
Definition at line 73 of file SurfaceWaveData.cpp.
Referenced by main(), ReadFile(), and SetupRecObjective().
void gplib::SurfaceWaveData::ReadFile | ( | const std::string & | filename | ) |
Read data from file, depending on the extension.
Read data from file, depending on the extension it will either call ReadAscii (for ending .asc), or ReadSurf96 (for any other ending).
Definition at line 38 of file SurfaceWaveData.cpp.
References ReadAscii(), and ReadSurf96().
Referenced by main().
void gplib::SurfaceWaveData::ReadSurf96 | ( | const std::string & | filename | ) |
read data as produced by the computer programs in seismology codes ascii
Definition at line 50 of file SurfaceWaveData.cpp.
Referenced by ReadFile(), and gplib::SurfaceWaveSynthetic::SafeParallel().
|
inline |
Read-write access to periods, the format might be changed in the future.
Definition at line 33 of file SurfaceWaveData.h.
Referenced by gplib::AbsVelRecObjective::PostParallel(), and gplib::ParkSurfaceWaveData::ReadAscii().
|
inline |
Read-write access to phase velocities, the format might be changed in the future.
Definition at line 28 of file SurfaceWaveData.h.
Referenced by main(), gplib::AbsVelRecObjective::PostParallel(), and gplib::ParkSurfaceWaveData::ReadAscii().
|
virtual |
Write the data in simple ascii format.
Reimplemented in gplib::ParkSurfaceWaveData.
Definition at line 93 of file SurfaceWaveData.cpp.
Referenced by main(), gplib::AbsVelRecObjective::WriteData(), and gplib::SurfaceWaveObjective::WriteData().