This repository contains the exercices for the EPFL Remote Sensing Course. There are three options for executing the code:
- On EPFL's virtual machines, available in the exercise classroom;
- On your personal laptops;
- Via a Noto link.
We recommend using options 1 or 2 for pedagogic purposes (see section 3 for more details on why).
Please select the ENAC-SSIE-Ubuntu-20-04 Virtual Desktop Infrastructure (VDI) and then follow these steps:
-
Unzip the
RS2026-main.zipfile and move theRS2026directory within the/home/<your_username>/Desktop/myfiles/directory. If your data are saved within the/myfilesdirectory, they will be available the next time you reconnect to the VDI. -
Open a terminal and activate the
lteenvironment with:
micromamba activate lte- Then create the
lteipykernel for Jupyter Notebook with:
python -m ipykernel install --user --name=lte-
Launch the Jupyter Notebook interface with
jupyter notebookand open theExercise_6.ipynborExercise_7.ipynbfile within theRS2026directory. -
To execute correctly the Jupyter Notebook, in the top menu bar select
Kernel>Change Kernel...and switch the kernel fromPython 3 (ipykernel)tolte.
Alternatively, you can clone the RS2026 repository on your laptop and install the required environment using conda/mamba or micromamba:
- Go to the directory where you want to clone the repository. As an example:
cd /home/ghiggi/courses- Clone this repository:
git clone git@github.com:ltelab/RS2026.git
cd RS2026- Install the dependencies using conda:
micromamba env create -f environment.yml- Activate the
lteconda environment:
micromamba activate lte- Create the
lteJupyter Notebook environment with:
python -m ipykernel install --user --name=lte-
Launch the Jupyter Notebook interface with
jupyter notebookand open theExercise_6.ipynborExercise_7.ipynbfile within theRS2026directory. -
To execute correctly the Jupyter Notebook, in the top menu bar select
Kernel>Change Kernel...and switch the kernel fromPython 3 (ipykernel)tolte.
If you want to use the VScode interface for executing the Jupyter notebook, execute steps 1 to 5, then install Python and Jupyter extensions in VScode. Navigate to the repository using VScode's file selector, then open the .ipynb files. Click the kernel selector on the top-right corner of the notebook and select the lte environment.
Note that the installation of the dependencies on your laptop might cause conflicts; the latest version of the required packages can be installed using the following command:
conda install numpy pandas xarray dask rasterio rioxarray scikit-learn matplotlib-base seaborn colorcet pywavelets pillow jupyterIn case you encounter such issues and cannot fix them, please contact the TA team.
To run the exercise, you can also use noto.epfl.ch JuypterLab service (more details here). This allows you to run the code directly without having to do any environment setup. We do not recommend this option, as we think that setting up an environment is a good thing to learn; but we provide this option as a backup if you encounter issues with option 1 and 2.
-
Click here to access the Noto environements
-
Once you have access to the EPFL Noto platform, navigate in the filesystem (left panel) to the right exercise / notebook and click on the
ipynbfile to start the notebook.
And now ... happy coding :-)