All Platforms System Requirements

  • Anaconda
  • Make sure anaconda is in your PATH (assuming ananconda is installed in ${HOME}/anaconda)

    export PATH=${HOME}/anaconda/bin:${PATH} # for [ba]sh
    setenv PATH ${HOME}/anaconda/bin:${PATH} # for [t]csh
    

Bypassing firewalls

  • If your institution has a firewall

    conda config --set ssl_verify False
    binstar config --set verify_ssl False # it's not a typo ssl and verify are reversed
    

Installing

  • Run the following command

    # install cmor, it will also install cdms2.
    # ------------------------------------------------
    conda create -n CMOR -c conda-forge -c pcmdi -c uvcdat cmor
    source activate CMOR
    
    # Clone the CMIP6 table to your working directory.
    # ------------------------------------------------
    mkdir CMIP6_work
    cd  CMIP6_work
    
    # Disable SSL verification (firewall only).
    # -----------------------------------------
    export GIT_SSL_NO_VERIFY=true
    git clone https://github.com/PCMDI/cmip6-cmor-tables.git
    
    # Create a softlink of your tables in your working directory.
    # -----------------------------------------------------------
    ln -s cmip6-cmor-tables/Tables .
    
    # Note:
    # -----------------------------------------------------------
    # UDUNITS2_XML_PATH is set automatically by activating CMOR. 
    # export UDUNITS2_XML_PATH=${CONDA_PREFIX}/share/udunits/udunits2.xml
    #
    

Conda environment

  • Create your different CMOR environment with anaconda.

    conda create -n [YOUR_ENV_NAME_HERE] -c conda-forge -c pcmdi -c uvcdat cmor
    source activate [YOUR_ENV_NAME_HERE]
    conda env list 
        
    or 
    
    conda create -n [YOUR_ENV_NAME_HERE] --clone ENV 
    
  • To learn more about conda environments

Tags: