h5geo 0.4.0
C++17 and python API to work with geo-data (seismic, wells, maps, other in process) based on HDF5. Aimed at geoscientists and developers.
Loading...
Searching...
No Matches
H5HorizonImpl Class Reference
Inheritance diagram for H5HorizonImpl:
H5BaseObjectImpl< H5Horizon > H5BaseImpl< H5Horizon > H5Horizon H5BaseObject H5Base

Public Member Functions

virtual bool writeData (Eigen::Ref< Eigen::MatrixXd > M, const std::string &unitsFrom="", const std::string &unitsTo="") override
 Write data to DataSet.
 
virtual Eigen::MatrixXd getData (const std::string &unitsFrom="", const std::string &unitsTo="") override
 Read data from DataSet.
 
virtual bool writeComponent (const std::string &componentName, Eigen::Ref< Eigen::VectorXd > v, const std::string &unitsFrom="", const std::string &unitsTo="") override
 Write single component to DataSet.
 
virtual Eigen::VectorXd getComponent (const std::string &componentName, const std::string &unitsFrom="", const std::string &unitsTo="") override
 Read single component from DataSet.
 
virtual bool setNPoints (size_t n) override
 Resize rows of HDF5 DataSet.
 
virtual bool setNComponents (size_t n) override
 Resize columns of HDF5 DataSet.
 
virtual bool setComponents (const std::map< std::string, size_t > &components) override
 Set components.
 
virtual bool setDomain (const h5geo::Domain &domain) override
 Set domain for the points (TVD, TVDSS, TWT, OWT)
 
virtual H5BaseContaineropenContainer () const override
 Open container where current points resides.
 
virtual size_t getNPoints () override
 Return number of points for the horizon.
 
virtual size_t getNComponents () override
 Return number of dimension for the horizon.
 
virtual std::map< std::string, size_t > getComponents () override
 Return component names and corresponding HDF5 rows.
 
virtual h5geo::Domain getDomain () override
 Get domain (TVD, TVDSS, TWT, OWT)
 
virtual H5HorizonParam getParam () override
 Get parameters that were used to create current points.
 
virtual std::optional< h5gt::DataSet > getHorizonD () const override
 Get current points DataSet.
 
- Public Member Functions inherited from H5BaseObjectImpl< H5Horizon >
virtual H5BasePointsopenPoints (const std::string &name) override
 Open H5BasePoints derived points.
 
virtual H5BasePointsopenPoints (h5gt::Group group) override
 Open H5BasePoints derived points.
 
virtual H5HorizonopenHorizon (const std::string &name) override
 
virtual H5HorizonopenHorizon (h5gt::Group group) override
 
virtual H5Points1createPoints1 (std::string &name, H5PointsParam &p, h5geo::CreationType createFlag) override
 
virtual H5Points1createPoints1 (h5gt::Group group, H5PointsParam &p, h5geo::CreationType createFlag) override
 
virtual H5Points2createPoints2 (std::string &name, H5PointsParam &p, h5geo::CreationType createFlag) override
 
virtual H5Points2createPoints2 (h5gt::Group group, H5PointsParam &p, h5geo::CreationType createFlag) override
 
virtual H5Points3createPoints3 (std::string &name, H5PointsParam &p, h5geo::CreationType createFlag) override
 
virtual H5Points3createPoints3 (h5gt::Group group, H5PointsParam &p, h5geo::CreationType createFlag) override
 
virtual H5Points4createPoints4 (std::string &name, H5PointsParam &p, h5geo::CreationType createFlag) override
 
virtual H5Points4createPoints4 (h5gt::Group group, H5PointsParam &p, h5geo::CreationType createFlag) override
 
virtual H5HorizoncreateHorizon (std::string &name, H5HorizonParam &p, h5geo::CreationType createFlag) override
 
virtual H5HorizoncreateHorizon (h5gt::Group group, H5HorizonParam &p, h5geo::CreationType createFlag) override
 
virtual H5Baseclone () override
 
H5Baseclone ()
 
H5Baseclone ()
 
H5Baseclone ()
 
H5Baseclone ()
 
H5Baseclone ()
 
H5Baseclone ()
 
H5Baseclone ()
 
H5Baseclone ()
 
H5Baseclone ()
 
H5Baseclone ()
 
H5Baseclone ()
 
H5Baseclone ()
 
H5Baseclone ()
 
H5Baseclone ()
 
virtual bool setSpatialReference (const std::string &str) override
 Set spatial reference for current geo-object using authName:code form.
 
virtual bool setSpatialReference (const std::string &authName, const std::string &code) override
 Set spatial reference for current geo-object.
 
