wiki:CDB_Install

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.

  • Edit the BASH cdb_header file in CDB_SOURCE_DIR. Alternatively, these header informations can be simply added to your .bashrc but in this case the file CDB_SOURCE_DIR/cdb_header should be emptied. 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. A small collection of diagnostics is included in the main package.