Changes between Version 3 and Version 4 of PackageCedaccInstall/ExampleInstalls


Ignore:
Timestamp:
24/03/15 22:06:35 (5 years ago)
Author:
astephen
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • PackageCedaccInstall/ExampleInstalls

    v3 v4  
    77The purpose of this page is to capture any installation issues outside the normal instructions. It is split by Institute so that users from each Institute can refer to instructions generated by their colleagues who have installed the tool. 
    88 
    9 == Met Office Installation == 
     9== 1. JASMIN installation == 
     10 
     11The current ceda-cc version running on JASMIN is installed in the {{{ /apps/contrib/ceda/ceda-cc }}} directory. This directory is visible across the following: 
     12 
     13 * {{{jasmin-sci[12].ceda.ac.uk}}} 
     14 * {{{cems-sci1.cems.rl.ac.uk}}} 
     15 * All LOTUS nodes 
     16 
     17The following dependencies are already available on the above servers: 
     18 
     19 * Python2.7 
     20 * Using python-netcdf4 (i.e. {{{import netCDF4}}}) to interface to files. 
     21 * Installation tools: virtualenv and pip 
     22 * Location of installation: Any directory (within a virtual environment created by running: {{{virtualenv-2.7}}}). 
     23 
     24{{{ 
     25# Create, and enter, a directory in which to install the package 
     26$ cd /apps/contrib/ceda/ 
     27$ mkdir cedacc 
     28$ cd cedacc/ 
     29 
     30# Set up a virtualenv (to install the python libraries) called "venv" 
     31# The argument "--system-site-packages" will pick up the installations of libraries such as "netCDF4" from the main python installation. 
     32$ virtualenv-2.7 --system-site-packages venv 
     33 
     34# Activate the virtualenv: This means that the PATH and PYTHONPATH will point to the appropriate commands/libraries under the "venv" directory. 
     35$ . venv/bin/activate 
     36 
     37# Check that your $http_proxy and $https_proxy environment variables are set to: 
     38$ export http_proxy=http://wwwcache.rl.ac.uk:8080 
     39$ export https_proxy=https://wwwcache.rl.ac.uk:8080 
     40 
     41# Install the CEDA-CC package using pip 
     42$ pip install ceda-cc 
     43}}} 
     44 
     45CEDA-CC relies on a configuration directory that contains specifications and vocabularies for each project. If you want a copy of this directory locally, e.g. in {{{config_dir}}} you can run: 
     46 
     47{{{ 
     48$ ceda-cc --copy-config config_dir 
     49Configuration directory copied to config_dir.  Set CC_CONFIG_DIR to use this configuration. 
     50}}} 
     51 
     52You should set the environment variable to make sure that this directory is used. 
     53 
     54{{{ 
     55$ export CC_CONFIG_DIR=$PWD/config_dir 
     56}}} 
     57 
     58'''You can then test a file with...''' 
     59 
     60{{{ 
     61$ ceda-cc -p CMIP5 --ld cmip5_logs -f /badc/cmip5/data/cmip5/output1/MOHC/HadGEM2-ES/rcp45/mon/land/Lmon/r1i1p1/v20111128/mrso/mrso_Lmon_HadGEM2-ES_rcp45_r1i1p1_224912-227411.nc 
     621 files, ['Lmon'] 
     63Error count 0 
     64}}} 
     65 
     66== 2. Met Office Installation == 
    1067 
    1168These instructions should get you started with running '''ceda-cc''' on the Linux environment at the Met Office: 
     
    59116 
    60117 
     118 
     119