Last updated

API / geotoolkit / seismic / data / RemoteSeismicReader / RemoteSeismicReader

Class: RemoteSeismicReader

data.RemoteSeismicReader.RemoteSeismicReader

RemoteSeismicReader is a reader that can access data on a server rather than on a local file.
This implementation follows the INTGeoServer(© Interactive Network Technologies, Inc.) API.
Meaning that it can be used out of the box to fetch traces from an INTGeoServer(© Interactive Network Technologies, Inc.).

This class uses internally xhr and binary transfer to fetch the traces from the server.

Hierarchy

Table of contents

Constructors
Properties
Accessors
Methods

Contents

Constructors

new RemoteSeismicReader(datasource, options, nullValue)

new RemoteSeismicReader(datasource, options?, nullValue?)

Creates reader

Parameters

Name Type Description
datasourceRemoteSeismicDataSourceThe datasource for this reader
Optional optionsnumber | OptionsThe options to use
Optional nullValuenumbernullValue is passed when a value does not exist. There will be a break in the wiggles in that area. Fill will not fill that area. User can set a custom color for NullValue

Overrides

SeismicReader.constructor

Properties

getOptions

getOptions: () => Options

Type declaration

▸ (): Options

Returns

Options

Overrides

SeismicReader.getOptions

Accessors

DefaultWorkflow

Static get DefaultWorkflow(): string

The default workflow constant. By default no compression will be done.

Constant

Default

Returns

string

Methods

copyConstructor

Protected copyConstructor(src, deepCopy?): RemoteSeismicReader

Copy constructor function.
Function used as part of the cloning mechanism.
Implementations should copy the given instance state to this instance.

Parameters

Name Type Description
srcSeismicReaderSource to copy from
Optional deepCopybooleandeep copy

Returns

RemoteSeismicReader

this

Inherited from

SeismicReader.copyConstructor


dispose

dispose(): void

Dispose.

Returns

void

Inherited from

SeismicReader.dispose


getClassName

getClassName(): string

Returns

string

Inherited from

SeismicReader.getClassName


getDataProvider

getDataProvider(): RemoteReaderDataProvider

Return instance of data provider

Returns

RemoteReaderDataProvider


getHost

getHost(): string

Returns host name

Returns

string


getMetaData

getMetaData(): SeismicMetaData

Returns seismic meta data information

Returns

SeismicMetaData

Overrides

SeismicReader.getMetaData


getModelLimits

getModelLimits(): Rect

Returns seismic model limits

Returns

Rect

Overrides

SeismicReader.getModelLimits


getNullValue

getNullValue(): number

Returns null value

Returns

number

null value

Inherited from

SeismicReader.getNullValue


getNumberOfSamples

getNumberOfSamples(): number

Returns number of samples

Returns

number

Overrides

SeismicReader.getNumberOfSamples


getNumberOfTraces

getNumberOfTraces(): number

Returns number of traces

Returns

number

Overrides

SeismicReader.getNumberOfTraces


getOriginalMetaData

getOriginalMetaData(): SeismicMetaData

Returns seismic original meta data information before any decimation

Returns

SeismicMetaData

Overrides

SeismicReader.getOriginalMetaData


getSampleRate

getSampleRate(): number

Returns sample rate

Returns

number

Overrides

SeismicReader.getSampleRate


getSeismicFileName

getSeismicFileName(): string

Returns file name

Returns

string


getStatistics

getStatistics(): Statistics

Returns statistics

Returns

Statistics

data statistics

Overrides

SeismicReader.getStatistics


getTimeStamp

getTimeStamp(): number

Return the value to indicate if data was changed

Returns

number

Inherited from

SeismicReader.getTimeStamp


getTraceHeaderFields

getTraceHeaderFields(): FieldDesc[]

Returns an array of field descriptors for the dataset read by this seismic reader.

Returns

FieldDesc[]

array of header descriptors

Overrides

SeismicReader.getTraceHeaderFields


hasEventListener

hasEventListener(type, callback?): boolean

Check if a list of event listeners for this type contains this listener

Parameters

Name Type Description
typestringtype of event or property
Optional callbackFunctionto be called, if null, check if any callback is registered

