API / geotoolkit / seismic / data / DataHeader / DataHeader
data.DataHeader.DataHeader
DataHeader is an 'interface/abstract' class responsible for holding the seismic trace header. Inheriting classes would provide the actual implementation. Headers are organized as set of 'fields' and 'values'.
DataHeader
Constructors
Constructors
• new DataHeader(size, headerType)
Creates data header
| Name | Type | Description |
|---|---|---|
size | number | number of bytes |
headerType | HeaderType | type of traceheader |
Methods
▸ containsField(fieldType): boolean
Returns true if contains field type
| Name | Type | Description |
|---|---|---|
fieldType | string | type of the field in the array. |
boolean
▸ getFieldByIdentifier(identifier): FieldDesc
Get a field by its identifier
| Name | Type | Description |
|---|---|---|
identifier | string | unique header number |
▸ getFieldValue(data, headerFieldId): number
Returns true if array contains field type
| Name | Type | Description |
|---|---|---|
data | any | which contains the parse data |
headerFieldId | string | number | unique id of the header field |
number
null
▸ getHeaderType(): HeaderType
Return identifier (type)
▸ getSize(): number
Return size
number
▸ parse(binary): any
Return trace header value by identifier
| Name | Type | Description |
|---|---|---|
binary | ArrayBuffer | binary data |
any
binary