Author : Hrishikesh Shetgaokar
Guide : Prof. Avinash Deshpande
Collaborators : Akhil Jaini, Pavan Uttarkar, Yash Bhusare
This repository is being developed to help undergrad students participating in SWAN get familiarised with radio data processing techniques.
Feel free to reach out to hrishikesh036@gmail.com
- First check if python is already installed. In your terminal (command prompt), type
python --version
andpython3 --version
. If python is installed, it’ll show the version. If not installed, then you’ll get an error saying “command not found”. For our sessions, we'll be using python3.
Figure 1.1: Checking if python is installed
- If you don't have python installed, you’ll get everything you need to know:
https://www.python.org/downloads/
- For macOs and Windows, the installation is pretty simple. You just download the installer and run through the steps.
- For Ubuntu(16.10 or newer), you can follow the steps mentioned in this post:
https://docs.python-guide.org/starting/install3/linux/. - If you are using any other OS or facing some issue, feel free to reach out.
- pip is a package manager used for python. It simplifies the task of installing packages like numpy, astropy, etc. When you have installed python, you should also get pip. To check if you have pip, just run
pip --version
orpip3 --version
in the terminal.
Figure 2.1: Checking if pip is installed
-
If this gives an error, go to the directory where python is installed. Then go to bin directory there. A sample path to one such bin directory can be: "/usr/local/opt/python@3.8/bin". Check if there is a file named
pip
orpip3
. If yes, you'll need to set PATH environment variable. -
If you don’t have pip, some resources for installation:
https://stackoverflow.com/a/12476379
https://www.geeksforgeeks.org/how-to-install-pip-on-windows/
https://pip.pypa.io/en/stable/installation/
- Once you have pip, you can now easily install jupyter notebook.
Just run
pip install notebook
. More info here:
https://jupyter.org/install.html - To run the notebook, go to the directory where you want to start a project and run the following command on the terminal (or command prompt):
jupyter notebook
. On successfull startup, you'll see the following:
Figure 2.1: Jupyter Notebook startup logs seen in terminal
Figure 2.2: Jupyter Notebook startup page
Once you see the Jupyter notebook startup page, just browse to the project file location and open the project.
Figure 2.3: Jupyter project
You are ready to go... Start exploring!
You can also open the python notebooks on Google Colab:
Figure 3.1: Google Colab Setup
- Visit Google Colab: https://colab.research.google.com/
- File → Open Notebook → GitHub
- Enter GitHub url: https://github.com/hrshe/swan-processing-sessions and click on search icon()
- In Repository, select
hrshe/swan-processing-sessions
. Selectmain
branch. session-0/introduction.ipynb
will now be listed. Open the project by clicking on it. You can now edit and run the cells! You might also want to add the notebook to your Google Drive.
Figure 3.3: Google Colab Notebook
- In our excercises, we'll be using some data files. For example, in Sec. 4.4 of
session-0/introduction.ipynb
, you'll needsimulated_pulse.image
data file. First download these data files from GitHub repository.
Figure 3.3: Google Colab Upload File