Tutorial of basic remote sensing and GIS methodologies using open source software (GDAL in Python). Tutorial covers workflow to perform image classification using machine learning classifiers:
- Introduction [Python] [R]
- The GDAL datatypes and objects [Python] [R]
- Your first vegetation index [Python] [R]
- Visualizing data [Python] [R]
- Vector data - the OGR library [Python] [R]
- Land cover classification [Python] [R]
The following R libraries will be needed for this tutorial:
raster
rgdal
sp
randomForest
Install them from within R as follows:
install.packages(c('raster', 'rgdal', 'sp', 'randomForest'))
Thanks to the lovely people at binder, you can try running the lessons on their servers via magic:
To run the Jupyter Notebooks (formerly known as IPython Notebooks) and follow the tutorial locally, you will need to install Python and the libraries used in the tutorials. This installation can be accomplished in many ways, but I will list the two most common approaches:
I recommend using the Anaconda Python distribution to make installation of the tutorial dependencies less complicated. After installing Anaconda or "miniconda" by following their instructions, you can install the dependencies as follows:
conda env create -f environment.yml
source activate open-geo-tutorial
Assuming you already have Python installed, you could use the the Python package manager, pip, to install the dependencies.
Following "pip" convention, you can find all package requirements in the requirements.txt
file. I would also recommend installing these packages into a virtual environment to avoid conflicts with existing versions of the required Python packages. To isolate these dependencies from the rest of your system, use virtualenv:
# Create virtual environment to isolate dependencies
virtualenv venv
# Activate virtual environment
source venv/bin/activate
# Install dependencies
pip install -r requirements.txt
You will need to have GDAL installed for Python to build the drivers against. You may have the Python bindings already built as part of GDAL's installation process.