Nstations, data以外のメンバを設定した構造体に&を付けて与える。
関数内でメンバNstations, dataの値が設定される。
Give a structure, whose members other than
Nstations and data have been set,
with &.
Within the function, the values of members
Nstations and data are set.
◆動作(Behaviour)
引数pick_dataで与えた構造体のメンバNstations, dataの値を設定する。
Set the values of members Nstations and data
of the structure given by argument pick_data.
メンバNstationsにはメンバNdata_sの値がコピーされる。
メンバdataの配列要素数もこの値となる。
The value of member Ndata_s is copied to member Nstations.
This value is used for
the number of array components of member data.
メンバdataにおける配列要素の並び順はメンバdata_sと同じになる。
The order of array components of member data
is equivalent to that of member data_s.
メンバdataの配列要素はstruct win_pick_data型構造体である。
そのメンバは以下のように設定される。
Each array component of member data
is a struct win_pick_data-type structure.
The values of its members are determined as follows.
struct win_pick_data型構造体のメンバ
stationCode, station_N, station_E, station_z,
Tp_correction, Ts_correctionは
引数pick_dataのメンバdata_sに基づいて設定される。
Members stationCode, station_N, station_E,
station_z, Tp_correction, and Ts_correction
of a struct win_pick_data-type structure
are determined based on
member data_s of argument pick_data.
P波の読み取り値に関係するメンバの値は以下のように設定する。
The values of members related to the picked P-wave arrival time
are determined as follows.
引数pick_dataのメンバdata_sの
現在処理中の観測点に対応する配列要素(struct win_pick_s型構造体)
において、メンバP_arrival, P_errorがともに0.001以上であるとき
P波の読み取り値があると判断する。
The P-wave arrival time is regarded to have been picked
at this station if
values greater than or equal to 0.001 are recorded
in the members P_arrival and P_error
of the array component of member data_s
of argument pick_data
corresponding to the currently processed station.
P波の読み取り値がある場合、struct win_pick_data型構造体のメンバ
Tp_given=trueとし、
Tp_sec, Tp_dateTime, Tp_uncertainty, Tp_correction, P_polarityは
引数pick_dataのメンバdata_sに基づいて設定される。
なおpickファイルの「#s」の行に書かれている読み取り値は
trgファイルの先頭からの経過時間ではないが
関数内でtrgファイルの先頭からの経過時間に換算する。
また読み取りに用いたチャンネルコードと成分は
pickファイルの「#p」の行とチャネル表を照合しないと判定できないため
channelCode_Tp=0000、component_Tp=""とする。
If the P-wave arrival time is picked at this station,
the value of member Tp_given
of a struct win_pick_data-type structure
is set as true,
and the values of members
Tp_sec, Tp_dateTime, Tp_uncertainty,
Tp_correction, and P_polarity
are determined based on
member data_s of argument pick_data.
Although the original picked values
in the “#s” lines of a pick file
are not measured from the beginning of a trg file,
they are converted to the elapsed time
from the beginning of a trg file in this function.
The values of members channelCode_Tp and component_Tp
are set as 0000 and "", respectively,
because the channel code and component used for the picks
cannot be determined without refering to
“#p” lines and a channel table.
P波の読み取り値が無い場合、struct win_pick_data型構造体のメンバ
Tp_given=falseとし、
その他のP波読み取り値に関係するメンバの値は設定しない。
If the P-wave arrival time is not picked at this station,
the value of member Tp_given
of a struct win_pick_data-type structure
is set as false,
and the values of the other members
related to the picked P-wave arrival time
are not set.
S波の読み取り値に関係するメンバ
(Ts_given, channelCode_Ts, component_Ts, Ts_sec,
Ts_dateTime, Ts_uncertainty, Ts_correction)
についても同じ要領で設定する。
The values of members related to the picked S-wave arrival time
(Ts_given, channelCode_Ts, component_Ts,
Ts_sec, Ts_dateTime, Ts_uncertainty,
and Ts_correction)
are determined in the same manner.
振動終了時刻の読み取り値に関係するメンバの値は以下のように設定する。
The values of members related to the picked end time of oscillation
are determined as follows.
引数pick_dataのメンバdata_sの
現在処理中の観測点に対応する配列要素(struct win_pick_s型構造体)
において、メンバF_P_timeが0.001以上であるとき
振動終了時刻の読み取り値があると判断する。
The end time of oscillation is regarded to have been picked
at this station if
values greater than or equal to 0.001 are recorded
in the member F_P_time
of the array component of member data_s
of argument pick_data
corresponding to the currently processed station.
振動終了時刻の読み取り値がある場合、struct win_pick_data型構造体のメンバ
Tf_given=trueとし、
Tf_sec, Tf_dateTimeは引数pick_dataのメンバdata_sに基づいて設定される。
なおchannelCode_Tf=0000、component_Tf=""、
Tf_uncertainty=-9999999999.999とする。
If the end time of oscillation is picked at this station,
the value of member Tf_given
of a struct win_pick_data-type structure
is set as true,
and the values of members
Tf_sec and Tf_dateTime are determined based on
member data_s of argument pick_data.
The values of members channelCode_Tf, component_Tf,
and Tf_uncertainty are set as
0000, "", and -9999999999.999, respectively.
振動終了時刻の読み取り値が無い場合、struct win_pick_data型構造体のメンバ
Tf_given=falseとし、
その他の振動終了時刻読み取り値に関係するメンバの値は設定しない。
If the end time of oscillation is not picked at this station,
the value of member Tf_given
of a struct win_pick_data-type structure
is set as false,
and the values of the other members
related to the picked end time of oscillation
are not set.
最大振幅の読み取り値に関係するメンバの値は以下のように設定する。
The values of members related to the picked maximum amplitude
are determined as follows.
引数pick_dataのメンバdata_sの
現在処理中の観測点に対応する配列要素(struct win_pick_s型構造体)
において、メンバmaxAmpが正であるとき
最大振幅の読み取り値があると判断する。
The maximum amplitude is regarded to have been picked
at this station if
a positive value is recorded in the member maxAmp
of the array component of member data_s
of argument pick_data
corresponding to the currently processed station.
最大振幅の読み取り値がある場合、struct win_pick_data型構造体のメンバ
maxAmp_given=trueとし、
maxAmpは引数pick_dataのメンバdata_sに基づいて設定される。
なおchannelCode_maxAmp=0000、component_maxAmp=""、
maxAmp_unit=""とする。
If the maximum amplitude is picked at this station,
the value of member maxAmp_given
of a struct win_pick_data-type structure
is set as true,
and the value of member maxAmp is determined based on
member data_s of argument pick_data.
The values of members channelCode_maxAmp,
component_maxAmp, and maxAmp_unit are set as
0000, "", and "", respectively.
最大振幅の読み取り値が無い場合、struct win_pick_data型構造体のメンバ
maxAmp_given=falseとし、
その他の最大振幅読み取り値に関係するメンバの値は設定しない。
If the maximum amplitude is not picked at this station,
the value of member maxAmp_given
of a struct win_pick_data-type structure
is set as false,
and the values of the other members
related to the picked maximum amplitude are not set.
struct win_pick_data型構造体のメンバ
epicentral_distance, station_azimuth,
emergence_angle, incident_angleは
引数pick_dataのメンバdata_fに基づいて設定される。
Members epicentral_distance, station_azimuth,
emergence_angle, and incident_angle
of a struct win_pick_data-type structure
are determined based on
member data_f of argument pick_data.
struct win_pick_data型構造体のメンバTp_calc, Ts_calcは
引数pick_dataのメンバdata_sから取得したP波・S波到着時刻と観測点補正値、
メンバdata_fから取得した残差値に基づいて計算される。
Members Tp_calc and Ts_calc
of a struct win_pick_data-type structure are calculated
using P- and S-wave arrival times and station corrections
acquired from member data_s and
residuals acquired from member data_f
of argument pick_data.