virtual bool setLengthUnits (const std::string &str) override
 Set length units for the current geo-object.
 
virtual bool setTemporalUnits (const std::string &str) override
 Set temporal units for the current geo-object.
 
virtual bool setAngularUnits (const std::string &str) override
 Set angular units for the current geo-object.
 
virtual bool setDataUnits (const std::string &str) override
 Set data units for the current geo-object.
 
virtual bool setNullValue (double val) override
 Set NULL value for the current geo-object.
 
virtual std::string getSpatialReference () override
 Get spatial reference for current geo-object.
 
virtual std::string getLengthUnits () override
 Get length units for the current geo-object.
 
virtual std::string getTemporalUnits () override
 Get temporal units for the current geo-object.
 
virtual std::string getAngularUnits () override
 Get angular units for the current geo-object.
 
virtual std::string getDataUnits () override
 Get data units for the current geo-object.
 
virtual double getNullValue () override
 Get NULL value for the current geo-object.
 
virtual h5gt::File getH5File () const override
 Get HDF5 file.
 
virtual h5gt::Group getObjG () const override
 Get HDF5 Group.
 
virtual std::string getName () const override
 Get geo-object's name without path.
 
virtual std::string getFullName () const override
 Get geo-object's name with full path to that object.
 
virtual std::vector< h5gt::Group > getObjGroupList (const h5geo::ObjectType &objType, bool recursive) override
 Find all geo-objects of specified type within current geo-object and return them as vector of Groups.
 
virtual std::vector< std::string > getObjNameList (const h5geo::ObjectType &objType, bool recursive) override
 Find all geo-objects of specified type within current geo-object and return them as vector of names.
 
virtual size_t getObjCount (const h5geo::ObjectType &objType, bool recursive) override
 Get number of geo-objects of specified type within current geo-object.
 
virtual bool isEqual (H5BaseObject *other) const override
 Check if geo-objects are the same.
 
virtual bool operator== (const H5BaseObject &other) const override
 Check if geo-objects are the same (compares HDF5 Groups)
 
virtual bool operator!= (const H5BaseObject &other) const override
 Check if geo-objects are not the same (compares HDF5 Groups)
 
- Public Member Functions inherited from H5BaseImpl< H5Horizon >
virtual void Delete () override
 

Protected Member Functions

 H5HorizonImpl (const h5gt::Group &group)
 
- Protected Member Functions inherited from H5BaseObjectImpl< H5Horizon >
 H5BaseObjectImpl (const h5gt::Group &group)
 
std::optional< h5gt::Group > getParentG (const h5geo::ObjectType &objType)
 getParent Search for parent of type ObjectType for the objG
 
virtual std::optional< h5gt::Group > getGroupOpt (h5gt::Group &parent, const std::string &groupName) const
 
virtual std::optional< h5gt::DataSet > getDatasetOpt (const h5gt::Group &parent, const std::string &datasetName) const
 
- Protected Member Functions inherited from H5BaseImpl< H5Horizon >
virtual std::vector< h5gt::Group > getChildGroupList (h5gt::Group &group, const h5geo::ObjectType &objType, bool recursive=false)
 
virtual std::vector< std::string > getChildNameList (h5gt::Group &group, const h5geo::ObjectType &objType, const std::string &referencePath, bool recursive=false)
 referencePath to get relative path from it (set to empty to get full path)
 
virtual size_t getChildCount (h5gt::Group &group, const h5geo::ObjectType &objType, bool recursive=false)
 
std::optional< h5gt::Group > createObject (std::string &objName, h5gt::File parentFile, const h5geo::ObjectType &objType, void *p, h5geo::CreationType createFlag)
 createObject Creates new object. If CREATE_UNDER_NEW_NAME then objName will be chaged to be unique in its parent file.
 
std::optional< h5gt::Group > createObject (std::string &objName, h5gt::Group parentGroup, const h5geo::ObjectType &objType, void *p, h5geo::CreationType createFlag)
 createObject Creates new object. If CREATE_UNDER_NEW_NAME then objName will be chaged to be unique in its parent group.
 
std::optional< h5gt::Group > createObject (h5gt::Group objG, const h5geo::ObjectType &objType, void *p, h5geo::CreationType createFlag)
 
bool isSuccessor (const h5gt::Group &parentG, const h5gt::Group &childG)
 isSuccessor checks whether childG is successor of parentG
 
bool isSuccessor (const std::string &parent, const std::string &child)
 isSuccessor works only with absolute path!
 

Friends

class H5BaseObjectImpl< H5Horizon >
 
class H5BaseContainerImpl< H5BaseContainer >
 
class H5BaseContainerImpl< H5MapContainer >
 
