gplib::SurfaceWaveData Class Reference
[Seismic data analysis and modeling]

A class to read, write and store fundamental mode surface wave dispersion data. More...

#include <SurfaceWaveData.h>

Inheritance diagram for gplib::SurfaceWaveData:

Inheritance graph
[legend]

List of all members.

Public Member Functions

const trealdata & GetPhaseVelocities () const
 Read-only access to the vector of phase velocities.
const trealdata & GetPeriods () const
 Read-only access to the vector of periods for the phase velocities.
trealdata & SetPhaseVelocities ()
 Read-write access to phase velocities, the format might be changed in the future.
trealdata & SetPeriods ()
 Read-write access to periods, the format might be changed in the future.
void ReadFile (const std::string &filename)
 Read data from file, depending on the extension.
virtual void ReadAscii (const std::string &filename)
 Read a file in general ascii format, i.e lines with period velocity each.
void ReadSurf96 (const std::string &filename)
 read data as produced by the computer programs in seismology codes ascii
virtual void WriteAscii (const std::string &filename) const
 Write the data in simple ascii format.
SurfaceWaveDataoperator= (const SurfaceWaveData &source)
 SurfaceWaveData (const SurfaceWaveData &Old)
 SurfaceWaveData ()
virtual ~SurfaceWaveData ()


Detailed Description

A class to read, write and store fundamental mode surface wave dispersion data.

Definition at line 11 of file SurfaceWaveData.h.


Constructor & Destructor Documentation

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.

gplib::SurfaceWaveData::~SurfaceWaveData (  )  [virtual]

Definition at line 15 of file SurfaceWaveData.cpp.


Member Function Documentation

const trealdata& gplib::SurfaceWaveData::GetPeriods (  )  const [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().

const trealdata& gplib::SurfaceWaveData::GetPhaseVelocities (  )  const [inline]

SurfaceWaveData & gplib::SurfaceWaveData::operator= ( const SurfaceWaveData source  ) 

Definition at line 25 of file SurfaceWaveData.cpp.

References periods, and phasevelocities.

void gplib::SurfaceWaveData::ReadAscii ( const std::string &  filename  )  [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().

trealdata& gplib::SurfaceWaveData::SetPeriods (  )  [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().

trealdata& gplib::SurfaceWaveData::SetPhaseVelocities (  )  [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().

void gplib::SurfaceWaveData::WriteAscii ( const std::string &  filename  )  const [virtual]

Write the data in simple ascii format.

Reimplemented in gplib::ParkSurfaceWaveData.

Definition at line 93 of file SurfaceWaveData.cpp.

Referenced by main(), gplib::SurfaceWaveObjective::WriteData(), and gplib::AbsVelRecObjective::WriteData().


The documentation for this class was generated from the following files:

Generated on Tue Nov 3 13:24:22 2009 for GPLIB++ by  doxygen 1.5.8