#include <gridpp.hh>
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 |
Definition at line 170 of file gridpp.hh.
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.
[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.
[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 | ( | ) |
Space<float>* TSOpt::GridSpace::clone | ( | ) | const [protected] |
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 |