当前位置: 首页 > 工具软件 > TITAN Script > 使用案例 >

TITAN for Centos install and configure

禄源
2023-12-01

TITAN IN CENTOS

一、(README_LINUX_SETUP

1、软件安装

作为登录shell用户可以用csh或者tcsh默认的是bash

chsh -s bin/tcshxiu(注意首先要安装tcsh

C++ compiler: gcc/g++ 4.2 orlater.(gcc,gcc-c++)

FORTRAN compiler: gfortran (forgrib support).(gcc-gfortran)

libX11-devel (forX)libpng-devel(for CIDD)fftw3-develdevelopment (for radar moments)

bzip2-devel (for NEXRADdecompression)jasper-devel(for grib2)flexqt4-devel(for Qt apps)

glut-devel (for Open GL)Xvfb(virtual X server)gufw(firewall - configure to allow ssh in)(No)sshd(ssh logins)perl

2InstallingNETCDF4

You can get the following packages:

(文件夹中存在)

hdf5-1.8.5-patch1.tar.gz

udunits-2.0.1.tar.gz

netcdf-4.1.1.tar.gz

from the TITAN distribution ftp site:

ftp.rap.ucar.edu/pub/titan/distribution


Or you can download from their official sites:


netcdf:http://www.unidata.ucar.edu/downloads/netcdf/


udunits2:http://www.unidata.ucar.edu/downloads/udunits


hdf5:http://www.hdfgroup.org/HDF5/release

Copy the tar files into /usr/local/src. You should havethe following:


/usr/local/src/hdf5-1.8.5-patch1.tar.gz


/usr/local/src/udunits-2.0.1.tar.gz


/usr/local/src/netcdf-4.1.1.tar.gz

Building HDF5:

--------------

Install this in /usr/local:


cd/usr/local/src


tarxvfz hdf5-1.8.5-patch1.tar.gz


mvhdf5-1.8.5-patch1.tar.gz hdf5-1.8.5-patch1


cdhdf5-1.8.5-patch1


./configure--prefix=/usr/local


makeinstall


Building udunits2:

------------------


Install this in /usr/local


cd/usr/local/src


tarxvfz udunits-2.0.1.tar.gz


mvudunits-2.0.1.tar.gz udunits-2.1.5


cdudunits-2.1.5


./configure--prefix=/usr/local


makeinstall


Building netcdf 4

-----------------

Install this in /usr/local/netcdf4


cdnetcdf-4.1.1


FC=gfortran


exportFC



cd/usr/local/src


tarxvfz netcdf-4.1.1.tar.gz


mvnetcdf-4.1.1.tar.gz netcdf-4.1.1


cdnetcdf-4.1.1


./configure--enable-netcdf-4 -enable-cxx-4 --with-hdf5=/usr/local--prefix=/usr/local/netcdf4 --disable-dap


make


makeinstall


makeclean


Building netcdf 3

-----------------

Install this in /usr/local


cdnetcdf-4.1.1


FC=gfortran


exportFC

cd/usr/local/src


tarxvfz netcdf-4.1.1.tar.gz


mvnetcdf-4.1.1.tar.gz netcdf-4.1.1


cdnetcdf-4.1.1


./configure--prefix=/usr/local --disable-dap


make


makeinstall


makeclean




NOTE: if you do make clean with version 4.1.1, you willget an error on the


subsequent build. You can either ignore the error anduse:

make -k install


or untar the distribution again, and rebuild.

3xiu文件夹下面新建一文件夹titan5(注意shell类型为tcsh

4、在titan5下新建一文件夹data

二、README_BUILD

1、下载src压缩包

2、解压

cd titan5

tarxvfz titan5-20130625src.tgz

The distribution will be unpackedinto a subdirectory:Titan5/titan5-20130625

3. Make the link to the unpacked titan files

cd

rm-rf ~/rap

ln-s ~/titan5/titan5-20130625 rap

4. Install the initial .cshrc file:

cd

cdrap

./install_cshrc

Source the .cshrc file, to update your environment:

source~/.cshrc

5. Set the environment for the build.

Run one of the following:

./set_build_env(the default - assumes 32-bit OS)

./set_build_env -32 (same asdefault)

./set_build_env -64 (64-bit OS)

./set_build_env -32mode (32-bitbuild on 64-bit OS)

6. Run the build script:

./build_titan(这个安装时间好长的)

You can also build the libs and binaries individually:

./build_titan_libs

./build_titan_apps

7. Checking the build

The build checks are run automatically at the end of thebuild script.However, you also can run the checks independently:

To check libs for legacy system:

./check_titan_libs

To check libs for extended system:

./check_titan_libs-ext

To check apps for legacy system:

./check_titan_apps

To check apps for extended system:

./check_titan_apps-ext

8. To clean the build: ./clean_titan_build

三、INSTALLINGTITAN

1. Install TITAN for simple single-radaroperation

This assumes you are reading radar moments data from adata stream which TITAN can read.


(a) Install project


cd~/rap/projects/titan

cdtemplates/template_single_radar/system/scripts

./INSTALL_TITAN

source~/.cshrc

(b) Run test:

start_all

# ........

stop_all

(c) start_CIDD.ops


安装完成之后修改projDir/display里面的6个文件夹,修改路径将display/params 里的CIDD.ops里的Leo_test路径修改为本机路径。


将要运行的1xiu文件夹copyrap/apps/mdv_utils/src里,修改param.cc的vdras,radar的输入路径和输出路径


打开1xiu文件夹右键openin terminal

make,然后执行VdrasMdv -debug -start “20080808 175500” -end “20080808 175500”










 类似资料:

相关阅读

相关文章

相关问答