
###################################################
### Part 1: Enable WSL  in Windows by opening a PowerShell prompt as an administrator (steps 2 & 3 may not be needed in latest Windows). 
###         USERNAME and PASSWORD is required for Ubuntu. 
###################################################

wsl  --install

wsl --set-default-version 2

wsl --install -d  Ubuntu

###################################################
### Part 2: RESTART your computer and open the installed Ubuntu
###################################################

sudo apt-get update

sudo apt-get install imagemagick

sudo apt-get install firefox --fix-missing

sudo apt install x11-apps -y

sudo apt install gedits

###################################################
### Part 3: START A new UBUNTu using the menu 
###         Then Install micromamba. Please follow the screen prompt
###         Use the Default (install in ~/.local/bin ; use ~/micromamba ..).
###  To get the Default use the keys for 1) enter, 2)  Y, 3)  Y, 4) enter   
###################################################

 "${SHELL}" <(curl -L micro.mamba.pm/install.sh)

###################################################
### Part 4 install CCA and multinominal neural network libraries
###################################################

micromamba create -n cpc_rcca_env -c conda-forge \
python=3.10 geopandas shapely jupyter cartopy xarray netcdf4 numpy pandas scipy scikit-learn matplotlib seaborn \
ncl \
r-rnetcdf r-mass r-nnet r-ncdf4 r-lattice

###################################################
### Part 5: Activate the environment you installed (to run any of the prediction tools)
###################################################

micromamba activate cpc_rcca_env


