SORT_NONE

Type: string

SORT_DISTANCE

src/sorting.ts
SORT_DISTANCE

Type: string

SORT_AZIMUTH

src/sorting.ts
SORT_AZIMUTH

Type: string

SORT_BACKAZIMUTH

src/sorting.ts
SORT_BACKAZIMUTH

Type: string

SORT_ALPHABETICAL

src/sorting.ts
SORT_ALPHABETICAL

Type: string

SORT_STARTTIME

src/sorting.ts
SORT_STARTTIME

Type: string

SORT_ORIGINTIME

src/sorting.ts
SORT_ORIGINTIME

Type: string

sort(seisData: Array<SeismogramDisplayData>, key: string)
Parameters
seisData (Array<SeismogramDisplayData>)
key (string)

createSortValueFunction

src/sorting.ts
createSortValueFunction(key: string): function (sdd: SeismogramDisplayData): any
Parameters
key (string)
Returns
function (sdd: SeismogramDisplayData): any

reorderXYZ

src/sorting.ts

Reorders array of SeismogramDisplayData in "best effort" xyz order. The data should all be from the same station and represent three components of motion. A common grouping of Z,N,E seismograms in any order would be returned as E,N,Z. If the grouping was Z,1,2 where the azimuth of 1 is 90 degrees ccw from 2, then the returned order would be 2,1,Z.

reorderXYZ(sddList: Array<SeismogramDisplayData>, sdd: any): Array<SeismogramDisplayData>
Parameters
sddList (Array<SeismogramDisplayData>)
sdd (any) array representing compoment of motion
Returns
Array<SeismogramDisplayData>: sorted array in x,y,z order