Installing¶
Install using pip¶
Install/update anaconda or miniconda if not already available
- create virtual environment ( python 3.10 recommended)
at command prompt :
conda create -n oceantracker python=3.10
Activate new environment
conda activate oceantracker
install ocean tracker
pip install oceantracker
Note: - Oceantracker will work in Python 3.11 and 3.12, Python version 3.10 is preferred, as currently not all required external imported packages for plotting work in 3.11 - may need to run Conda as Admin on Windows - pip install will not include how_to notebooks and the demo hindcasts they use
Install using git repository¶
this includes how_to notebooks and the demo hindcasts they use
Change dir to where oceantracker files will be stored , e.g.
cd mycodedir
Ensure git is installed, then clone repository
Change dir to oceantracker package folder, eg.
cd ./oceantracker
Manually build a Conda environment
conda create -n oceantracker python=3.10
Activate new environment
conda activate oceantracker
Then install these packages
conda install conda-forge::numba=0.56.4
if using python 3.10conda install conda-forge::numba
if using python 3.11 or higherconda install anaconda::numpy
conda install conda-forge::netcdf4
conda install anaconda::xarray
conda install anaconda::scipy
conda install conda-forge::pyprojy
conda install anaconda::pyyaml
conda install conda-forge::psutil
conda install conda-forge::python-dateutil
conda install conda-forge::matplotlib
Make oceantracker package findable
From root dir of oceantracker package
pip install --no-deps -e .
To add ability to make animation movies if needed
conda install conda-forge::ffmpeg
To work with iPython/Jupyter notebooks
conda install anaconda::ipykernel