Article View: fj.sys.mac
Article #52085Re: Igorの達人に伺います
From: Mamoru Yamanishi
Date: Tue, 01 Oct 1996 00:00
Date: Tue, 01 Oct 1996 00:00
49 lines
1921 bytes
1921 bytes
> WaveMatricsから発売されているIgorは、
>
> あるフォルダの中の、幾つもあるテキストデータファイルを自動的に、順に開い
て
> データを読み込ませる事が出来るのでしょうか?
簡単にできます。
但し、そのテキストデーターが特殊な形式(ヘッダー情報を持っていたりする)だ
と、
マクロを組むか、XOPやFilterDesignLabなんかを使って読み込み用のフィルターを
作る必要があるかもしれません。
読み込むだけなら、例えばタブ区切りファイルを読むときは、
Macro ReadAll()
PauseUpdate; Silent 1
variable index=0
string fileName
NewPath/Q/O files
PathInfo files
SetCurrentPath path=files
Printf "Selected Path=\"%s\"\r", S_Path
do
fileName=IndexedFile(files,index,"TEXT")
if (strlen(fileName)>0)
printf "Found: \"%s\"\r",fileName
LoadWave/J/A=wave/P=files/K=0 fileName
printf "\tLoad: \"%s\"\r",S_waveNames
index+=1
endif
while (strlen(fileName)>0)
Printf "Total %d files found\r", index
End
てなものが考えられます。(バージョンによっては多少の変更が必要かも)
もっと良い方法はたくさんありますが。
--
Mamoru Yamanishi
<yama@radical.biotech.okayama-u.ac.jp,
YAMA24.GCG@applelink.apple.com>
Technical Details
Message-ID:
<yama-0110961010000001@radical.biotech.okayama-u.ac.jp>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<hiroyama-3009961832420001@mserver.jrcat.or.jp>Show Full Headers
Complete Article Headers
X-Google-Language: Japanese,JIS X-Google-Thread: f514d,228b8662b143da1 X-Google-Attributes: gidf514d,public From: yama@radical.biotech.okayama-u.ac.jp (Mamoru Yamanishi) Subject: Re: Igorの達人に伺います Date: 1996/10/01 Message-ID: <yama-0110961010000001@radical.biotech.okayama-u.ac.jp> X-Deja-AN: 187513094 sender: news@plasma.elec.okayama-u.ac.jp references: <hiroyama-3009961832420001@mserver.jrcat.or.jp> x-forwarded: by - (DeleGate/3.0.9) content-type: text/plain; charset=iso-2022-jp organization: Okayama University mime-version: 1.0 newsgroups: fj.sys.mac