UBUNTU Bazý yazýlým ve kütüphanelerin kurulumu mkdir library cd ~/library sudo apt-get install gcc gcc-c++ gcc-gfortran sudo apt-get install m4 sudo apt-get install gawk sudo apt-get install build-essential sudo nano ~/.bashrc export DIR=home/havakalite/library export CC=gcc export CXX=g++ export FC=gfortran export FCFLAGS=-m64 export F77=gfortran export FFLAGS=-m64 **** zlib cd ~/library wget http://www.aoddy.com/wp-content/uploads/2014/09/zlib-1.2.8.tar.gz tar xzvf zlib-1.2.8.tar.gz cd zlib-1.2.8/ ./configure --prefix=/home/havakalite/library/zlib-1.2.8 make test make install sudo nano ~/.bashrc export zlib=/home/havakalite/library/zlib-1.2.8 source nano ~/.bashrc ***** Jasper cd ~/library wget http://www2.mmm.ucar.edu/wrf/OnLineTutorial/compile_tutorial/tar_files/jasper-1.900.1.tar.gz tar xzvf jasper-1.900.1.tar.gz cd jasper-1.900.1 ./configure --prefix=/home/havakalite/library/jasper-1.900.1 make make check make installnan sudo ~/.bashrc export jasper=/home/havakalite/library/jasper-1.900.1 export JASPERLIB=/home/havakalite/library/jasper-1.900.1/lib export JASPERINC=/home/havakalite/library/jasper-1.900.1/include source nano ~/.bashrc **** HDF5 cd ~/library wget http://www.aoddy.com/wp-content/uploads/2014/09/hdf5-1.8.12.tar.gz tar xzvf hdf5-1.8.12.tar.gz cd hdf5-1.8.12 ./configure --prefix=/home/havakalite/library/hdf5-1.8.12 --enable-fortran --enable-cxx --with-zlib=/home/havakalite/library/zlib-1.2.8 make make test make install make check-install sudo nano ~/.bashrc export HDF5=/home/havakalite/library/hdf5-1.8.12 source nano ~/.bashrc *****mpich-3.1.4 cd ~/library wget http://www.mpich.org/static/downloads/3.1.4/mpich-3.1.4.tar.gz tar xzvf mpich-3.1.4.tar.gz cd mpich-3.1.4/ ./configure --prefix=/home/havakalite/library/mpich-3.1.4 make make install sudo nano ~/.bashrc PATH=/home/havakalite/library/mpich.3.1.4/bin:$PATH;export PATH ***openmpi cd ~/library wget http://www.open-mpi.org/software/ompi/v1.10/downloads/openmpi-1.10.0.tar.gz sudo apt-get install libibnetdisc-dev tar xzvf openmpi-1.10.0.tar.gz cd openmpi-1.10.0 ./configure CC=gcc CXX=g++ F77=$COMPILO FC=$COMPILO --prefix=/home/havakalite/library/openmpi.1.10.0-$COMPILO --with-mpi-f90-size=medium make all make install sudo nano ~/.bashrc export LD_LIBRARY_PATH="/home/havakalite/library/openmpi.1.10.0/lib/" *****CURL cd ~/library wget http://curl.haxx.se/download/curl-7.44.0.tar.gz tar xzvf curl-7.44.0.tar.gz cd curl-7.44.0/ ./configure --prefix=/home/havakalite/library/curl.7.44.0 make test make install **** NetCDF4.3.2 cd ~/library wget ftp://ftp.unidata.ucar.edu/pub/netcdf/netcdf-4.3.3.1.tar.gz tar xzvf netcdf-4.3.3.1.tar.gz sudo nano ~/.bashrc export CPPFLAGS="-I/home/havakalite/library/hdf5-1.8.12/include -I/home/havakalite/library/zlib-1.2.8/include -I/home/havakalite/library/netcdf.4.3.3.1/include" export LDFLAGS="-L/home/havakalite/library/hdf5-1.8.12/lib -L/home/havakalite/library/zlib-1.2.8/lib -L/home/havakalite/library/netcdf.4.3.3.1/lib" export LD_LIBRARY_PATH="/home/havakalite/library/hdf5-1.8.12/lib /home/havakalite/library/zlib-1.2.8/lib /home/havakalite/library/netcdf.4.3.3.1/lib" source ~/.bashrc mkdir netcdf.4.3.3.1/ cd netcdf-4.3.3.1/ ./configure --prefix=/home/havakalite/library/netcdf.4.3.3.1 FC=gfortran F77=gfortran CC=gcc --enable-shared make make check make install sudo ~/.bashrc export NetCDF=/home/havakalite/library/netcdf.4.3.3.1 export NETCDF_LIB=/home/havakalite/library/netcdf.4.3.3.1/lib export NETCDF_INC=/home/havakalite/library/netcdf.4.3.3.1/include **** netcdf-cxx4-4 cd ~/library wget ftp://ftp.unidata.ucar.edu/pub/netcdf/netcdf-cxx-4.2.tar.gz tar xzvf netcdf-cxx-4.2.tar.gz cd netcdf-cxx-4.2 ./configure --prefix=/home/havakalite/library/netcdf.4.3.3.1 FC=gfortran F77=gfortran CC=gcc --enable-shared 2>&1 | tee configure.log make make check make install *** netcdf-fortran-4. cd ~/library wget ftp://ftp.unidata.ucar.edu/pub/netcdf/netcdf-fortran-4.4.2.tar.gz tar xzvf netcdf-fortran-4.4.2.tar.gz cd netcdf-fortran-4.4.2 ./configure --prefix=/home/havakalite/library/netcdf.4.3.3.1 FC=gfortran F77=gfortran CC=gcc --enable-shared 2>&1 | tee configure.log make make check make install *** libpng cd ~/library wget http://www.aoddy.com/wp-content/uploads/2014/09/libpng-1.6.12.tar.gz tar xzvf libpng-1.6.12.tar.gz cd libpng-1.6.12 ./configure --prefix=/home/havakalite/library/libpng-1.6.12 make make check make install sudo ~/.bashrc export libpng=/home/havakalite/library/libpng-1.6.12 Step#11 : Install burf cd ~/library wget http://www.aoddy.com/wp-content/uploads/2014/09/bufr.tar.gz tar xvfz bufr.tar.gz cd bufr gcc -c *.c gfortran -c -DUNDERSCORE *.f ar -ru libbufr.a *.o nano ~/.bashrc export BUFR=/home/havakalite/library/bufr ****gribapi cd ~/library wget https://launchpad.net/ubuntu/+archive/primary/+files/grib-api_1.13.1.orig.tar.gz tar xzvf grib-api_1.13.1.orig.tar.gz cd grib_api-1.13.1/ ./configure --prefix=/home/havakalite/library/grib_api.1.13.1/ make make check make install export WRFIO_NCD_LARGE_FILE_SUPPORT=1 Step#13 : cd ~/Build_WRF ./configure ./compile em_real 2>&1 | tee compile.log ################ ARWpost Kurulumunda configure.arwp dosyasýnda CPP = /lib/cpp -C -P -traditional bunu CPP = /lib/cpp -P -traditional ve src/Makefile dosyasýnda ARWpost.exe: $(OBJS) $(FC) $(FFLAGS) $(LDFLAGS) -o $@ $(OBJS) \ -L$(NETCDF)/lib -I$(NETCDF)/include –lnetcdf sonuna bir f daha eklenecek -L$(NETCDF)/lib -I$(NETCDF)/include –lnetcdff daha fazla bilgi icin https://github.com/Toberumono/WRF-Setup-Script ************************************************************ ******************* Kurulum2 ******************************* ************************************************************ export DIR='~/Build_WRF/LIBRARIES' export CC='gcc' export CXX='g++' export FC='gfortran' export FCFLAGS='-m64' export F77='gfortran' export FFLAGS='-m64' export PATH=~/Build_WRF/LIBRARIES/netcdf/bin:$PATH export NETCDF=~/Build_WRF/LIBRARIES/netcdf export PATH=~/Build_WRF/LIBRARIES/mpich/bin:$PATH export LDFLAGS="-L/home/havakalite/Build_WRF/LIBRARIES/grib2/lib" export CPPFLAGS="-I/home/havakalite/Build_WRF/LIBRARIES/grib2/include" http://www2.mmm.ucar.edu/wrf/OnLineTutorial/compilation_tutorial.php#STEP3 cd Build_WRF mkdir LIBRARIES mpich-3.0.4 netcdf-4.1.3 Jasper-1.900.1 libpng-1.2.50 zlib-1.2.7 sudo nano ~/.bashrc export DIR='home/havakalite/Build_WRF/LIBRARIES' export CC='gcc' export CXX='g++' export FC='gfortran' export FCFLAGS='-m64' export F77='gfortran' export FFLAGS='-m64' source nano ~/.bashrc cd /home/havakalite/Build_WRF/LIBRARIES ***NETCDF tar xzvf netcdf-4.1.3.tar.gz #or just .tar if no .gz present cd netcdf-4.1.3 ./configure --prefix=$DIR/netcdf --disable-dap --disable-netcdf-4 --disable-shared make make install sudo nano ~/.bashrc export PATH=$DIR/netcdf/bin:$PATH export NETCDF=$DIR/netcdf source nano ~/.bashrc ***MPICH cd /home/havakalite/Build_WRF/LIBRARIES tar -xzvf mpich-3.0.4.tar.gz #or just .tar if no .gz present cd mpich-3.0.4 ./configure --prefix=$DIR/mpich make make install sudo nano ~/.bashrc export PATH=$DIR/mpich/bin:$PATH source nano ~/.bashrc ***zlib: sudo nano ~/.bashrc export LDFLAGS=-L$DIR/grib2/lib export CPPFLAGS=-I$DIR/grib2/include source nano ~/.bashrc cd /home/havakalite/Build_WRF/LIBRARIES tar -xzvf zlib-1.2.7.tar.gz #or just .tar if no .gz present cd zlib-1.2.7 ./configure --prefix=$DIR/grib2 make make install ***libpng: cd /home/havakalite/Build_WRF/LIBRARIES tar -xzvf libpng-1.2.50.tar.gz #or just .tar if no .gz present cd libpng-1.2.50 ./configure --prefix=$DIR/grib2 make make install ***JasPer: cd /home/havakalite/Build_WRF/LIBRARIES tar -zxvf jasper-1.900.1.tar.gz #or just .tar if no .gz present cd jasper-1.900.1 ./configure --prefix=$DIR/grib2 make make install cd /home/havakalite/Build_WRF/LIBRARIES ***WRFV3 tar -zxvf WRFV3.8.TAR.gz cd WRFV3 ./configure # 33 smpar ./compile em_real >& compile.log & # yarim saat kadar surebilir tail -f compile.log ls -ls main/*.exe wrf.exe (model executable) real.exe (real data initialization) ndown.exe (one-way nesting) tc.exe (for tc bogusing--serial only) If you compiled an idealized case, you should see: wrf.exe (model executable) ideal.exe (ideal case initialization) These executables are linked to 2 different directories: WRFV3/run WRFV3/test/em_real You can choose to run WRF from either directory. Go to top of page Building WPS After the WRF model is built, the next step is building the WPS program (if you plan to run real cases, as opposed to idealized cases). The WRF model MUST be properly built prior to trying to build the WPS programs. Below is a tar file containing the WPS source code. Download that file and unpack it in the Build_WRF directory: WPSV3.7 gunzip WPSV3.7.TAR.gz tar -xf WPSV3.7.TAR Go into the WPS directory: cd WPS Similar to the WRF model, make sure the WPS directory is clean, by issuing: ./clean The next step is to configure WPS, however, you first need to set some paths for the ungrib libraries: export JASPERLIB $DIR/grib2/lib export JASPERINC $DIR/grib2/include and then you can configure: ./configure You should be given a list of various options for compiler types, whether to compile in serial or parallel, and whether to compile ungrib with GRIB2 capability. Unless you plan to create extremely large domains, it is recommended to compile WPS in serial mode, regardless of whether you compiled WRFV3 in parallel. It is also recommended that you choose a GRIB2 option (make sure you do not choose one that states "NO_GRIB2"). You may choose a non-grib2 option, but most data is now in grib2 format, so it is best to choose this option. You can still run grib1 data when you have built with grib2. Choose the option that lists a compiler to match what you used to compile WRFV3, serial, and grib2. **Note: The option number will likely be different than the number you chose to compile WRFV3 the metgrid.exe and geogrid.exe programs rely on the WRF model's I/O libraries. There is a line in the configure.wps file that directs the WPS build system to the location of the I/O libraries from the WRF model: WRF_DIR = ../WRFV3 Above is the default setting. As long as the name of the WRF model's top-level directory is "WRFV3" and the WPS and WRFV3 directories are at the same level (which they should be if you have followed exactly as instructed on this page so far), then the existing default setting is correct and there is no need to change it. If it is not correct, you must modify the configure file and then save the changes before compiling. You can now compile WPS: ./compile >& log.compile Compilation should only take a few minutes. If the compilation is successful, there should be 3 main executables in the WPS top-level directory: geogrid.exe ungrib.exe metgrid.exe Verify that they are not zero-sized. To see file size, you can type: ls -ls *.exe tar -xf geog.tar mv geog WPS_GEOG ****************************************** **** Kurulum 3 *************************** ****************************************** https://www.youtube.com/watch?v=_9lBM4k7HQc **** Temel Yazilimlar sudo apt-get install csh sudo apt-get install gcc gcc-c++ gcc-gfortran sudo apt-get install gfortran sudo apt-get install m4 sudo apt-get install gawk sudo apt-get install build-essential which mpich which gcc which mpich which cpp which gcc gcc --version sudo updatedb sudo nano ~/.bashrc export DIR=/home/havakalite/Build_WRF/LIBRARIES export CC=gcc export CXX=g++ export FC=gfortran export FCFLAGS=-m64 export F77=gfortran export FFLAGS=-m64 export WRFIO_NCD_LARGE_FILE_SUPPORT=1 export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/mpich/lib source ~/.bashrc ***NETCDF ./configure --prefix=$DIR/netcdf --disable-dap --disable-netcdf-4 --disable-shared make make install sudo nano ~/.bashrc export PATH=$DIR/netcdf/bin:$PATH export NETCDF=$DIR/netcdf source ~/.bashrc tar -zxvf mpich-3.0.4.tar.gz ./configure --prefix=$DIR/mpich make make install sudo nano ~/.bashrc export PATH=$DIR/mpich/bin:$PATH source nano ~/.bashrc cd /home/havakalite/Build_WRF/LIBRARIES sudo nano ~/.bashrc export LDFLAGS=-L$DIR/grib2/lib export CPPFLAGS=-I$DIR/grib2/include source nano ~/.bashrc cd /home/havakalite/Build_WRF/LIBRARIES tar -xzvf zlib-1.2.7.tar.gz #or just .tar if no .gz present cd zlib-1.2.7 ./configure --prefix=$DIR/grib2 make make install cd /home/havakalite/Build_WRF/LIBRARIES tar -xzvf libpng-1.2.50.tar.gz ./configure --prefix=$DIR/grib2 make make install ***JasPer: cd /home/havakalite/Build_WRF/LIBRARIES tar -xzvf jasper-1.900.1.tar.gz #or just .tar if no .gz present cd jasper-1.900.1 ./configure --prefix=$DIR/grib2 make make install sudo nano ~/.bashrc export JASPERLIB=-L$DIR/grib2/lib export JASPERINC=-I$DIR/grib2/include source nano ~/.bashrc *****WRFV3 kurulum cd /home/havakalite/Build_WRF wget http://www2.mmm.ucar.edu/wrf/src/WRFV3.8.TAR.gz tar -zxvf WRFV3.8.tar.gz cd WRFV3/ ./configure 34 1 ./compile >& log.compile & cd .. wget http://www2.mmm.ucar.edu/wrf/src/WPSV3.8.TAR.gz tar -zxvf WPSV3.8.tar.gz cd WPS ./clean ./compile 1 **************************************** ln -sf geogrid/GEOGRID.TBL.ARW GEOGRID.TBL ln -sf ungrib/Variable_Tables/Vtable.GFS Vtable