Returns

boolean

Inherited from

SeismicReader.hasEventListener


invalidate

invalidate(rect?): void

Invalidate data and notify that data is changed

Parameters

Name Type Description
Optional rectRectoptional area of tracers and samples to invalidate. It is not supported now

Returns

void

Inherited from

SeismicReader.invalidate


isDisposed

isDisposed(): boolean

Returns whether this object has been disposed

Returns

boolean

Inherited from

SeismicReader.isDisposed


isSilent

isSilent(): boolean

Return true if the event dispatcher doesn't notify any events

Returns

boolean

Inherited from

SeismicReader.isSilent


loadMetaData

loadMetaData(callback): void

Load SeismicMetaData seismic metadata. Seismic metadata is a map of general properties of the seismic data source like: number of traces, sample rate.

Parameters

Name Type Description
callback(reader: SeismicReader) => voidmethod to be called when data is ready

Returns

void

Overrides

SeismicReader.loadMetaData


notify

notify<E>(type, source, args?): RemoteSeismicReader

Notify listeners

Type parameters

NameType
Eextends string

Parameters

Name Type Description
typeEevent types
sourceSeismicReaderof the event
Optional argsEventMap[E]arguments of the event

Returns

RemoteSeismicReader

this

Inherited from

SeismicReader.notify


off

off<E>(type?, callback?): RemoteSeismicReader

Detach listener on event. Calling .off() with no arguments removes all attached listeners. Calling .off(type) with no callback removes all attached listeners for specific type.

Type parameters

NameType
Eextends string

Parameters

Name Type Description
Optional typeEtype of the event
Optional callback(eventType: E, sender: RemoteSeismicReader, args: EventMap[E]) => voidfunction to be called

Returns

RemoteSeismicReader

this

Inherited from

SeismicReader.off


on

on<E>(type, callback): RemoteSeismicReader

Attach listener on event that will be called whenever the specified event is delivered to the target

If the callback function is already in the list of event listeners for this target, the function is not added a second time.

If a particular anonymous function is in the list of event listeners registered for a certain target, and then later in the code, an identical anonymous function is given in an "on" call, the second function will also be added to the list of event listeners for that target.

Type parameters

NameType
Eextends string

Parameters

Name Type Description
typeEtype of event or property
callback(eventType: E, sender: RemoteSeismicReader, args: EventMap[E]) => voidto be called

Returns

RemoteSeismicReader

this

Inherited from

SeismicReader.on


queryInterface

queryInterface<T>(someInterface): InstanceType<T>

Returns interface, if reader can provide it

Type parameters

NameType
Textends Constructor<any>

Parameters

Name Type Description
someInterfaceTinterface

Returns

InstanceType<T>

internal instance of this interface

Inherited from

SeismicReader.queryInterface


release

release(): void

Notify server that reader resources can be released on server

Returns

void


select

select(query, callback): Promise<void>

Select seismic trace sections and then call "callback" method. This function executes a 'select' operation using the given query.
The query is executed server side (for RemoteSeismicReader) to filter the traces requested by the client side.
The servers sends back the data, and when the request is finalized, the given callback function is called with the result.

Parameters

Name Type Description
querySelectQuerya condition in JSON format
callbackSelectCallbackcallback to be called when section is loaded

Returns

Promise<void>

Overrides

SeismicReader.select


setSilent

setSilent(bool): RemoteSeismicReader

Set silent mode

Parameters

Name Type Description
boolbooleanflag to enable silent mode

Returns

RemoteSeismicReader

this

Inherited from

SeismicReader.setSilent


update

update(query?, callback?): void

Update reader by making new seismic query

Parameters

Name Type Description
Optional queryRecord<string, any>this specifies the condition of the request
Optional callbackUpdateCallbackmethod to be called when data is ready

Returns

void

Overrides

SeismicReader.update


updateTimeStamp

Protected updateTimeStamp(): void

Update time stamp

Returns

void

Inherited from

SeismicReader.updateTimeStamp


getClassName

Static getClassName(): string

Returns

string

Inherited from

SeismicReader.getClassName