class H5BaseContainerImpl< H5SeisContainer >
 
class H5BaseContainerImpl< H5VolContainer >
 
class H5BaseContainerImpl< H5WellContainer >
 
class H5BaseObjectImpl< H5BaseObject >
 
class H5BaseObjectImpl< H5BasePoints >
 
class H5BaseObjectImpl< H5Points1 >
 
class H5BaseObjectImpl< H5Points2 >
 
class H5BaseObjectImpl< H5Points3 >
 
class H5BaseObjectImpl< H5Points4 >
 
class H5BaseObjectImpl< H5WellTops >
 
class H5BaseObjectImpl< H5Map >
 
class H5BaseObjectImpl< H5Seis >
 
class H5BaseObjectImpl< H5Vol >
 
class H5BaseObjectImpl< H5Well >
 
class H5BaseObjectImpl< H5DevCurve >
 
class H5BaseObjectImpl< H5LogCurve >
 
H5Horizonh5geo::openHorizon (h5gt::Group group)
 

Additional Inherited Members

- Static Protected Member Functions inherited from H5BaseImpl< H5Horizon >
static std::optional< h5gt::File > createContainer (std::string &fileName, const h5geo::ContainerType &containerType, h5geo::CreationType createFlag)
 
static std::optional< h5gt::File > createContainer (h5gt::File h5File, const h5geo::ContainerType &containerType, h5geo::CreationType createFlag)
 
- Protected Attributes inherited from H5BaseObjectImpl< H5Horizon >
h5gt::Group objG
 

Member Function Documentation

◆ getComponent()

Eigen::VectorXd H5HorizonImpl::getComponent ( const std::string & componentName,
const std::string & unitsFrom = "",
const std::string & unitsTo = "" )
overridevirtual

Read single component from DataSet.

Implements H5Horizon.

◆ getComponents()

std::map< std::string, size_t > H5HorizonImpl::getComponents ( )
overridevirtual

Return component names and corresponding HDF5 rows.

Implements H5Horizon.

◆ getData()

Eigen::MatrixXd H5HorizonImpl::getData ( const std::string & unitsFrom = "",
const std::string & unitsTo = "" )
overridevirtual

Read data from DataSet.

Implements H5Horizon.

◆ getDomain()

h5geo::Domain H5HorizonImpl::getDomain ( )
overridevirtual

Get domain (TVD, TVDSS, TWT, OWT)

Implements H5Horizon.

◆ getHorizonD()

std::optional< h5gt::DataSet > H5HorizonImpl::getHorizonD ( ) const
overridevirtual

Get current points DataSet.

Implements H5Horizon.

◆ getNComponents()

size_t H5HorizonImpl::getNComponents ( )
overridevirtual

Return number of dimension for the horizon.

Implements H5Horizon.

◆ getNPoints()

size_t H5HorizonImpl::getNPoints ( )
overridevirtual

Return number of points for the horizon.

Implements H5Horizon.

◆ getParam()

H5HorizonParam H5HorizonImpl::getParam ( )
overridevirtual

Get parameters that were used to create current points.

Implements H5Horizon.

◆ openContainer()

H5BaseContainer * H5HorizonImpl::openContainer ( ) const
overridevirtual

Open container where current points resides.

Implements H5Horizon.

◆ setComponents()

bool H5HorizonImpl::setComponents ( const std::map< std::string, size_t > & components)
overridevirtual

Set components.

Delete all attributes from horizon DataSet and create new

Implements H5Horizon.

◆ setDomain()

bool H5HorizonImpl::setDomain ( const h5geo::Domain & domain)
overridevirtual

Set domain for the points (TVD, TVDSS, TWT, OWT)

Implements H5Horizon.

◆ setNComponents()

bool H5HorizonImpl::setNComponents ( size_t n)
overridevirtual

Resize columns of HDF5 DataSet.

Implements H5Horizon.

◆ setNPoints()

bool H5HorizonImpl::setNPoints ( size_t n)
overridevirtual

Resize rows of HDF5 DataSet.

Implements H5Horizon.

◆ writeComponent()

bool H5HorizonImpl::writeComponent ( const std::string & componentName,
Eigen::Ref< Eigen::VectorXd > v,
const std::string & unitsFrom = "",
const std::string & unitsTo = "" )
overridevirtual

Write single component to DataSet.

Implements H5Horizon.

◆ writeData()

bool H5HorizonImpl::writeData ( Eigen::Ref< Eigen::MatrixXd > M,
const std::string & unitsFrom = "",
const std::string & unitsTo = "" )
overridevirtual

Write data to DataSet.

Implements H5Horizon.


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