OpenZGY/C++ API and Internals (ALPHA)
Access seismic data stored in ZGY format.
Public Member Functions | Public Attributes | List of all members
InternalZGY::InfoHeaderV1Access Class Reference
Inheritance diagram for InternalZGY::InfoHeaderV1Access:
InternalZGY::InfoHeaderAccess InternalZGY::IInfoHeaderAccess InternalZGY::IHeaderAccess

Public Member Functions

virtual podbytes_t podbytes () const override
 
virtual void read (const std::shared_ptr< FileADT > &file, std::int64_t offset, std::int64_t size) override
 
virtual void byteswap () override
 
virtual void calculate_cache () override
 
virtual void calculate_read (const podbytes_t &slbuf, const std::shared_ptr< IHistHeaderAccess > &hh) override
 
virtual podbytes_t calculate_write () override
 
virtual std::array< std::int64_t, 3 > size () const override
 
virtual std::array< float, 3 > orig () const override
 
virtual std::array< float, 3 > inc () const override
 
virtual std::array< float, 4 > gpiline () const override
 
virtual std::array< float, 4 > gpxline () const override
 
virtual std::array< double, 4 > gpx () const override
 
virtual std::array< double, 4 > gpy () const override
 
virtual RawDataType datatype () const override
 
virtual std::array< std::int64_t, 3 > bricksize () const override
 
virtual std::array< float, 2 > codingrange () const override
 
virtual std::array< std::uint8_t, 16 > dataid () const override
 
virtual std::array< std::uint8_t, 16 > verid () const override
 
virtual std::array< std::uint8_t, 16 > previd () const override
 
virtual std::string srcname () const override
 
virtual std::string srcdesc () const override
 
virtual RawDataType srctype () const override
 
virtual std::int64_t scnt () const override
 
virtual double ssum () const override
 
virtual double sssq () const override
 
virtual float smin () const override
 
virtual float smax () const override
 
virtual std::string hprjsys () const override
 
virtual RawHorizontalDimension hdim () const override
 
virtual double hunitfactor () const override
 
virtual std::string hunitname () const override
 
virtual RawVerticalDimension vdim () const override
 
virtual double vunitfactor () const override
 
virtual std::string vunitname () const override
 
virtual std::uint32_t slbufsize () const override
 
virtual const std::array< std::array< double, 2 >, 4 > & ocp_index () const override
 
virtual const std::array< std::array< double, 2 >, 4 > & ocp_annot () const override
 
virtual const std::array< std::array< double, 2 >, 4 > & ocp_world () const override
 
virtual const std::vector< std::array< std::int64_t, 3 > > & lodsizes () const override
 
virtual std::int32_t nlods () const override
 
virtual const std::vector< std::int64_t > & alphaoffsets () const override
 
virtual const std::vector< std::int64_t > & brickoffsets () const override
 
virtual void setstats (std::int64_t scnt, double ssum, double sssq, float smin, float smax)
 

Public Attributes

InfoHeaderV1POD _pod
 
float _cached_sample_min
 
float _cached_sample_max
 
std::int32_t _cached_nlods
 
std::vector< std::array< std::int64_t, 3 > > _cached_lodsizes
 
std::vector< std::int64_t > _cached_alphaoffsets
 
std::vector< std::int64_t > _cached_brickoffsets
 
std::array< std::array< double, 2 >, 4 > _cached_index
 
std::array< std::array< double, 2 >, 4 > _cached_annot
 
std::array< std::array< double, 2 >, 4 > _cached_world
 

Additional Inherited Members

- Public Types inherited from InternalZGY::IHeaderAccess
typedef std::vector< std::uint8_t > podbytes_t
 

Member Function Documentation

◆ calculate_cache()

void InternalZGY::InfoHeaderV1Access::calculate_cache ( )
overridevirtual

Calculate derived information that is too expensive to compute on the fly. The code here is needed both after reading an existing file and after creating a new one.

Implements InternalZGY::IInfoHeaderAccess.

◆ calculate_read()

void InternalZGY::InfoHeaderV1Access::calculate_read ( const podbytes_t &  slbuf,
const std::shared_ptr< IHistHeaderAccess > &  hh 
)
overridevirtual

Fix up information that logically belong in this header but is stored elsewhere. This is not quite the same as calculate_cache() and it should only be called after reading an existing fille.

Implements InternalZGY::IInfoHeaderAccess.

◆ calculate_write()

InfoHeaderV1Access::podbytes_t InternalZGY::InfoHeaderV1Access::calculate_write ( )
overridevirtual

Prepare to write this header to disk. If this is a newly created header then the cached derived information needs to be computed as well. It might be safer to do that unconditionally.

Implements InternalZGY::IInfoHeaderAccess.


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