Monday, November 21, 2016

主题阅读和写作

这个学期上老板的seminar课,对如何针对一个专题进行学习更有体会了。我突然意识到这种主题学习方式比被动、泛泛地读书可能来得更加有效。我思考一下这样的流程也许可以实现:

  1. 想出一个话题 (mind map 发散思维)
  2. 快速检索这个话题
    1. Youtube
    2. Ted talk
    3. 知乎、豆瓣上的书籍讨论区
  3. 找出书单、电影单检视阅读
  4. 挑出个别章节、电影深度阅读、观看
  5. 写作(博客、影评)
时间分配上,可以给每一天晚上平均分配时间。(又想起了我的健身和打坐和Jump start,哭死)周六上午是最容易无聊的时间,我应该用来做3、4、5。只可惜我现在连专业的文章和书籍都没有时间读哎。

反正呢,人生不应该虚度。未经过审视的人生不值得活!

Sunday, November 20, 2016

[CDO] CDO installation

Struggling with anaconda cdo, I try to install on my own based on this website: http://www.studytrails.com/blog/install-climate-data-operator-cdo-with-netcdf-grib2-and-hdf5-support/

Packages downloads:
  1. Download CDO from https://code.zmaw.de/projects/cdo/files.
  2. Download NetCDF from http://www.unidata.ucar.edu/downloads/netcdf/index.jsp. Use the C version.
  3. Download Grib API from https://software.ecmwf.int/wiki/display/GRIB/Releases.
  4. Download Jasper from http://www.ece.uvic.ca/~frodo/jasper/#download.
  5. Download HDF5 and zlib from ftp://ftp.unidata.ucar.edu/pub/netcdf/netcdf-4.
Building the programs one by one:
  • Create a directory that will hold the installation libs and include files. In this case, it's DIR=/home/Programs/cdo-1.7.2-install.
  • Install zlib using
  1. ./configure –prefix=$DIR
  2.  ‘make’, ‘make check’ and ‘make install’
  1. ./configure –with-zlib=$DIR –prefix=$DIR CFLAGS=-fPIC --enable-shared --enable-hl --enable-threadsafe --enable-unsupported
  2. ‘make’, ‘make check’ and ‘make install’
  1. CPPFLAGS=-I/DIR/include LDFLAGS=-L/DIR/lib ./configure –prefix=DIR CFLAGS=-fPIC
  2. ‘make’, ‘make check’ and ‘make install’ 
  • Install Jasper using
  1. ./configure –prefix=DIR  CFLAGS=-fPIC
  2. ‘make’, ‘make check’ and ‘make install’
  • Install grib using
  1. ./configure –prefix=DIR CFLAGS=-fPIC  –with-netcdf=DIR –with-jasper=DIR
  2. ‘make’, ‘make check’ and ‘make install’
  • Install cdo using
  1. ./configure -prefix=DIR CFLAGS=-fPIC -with-netcdf=DIR -with-jasper=DIR -with-hdf5=DIR -with-grib_api=DIR
  2. ‘make’, ‘make check’ and ‘make install’
 FINALLY, write DIR/bin to alias to call cdo globally