関数read_array_station_info マニュアル

(The documentation of function read_array_station_info)

Last Update: 2025/8/7


◆機能・用途(Purpose)

観測点情報をファイルからstruct array_station_info型構造体に読み込む。
Read station information from a file to a struct array_station_info-type structure.


◆形式(Format)

#include <array/station_info.h>
inline struct array_station_info read_array_station_info
(const char ∗station_list_file)


◆引数(Arguments)

station_list_file 観測点情報ファイル名。 1行につき1観測点の観測点名、\(x\)座標、\(y\)座標、\(z\)座標を タブで区切って書き並べたリストファイルを与える。 空行、#から始まる行、各行の#から後の部分はコメントとして無視されるので 自由に書いて良い。
The file name of the station information, given as the station name, \(x\)-, \(y\)-, and \(z\)-coordinates of a station, separated by tabs, in each line. Empty lines, lines beginning with #, and comments after # in each line can be inserted freely.


◆戻り値(Return value)

引数station_list_fileで指定したファイルから読み込んだ観測点情報。
The station information read from the file specified by the argument station_list_file.


◆使用例(Example)

struct array_station_info stations=read_array_station_info("stations.dat");