#!/bin/bash

unset PYTHON_DIR
unset PYTHON_VERSION
unset PYTHON_LIB
unset PYTHONHOME
unset PYTHONPATH
unset PYTHON_INCLUDE
#Script to create a conda environment sm_env and install the necessary required packages

curl https://repo.anaconda.com/miniconda/Miniconda3-4.7.10-MacOSX-x86_64.sh -o miniconda.sh

bash miniconda.sh -b -p $HOME/miniconda
export PATH="$HOME/miniconda/bin:$PATH"
conda create -n sm_env
conda install -n sm_env-c conda-forge numpy pandas matplotlib netCDF4 cartopy jupyter python=3.6 metview cdo
source activate sm_env

pip install --upgrade pip
pip install metview
