SORT_NONE

SORT_NONE

Type: string

SORT_DISTANCE

SORT_DISTANCE

Type: string

SORT_AZIMUTH

SORT_AZIMUTH

Type: string

SORT_BACKAZIMUTH

SORT_BACKAZIMUTH

Type: string

SORT_ALPHABETICAL

SORT_ALPHABETICAL

Type: string

SORT_STARTTIME

SORT_STARTTIME

Type: string

SORT_ORIGINTIME

SORT_ORIGINTIME

Type: string

sort

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

createSortValueFunction

createSortValueFunction(key: string): function (sdd: SeismogramDisplayData): (number | string | DateTime)
Parameters
key (string)
Returns
function (sdd: SeismogramDisplayData): (number | string | DateTime)

reorderXYZ

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>): Array<SeismogramDisplayData>
Parameters
sddList (Array<SeismogramDisplayData>) array representing compoment of motion
Returns
Array<SeismogramDisplayData>: sorted array in x,y,z order