ココ 参照. (← 本家のページ)
少なくとも倍精度実数のデータは読めない.
整数のバイナリは経験値ゼロ
.
NetCDF なども使えるらしいが,これまた
経験値ゼロ.
real,dimension(im,jm,km) :: u,v,h … do k=1,km write(20) u(:,:,k) enddo do k=1,km write(20) v(:,:,k) enddo do k=1,km write(20) e(:,:,k) enddo …
データセットの名前,グリッド情報,表示時に使用する変数名
などを記述しておくファイル.
1つのデータセットに対し1つのコントロールファイルが必要.
DSET ./test.data UNDEF -1.e+10 TITLE sample data * XDEF 401 LINEAR 120 0.2 * YDEF 201 LINEAR 10 0.2 * ZDEF 2 LINEAR 1 1 * TDEF 36 LINEAR 10JAN2001 10dy * VARS 3 u 2 99 zonal velocity (m/sec) v 2 99 meridional velocity (m/sec) e 2 99 SSH and interface displacement (m) ENDVARS
[teng@poseidon teng]$ grads [enter]
[teng@poseidon teng]$ grads [enter] Grid Analysis and Display System (GrADS) Version 1.7mf Copyright (c) 1988-1997 by Brian Doty Center for Ocean-Land-Atmosphere Studies Institute for Global Environment and Society All Rights Reserved Config: v1.7mf 32-bit little-endian readline sdf/xdf hdf-sds lats athena im/image-output Issue 'q config' command for more information. Landscape mode? (no for portrait): [enter]
open <コントロールファイル名>
ga-> open test.ctl [enter]
set gxout <表示形式>
ga-> set gxout contour [enter]
d <変数>
ga-> d u [enter]
ハードコピーを
メタファイル(*.gmf)
と呼ばれるファイルへ出力し,
このファイルから PS 形式のファイルを作成する.
(JPEG や GIF 形式にするときは wi コマンドを使用する.)
ga-> enable print test.gmf [enter] ga-> d u [enter] ga-> print [enter] ga-> c [enter] ga-> disable print [enter]
ga-> quit [enter]
TeX などに絵を取り込むのにはメタファイルを PostScript (PS)
ファイル等へ変換すると良い.Unix のコマンドが用意されている.
[teng@poseidon teng]$ gxps -i test.gmf -o test.ps [enter]
GrADS とは? |
はじめの一歩 |
長所 |
短所 |
リンク
座学編
index
EP NetFaN index
Last modified July 5, 2002 by SAKAMOTO,Takashi