工作上接觸Outgoing Longwave Radiation (OLR)資料,
需要安裝CDO (Climate Data Operators) 套件作資料的轉檔,
剛好OS是CentOS7 (CentOS Linux release 7.5.1804 )故以下這篇超有幫助,
自己blog備份,以免屆時連接失效,
另外撰文此時最新版cdo-1.9.4.tar.gz, 但是make 有error message沒過
降版本cdo-1.9.0.tar.gz 就ok!
##########################################
https://www.esrl.noaa.gov/psd/data/gridded/data.interp_OLR.html
CDO -
Climate Data Operator is a tool developed for perform various operation
on Climate and NWP model output data. It can handle netCDF, HDF5, GRIB
1/2 with compression. It is a very efficient tool work with large
dataset found in a climate model for its simplicity and speed. I wish to
write some tutorials on working with CDO, however this one only covers
the installation of CDO in CentOS 7 system.
To install the basic packages, I will use Yum package manager. First install the netCDF, HDF5 packages as follows -
# yum install nco netcdf netcdf-devel hdf hdf-devel hdf5 hdf5-devel
You can see I have also installed nco, for my convenience actually. If you are not already familiar to nco, please see here.
Now downloading and installing the cdo. Use following commands, hope they will make sense :)
~ wget -c wget -c https://code.zmaw.de/attachments/download/13525/cdo-current.tar.gz
~ tar -xvzf cdo-current.tar.gz
~ cd
~ ./configure --with-netcdf=/usr --with-hdf5=/usr
~ make
~ sudo make install
Here, is
the folder you get after extraction. It depends on the current version.
This should install cdo in your system, and you can access the command
by simply typing cdo in the terminal. Let me know if you have any
problem.
Happy CDOing :-)
To install the basic packages, I will use Yum package manager. First install the netCDF, HDF5 packages as follows -
# yum install nco netcdf netcdf-devel hdf hdf-devel hdf5 hdf5-devel
You can see I have also installed nco, for my convenience actually. If you are not already familiar to nco, please see here.
Now downloading and installing the cdo. Use following commands, hope they will make sense :)
~ wget -c wget -c https://code.zmaw.de/attachments/download/13525/cdo-current.tar.gz
~ tar -xvzf cdo-current.tar.gz
~ cd
~ ./configure --with-netcdf=/usr --with-hdf5=/usr
~ make
~ sudo make install
Here,
Happy CDOing :-)
沒有留言:
張貼留言