関数reformat_win_pick マニュアル

(The documentation of function reformat_win_pick)

Last Update: 2025/7/31


◆機能・用途(Purpose)

pickファイルから読み込んだデータを扱いやすいように整形する。
Reformat a pick data to be more easily treatable.


◆形式(Format)

#include <win/pick.h>
inline void reformat_win_pick
(struct win_pick ∗pick_data,
 const struct win_channelTable channelTable)


◆引数(Arguments)

pick_data 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.
channelTable チャンネルテーブルのデータ。 pickファイルから読み込んだ「#p」の行に書かれているチャンネルコードと 「#s」の行に書かれている観測点コードを関係付けるために用いられる。
A channel table data, used to relate channel codes in the lines beginning with “#p” and station codes in the lines beginning with “#s” of a pick file.


◆動作(Behaviour)

引数pick_dataで与えた構造体のメンバNstations, dataの値を設定する。
Set the values of members Nstations and data of the structure given by argument pick_data.


◆使用例(Example)

struct win_pick pick_data =read_win_pickfile("./picks/man/2506/250623.012345.012");

struct win_channelTable channelTable =win_readChannelTable("channels.tbl");

reformat_win_pick(&pick_data,channelTable);