Program: MKLSLSD2FXD
mklslsd2fxd.......convert LSD structure into FXD structure
call: fxd=mklslsd2fxd(lsd);
lsd: (structure)
LSD structure as returned by MKLSREADLSD
result: fxd: (structure array)
fxd(i) is the data for the i-th station:
.id: (string)
station identifier string
.slat: (number) [deg]
station latitude
.slon: (number) [deg]
station longitude
.selv: (number) [km]
station elevation above reference sphere
.phase: (string matrix)
seismic phase name
.phase(j,:) is the seismic phase for which the j-th
datum is valid
.event: (string)
ID of event to which data is associated.
The FXD structure can handle ony one event at a
time. If the LSD structure refers to more than one
event, the conversion is terminated with an error!
.value: (numeric array) [unit type dependent]
value is an n-by-4 array in which all data is compiled. It
contains a data type label, a pointer to the phase
name list and the data itself, which is to be
interpreted according to the data type label.
.value(j,1): data type label. The following labels
are defined:
1: arrival time
2: back azimuth
3: emergence angle
4: slowness
.value(j,2): phase name pointer
.value(j,3): minimum data value
.value(j,4): maximum data value
The data is represented as a numeric interval, i.e.
as a smallest possible value and a largest possible
value. The physical units depend on the data type:
arrival times: seconds
back azimuths: degrees
emegrence angles: degrees
slowness: seconds per degree
.atcnt: (number)
number of arrival time data for this station
.bazcnt: (number)
number of back azimuth data for this station
.emergcnt: (number)
number of emergence angle data for this station
.slocnt: (number)
number of slowness data for this station
FXD (Fast Access Data) format is a structure variable format that allows
a faster access to station specific data than LSD structures, but is
probably more confusing for humans and therefore not recommended as input
or exchange format.
The data type counters show for which type of data the grid needs to be
evaluated.
Martin Knapmeyer, 04.02.2005
Read M-File Source Code
eof.