TSOpt::GridSpace Class Reference

Space class for Grid data. More...

#include <gridpp.hh>

List of all members.

Public Member Functions

 GridSpace (string hdr, string dtype="notype", bool incore=false, ostream &outfile=cerr)
 normal constructor - assumes hdr is name of RSF header file
 GridSpace (grid const &g, std::string tag, std::string thdr="", std::string fmt="native_ireal", bool incore=false, ostream &outfile=cerr)
 constructor from grid data.
 GridSpace (GridSpace const &sp)
 ~GridSpace ()
LinearAlgebraPackage< ireal
> const & 
getLAP () const
DataContainerFactory const & getDCF () const
grid const & getGrid () const
bool isIncore () const
ostream & write (ostream &str) const

Protected Member Functions

Space< float > * clone () const


Detailed Description

Space class for Grid data.

Definition at line 170 of file gridpp.hh.


Constructor & Destructor Documentation

TSOpt::GridSpace::GridSpace ( string  hdr,
string  dtype = "notype",
bool  incore = false,
ostream &  outfile = cerr 
)

normal constructor - assumes hdr is name of RSF header file

data type serves as key in IWAVE parameter tables. will eventually be deduced from units specified in metadata.

optional specification of incore vector arithmetic - causes grid physical dimension to be overwritten in DC class by grid global dimension, so that entire data volume is read into memory rather than physical panels.

Parameters:
[in] hdr - path to prototype RSF metadata file
[in] dtype - data type (density, bulkmod, velocity,...)
[in] incore - implement vector arithmetic in core if true
[in] outfile - verbose output stream

Referenced by clone().

TSOpt::GridSpace::GridSpace ( grid const &  g,
std::string  tag,
std::string  thdr = "",
std::string  fmt = "native_ireal",
bool  incore = false,
ostream &  outfile = cerr 
)

constructor from grid data.

useful when many intermediate spaces with same or related grids must be constructed.

Parameters:
[in] g - prototype grid
[in] tag - data type (standin for units)
[in] thdr - optional header file name - default is tmp name
[in] fmt - optional data format - default is native_ireal
[in] outfile - verbose output stream

TSOpt::GridSpace::GridSpace ( GridSpace const &  sp  ) 

TSOpt::GridSpace::~GridSpace (  ) 


Member Function Documentation

Space<float>* TSOpt::GridSpace::clone (  )  const [protected]

Definition at line 190 of file gridpp.hh.

References GridSpace().

LinearAlgebraPackage<ireal> const& TSOpt::GridSpace::getLAP (  )  const

DataContainerFactory const& TSOpt::GridSpace::getDCF (  )  const

grid const& TSOpt::GridSpace::getGrid (  )  const

bool TSOpt::GridSpace::isIncore (  )  const

ostream& TSOpt::GridSpace::write ( ostream &  str  )  const


The documentation for this class was generated from the following file:
Generated on 5 Jan 2017 for IWAVEGRID by  doxygen 1.4.7