-
Notifications
You must be signed in to change notification settings - Fork 68
Install
Wiki ▸ Documentation ▸ Install
We offer an installation for conda users under linux-64 or osx-64. Support for Windows is also available via the Windows Subsystem for Linux.
- Anaconda or Miniconda
- If you didn't let Anaconda or Miniconda prepend the Anaconda<2 or 3> install location to PATH, make sure conda is in your PATH (for more information see the Anaconda Documentation). 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
-
- Make sure you have nothing left over from an old CDAT installation in your
PATH
/PYTHONPATH
,LD_LIBRARY_PATH
etc...
- Windows is supported via the Windows Subsystem for Linux which comes with Windows 10.
- You will need to set things up as instructed here and then follow the regular instructions for Linux.
- If your institution has tight ssl certificate/security issues try:
conda config --set ssl_verify false
binstar config --set ssl_verify False
The latest CDAT Release Candidate supports both MacOS and Linux, for python 3.6, 3.7 and 3.8. We currently only support running with libnetcdf mpi_openmpi or libnetcdf nompi.
# Python 3.7 with libnetcdf mpi_openmpi
conda create -y -n cdat -c conda-forge/label/cdat_dev -c conda-forge -c cdat/label/v8.2.1.rc1 cdat "libnetcdf=*=mpi_openmpi_*" "mesalib=17.3.9" "python=3.7"
Or
# Python 3.7 with libnetcdf nompi
conda create -y -n cdat -c conda-forge/label/cdat_dev -c conda-forge -c cdat/label/v8.2.1.rc1 cdat "libnetcdf=*=nompi_*" "mesalib=17.3.9" "python=3.7"
# Python 3.7 with libnetcdf mpi_openmpi
conda create -y -n cdat -c conda-forge/label/cdat_dev -c conda-forge -c cdat/label/v8.2.1.rc1 cdat "libnetcdf=*=mpi_openmpi_*" "mesalib=18.3.1" "python=3.7"
Or
# Python 3.7 with libnetcdf nompi
conda create -y -n cdat -c conda-forge/label/cdat_dev -c conda-forge -c cdat/label/v8.2.1.rc1 cdat "libnetcdf=*=nompi_*" "mesalib=18.3.1" "python=3.7"
To test that CDAT was installed correctly make sure your environment has been activated:
conda activate [your_env]
Next enter the following line of code:
python -c "import vcs, MV2; x=vcs.init();x.open();x.plot(MV2.array([[1,2,3],[4,5,6]])); input('Press Enter to continue...')"
If CDAT has not installed correctly, you will get an error. If it has installed correctly you should see the following graph. When you are done looking at the graph, just press "enter" in the command line window and the graph will disappear.
For more installation details see:
-
Additional Installation Configurations - Installation instructions for additional configurations (e.g partial installation, etc.).
-
Obtain CDAT nightly - Install CDAT nightlies.
For installation instructions for older releases see: