Technical Guide of a Regional Climate Information System

Page 34

C H > cd /datos > mkdir MM5 > tar -xvzf TERRAIN.TAR.gz

A

P

T

E R

III

9. Now we proceed to compile:

(clearly this file MUST be in

this directory) 7. Verify if the libg2c library is installed If the libg2c library is not installed, proceed to install it now. If it has a different name, create the symbolic link. Note: This library can be downloaded online, it is also available in the gfortran. For instance, in Aquila@cmc.org.ve: Another way: you can download it from: http://www.cmc. org.ve/descargas/libg2c.so [root@Aquila TERRAIN]# find “*libg2c*” This search the library

/usr

¬name

/usr/local/matlab/sys/os/glnx86/libg2c.so.0 /usr/local/matlab/sys/os/glnx86/libg2c.so.0.0.0 /usr/lib/libg2c.so.0 /usr/lib/gcc/i386¬redhat¬linux/3.4.3/libg2c.so /usr/lib/gcc/i386¬redhat¬linux/3.4.3/libg2c.a /usr/lib/libg2c.a /usr/lib/libg2c.so.0.0.0 [root@Aquila TERRAIN]# ln -¬s /usr/lib/gcc/ i386¬redhat¬linux/3.4.3/libg2c.so /usr/lib/libg2c. so

Place it in /usr/lib and perform an additional symbolic link as follows: > ln -s /usr/lib/libg2c.so /usr/lib/libg2c.so.0

8. Edit the TERRAIN Makefile Find the line that corresponds to the intel compiler and modify the PATH to lg2c: > vi Makefile > /intel This finds the appearance of the word after the

slash. The paragraph should be as follows: intel: echo “Compiling for Linux using INTEL compiler” ( $(CD) src ; $(MAKE) all \ “RM = $(RM)” “RM_LIST = $(RM_LIST)” \ “LN = $(LN)” “MACH = SGI” \ “MAKE = $(MAKE)” “CPP = / lib/cpp” \ “CPPFLAGS = -I. C traditional D$(NCARGRAPHICS) “ \ “FC = ifort “ “FCFLAGS = -I. -w90-w95-convert big_endian “\ “LDOPTIONS = -i_dynamic” “CFLAGS = -I. “\ “LOCAL_LIBRARIES=-L$(NCARG_ROOT)/lib -L/usr/X11R6/ lib -lncarg -lncarg_gks-lncarg_c-lX11-L/usr/lib -lg2c” ) ; \ ( $(RM) terrain.exe ; $(LN) src/terrain.exe.) ;

> make intel > make terrain.deck

10. Download the necessary data for TERRAIN as follows and decompress it > cd /datos/MM5/DATOS > wget ftp://ftp.ucar.edu/mesouser/MM5V3/TERRAIN_ DATA/* > ls-1 > gunzip *.gz > tar-xvf archivo.TAR

10.1. Modify terrain.deck.intel > vi terrain.deck.intel

And modify: > > > >

set ftpdata = false Set the following for ftp ’ in g30 sec elevation data from USGS ftp site set Where30sTer = /mnt/data/terrain_data

The result should be as follows: #set ftpdata =true set ftpdata = false #set Where30sTer = ftp set Where30sTer = /datos/MM5data/DATOS

Then proceed to link: > ln -s /datos/MM5data/DATOS/* TERRAIN/Data/

11. Compile TERRAIN again and run > make terrain.deck > ./terrain.deck.intel

Note: This compiles the code again. When finished, log into terrain.print.out and make sure the two last lines show: > tail 2 terrain.print.out

If the process is correct, at the end of the run this should appear: == NORMAL TERMINATION OF TERRAIN PROGRAM == 99999

Then write idt TER.PLT

12. Create a download folder for “TERRAIN DATA” Download from there as needed. $cd $LOQUESEA/mm5 $mkdir DATOSls $ cd DATOS $ wget ftp://ftp.ucar.edu/mesouser/MM5V3/TERRAIN_ DATA/* INTERNATIONAL RESEARCH CENTRE ON EL NIÑO - CIIFEN

133


Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.