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>

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.
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
void WriteAscii (const std::string &filename)
 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 9 of file SurfaceWaveData.h.


Constructor & Destructor Documentation

SurfaceWaveData::SurfaceWaveData ( const SurfaceWaveData Old  ) 

Definition at line 17 of file SurfaceWaveData.cpp.

SurfaceWaveData::SurfaceWaveData (  ) 

Definition at line 9 of file SurfaceWaveData.cpp.

SurfaceWaveData::~SurfaceWaveData (  )  [virtual]

Definition at line 13 of file SurfaceWaveData.cpp.


Member Function Documentation

const trealdata& SurfaceWaveData::GetPeriods (  )  const [inline]

Read-only access to the vector of periods for the phase velocities.

Definition at line 18 of file SurfaceWaveData.h.

Referenced by AbsVelRecObjective::PostParallel(), and SurfaceWaveObjective::PreParallel().

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

Read-only access to the vector of phase velocities.

Definition at line 16 of file SurfaceWaveData.h.

Referenced by main(), AbsVelRecObjective::PostParallel(), and SurfaceWaveObjective::SafeParallel().

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

Definition at line 23 of file SurfaceWaveData.cpp.

References periods, and phasevelocities.

void SurfaceWaveData::ReadAscii ( const std::string &  filename  ) 

Read a file in general ascii format, i.e lines with period velocity each.

Definition at line 67 of file SurfaceWaveData.cpp.

Referenced by main(), ReadFile(), and SetupRecObjective().

void 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 33 of file SurfaceWaveData.cpp.

References ReadAscii(), and ReadSurf96().

Referenced by main().

void SurfaceWaveData::ReadSurf96 ( const std::string &  filename  ) 

read data as produced by the computer programs in seismology codes ascii

Definition at line 45 of file SurfaceWaveData.cpp.

Referenced by ReadFile(), and SurfaceWaveSynthetic::SafeParallel().

trealdata& SurfaceWaveData::SetPeriods (  )  [inline]

Read-write access to periods, the format might be changed in the future.

Definition at line 22 of file SurfaceWaveData.h.

Referenced by AbsVelRecObjective::PostParallel().

trealdata& SurfaceWaveData::SetPhaseVelocities (  )  [inline]

Read-write access to phase velocities, the format might be changed in the future.

Definition at line 20 of file SurfaceWaveData.h.

Referenced by main(), and AbsVelRecObjective::PostParallel().

void SurfaceWaveData::WriteAscii ( const std::string &  filename  ) 

Write the data in simple ascii format.

Definition at line 86 of file SurfaceWaveData.cpp.

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


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

Generated on Tue Aug 4 16:04:22 2009 for GPLIB++ by  doxygen 1.5.8