wiki:CDB_Install

Version 18 (modified by lalibert, 8 years ago) (diff)

--

Installing the CDB

Prerequisite

Downloading the package

  • The main development package can be retrieved from the subversion repository:
    svn checkout http://proj.badc.rl.ac.uk/svn/exarch/CDB/trunk 
    
  • A separate diagnostics database is available. It consists of user-contributed scripts:
    svn checkout http://proj.badc.rl.ac.uk/svn/exarch/CDB_diags/trunk 
    

Setting up the environment

  • Unpack the the package in your root directory and add the following line pointing to its location to your .bashrc:
    export CDB_ROOT_DIR="/home/$USER/CDB"
    

If the package is put in another directory, modify this line accordingly.

  • Create a BASH header file. This file should then be placed in in the source directory $CDB_SOURCE_DIR. For example, on CICLAD, the following works well:
    # cdb_header.sh
    # PROGRAMS:
    #
    export CDB_CDO_PATH="/home/$USER/local/cdo/bin"
    export CDB_NCO_PATH="/home/$USER/local/nco/bin"
    export CDB_PYTHON_PATH="/home/$USER/local/bin"
    #
    # DIRECTORIES:
    #
    export CDB_DIAG_DIR="$CDB_ROOT_DIR/diags"
    export CDB_SCRIPT_DIR="$CDB_ROOT_DIR/scripts"
    export CDB_SOURCE_DIR="$CDB_ROOT_DIR/driver"
    
    export CDB_IN_DIR="/data/$USER/CDB/in"
    export CDB_OUT_DIR="/data/$USER/CDB/out"
    export CDB_TEMP_DIR="/data/$USER/CDB/temp/$USER"
    export CDB_DATA_DIR="/prodigfs/esg/CMIP5/merge"
    
  • Finally, put the sample diagnostics in the diagnostics directory CDB_DIAG_DIR.