Annotation#

class cegalprizm.pythontool.Annotation(inline, xline, sample)#

Represents a set of annotations for seismic objects. These are commonly not 0-based and possibly irregularly spaced, so it is not advisable to iterate over annotations directly but to use methods to convert them to cegalprizm.pythontool.Indices and back again.

Functions

__init__()

count(value, /)

Return number of occurrences of value.

index(value[, start, stop])

Return first index of value.

Properties

inline

Alias for field number 0

sample

Alias for field number 2

xline

Alias for field number 1

count(value, /)#

Return number of occurrences of value.

index(value, start=0, stop=9223372036854775807, /)#

Return first index of value.

Raises ValueError if the value is not present.

inline#

Alias for field number 0

sample#

Alias for field number 2

xline#

Alias for field number 1