星期一, 1月 30, 2012

編譯 ncview


一直以來,都用 fortran 配合 GMT畫模式輸出結果的圖,其實已經很方便了,不過常常還是要改一下script。有時候只想非常快速的看一下結果,(完全不重品質),其實 ncview 算是不錯的軟體。下面是其安裝步驟:

安裝 udunits
export F77=ifort
./configure --prefix=/usr/local/udunits
make
make check
make install
make install-html install-pdf


安裝 ncview 除udunits外,至少需要下面的套件
yum install libXaw-devel.x86_64
yum install libXmu-devel.x86_64
yum install libpng-devel.x86_64
./configure --prefix=/usr/local/ncview --with-udunits2_incdir=/usr/local/udunits/include --with-udunits2_libdir=/usr/local/udunits/lib
make
make install