SEWAA TRAINING ON EVALUATION OF THE CGAN and WRF Models ICPAC Headquarters, Ngong, Kenya 22- 26 July 2024
- Introduction to Python
- Introduction to ChatGPT for learning Python
- Climate data analysis with Python Modifying and selecting variables using xarray
- Setting up a map with cartopy, plotting contour and filled contour
- Plotting wind vector, overlaying with cartopy
-
The workshop dataset is stored in the google drive link https://drive.google.com/file/d/1Dad7mUn4CLVRUjOtCZ1JBOm_Knwf_sCx/view
-
to setup an python environment, micromamba is an options,
https://mamba.readthedocs.io/en/latest/installation/micromamba-installation.html
"${SHELL}" <(curl -L micro.mamba.pm/install.sh)
micromamba self-update
micromamba activate base
micromamba install python pip -c conda-forge
micromamba install -c conda-forge xarray zarr cartopy jupyterlab
- To start Jupyter lab notebook
git clone https://github.com/icpac-igad/python-workshop.git
cd python-workshop
git activate sewaa-ws-202407
micromamba activate base
cd python-workshop
jupyter lab --no-browser --port=8888
- To access the Jupyter notebook from your computer, in firefox/Chromium borwser, type
http://localhost:8888
- To login to the computer with Jupyter enabled, open the port with desired number between 6000-8888 in seperate terminal
ssh -NL 8888:localhost:8888 [email protected]
- In another terminal, ssh into the machine by
ssh -X [email protected]