Set up Java in CentOS 7

I have long been interested in Android application development, but I have not studied Java before. I was told that I can run Java on Windows using NetBeans, but now I would like to get this done on Linux, as in Linux world I can use my favorite VI, and not bothered with bulky IDE.

By default CentOS 7 has some version of Jave installed. I tried it, and while I was able to use javac to create class file, I was not lucky in running java. So I decided to switch to Sun Java. Continue reading

Installing WRF on CentOS 7

WRF (Weather Research and Forecasting) is a powerful numerical simulation tool in atmospheric science. It is maintained by UCAR, and has been under continuous development. There has been a lot of official (ARW user guide)/ unofficial installation guides, but not so much information for CentOS 7 system. There are some minor differences in CentOS 7 that we have to configure manually. This, however, is pretty straightforward if you are familiar with Linux. Here I will show how to set up the basic dependencies, and how to compile WRF, as well as the related WPS and RIP4. Also here I will give out the steps for GNU compiler installation and Intel compiler installation.

Continue reading

Climate Data Operator (CDO) installation on Linux

CDO (Climate Data Operator) is a powerful tool for handling NetCDF files. It is also able to process other formats like HDF5, GRIB2, and so on. In my research (WRF) I only use NetCDF format, so here I install CDO only with NetCDF support.

1. Get the latest version of CDO

Go to the official website of CDO, and download whatever version is there. By the time I am writing this post, the newest version is 1.6.8.

$ wget code.zmaw.de/attachments/download/10030/cdo-1.6.8.tar.gz
$ tar -zxf cdo-1.6.8.tar.gz
$ cd cdo-1.6.8

Continue reading

Software installation in CentOS 7 for scientific computation

I am recently setting up a Linux workstation in my lab, for my WRF simulation. Also, this workstation is used as my main processing powerhouse, so I am installing other useful tools that I have used, or I plan to learn/use in the near future.

I have been using Ubuntu before, so I am pretty familiar with “apt-get” manager and the software names in this system. But now with consideration for system stability, I am switching to CentOS. I installed CentOS 7.0 on the machine, and the installation below is based on it. Sometimes the software libraries are slightly different for different versions/distributions of Linux. For example, I can use “apt-get install acroread” to install Adobe Reader in Ubuntu 12.04, but up to now I have not been able to makeĀ it in Ubuntu 14.04. So if any of the following command does not work for you, please find other approaches, or just compile it from the source code. Please keep in mind that nothing is impossible in Linux world. Now let’s get started.
Continue reading