Prepare python environment - HiroyukiTsujino/JRA55-do GitHub Wiki
In preparation for input4MIPs, data must be CMORized. In this package, this is done using python scripts. We must prepare a python environment with the latest version of CMOR. Following is an example of building an environment using anaconda3 distribution.
- Get Anaconda 3 installer for Linux (Anaconda3-2020.07-Linux-x86_64.sh) from https://www.anaconda.com/products/individual.
- Install Anaconda 3.
$ bash ./Anaconda3-2020.07-Linux-x86_64.sh
- Suppress automatic loading of the basic environment.
$ conda config --set auto_activate_base false
- Add search paths for getting python modules.
$ conda config --apend channels conda-forge $ conda config --get channels # this is to check your search path --add channels 'conda-forge' # lowest priority --add channels 'defaults' # highest priority
- Create a python environment customized for your preference.
$ conda create --name mypy38 python=3.8
- Install necessary packages to use CMOR in your environment (
mypy38
).
$ conda activate mypy38 $ conda install cdms2 $ conda update cdms2 $ conda install cmor