Practical exercises
Search by title, method, software, tutorial ID or research theme. Expand a series to view each planned lesson.
All tutorials are planned. Exact versions, datasets and entitlement checks will accompany released lessons. Open educational materials do not imply free access to all software.
60 of 60 tutorials
Series A · Python Programming Fundamentals (8)
- PY-A01Permanent link
Installing Python and managing environments
Learning objective: Create and activate a reproducible Conda or venv environment.
Software and inputs: Python; JupyterLab
- PY-A02Permanent link
Variables, data types and operators
Learning objective: Represent coordinates, measurements and categorical attributes in Python.
Software and inputs: Python; JupyterLab
- PY-A03Permanent link
Lists, dictionaries and iteration
Learning objective: Loop over station records and build a structured summary.
Software and inputs: Python; JupyterLab
- PY-A04Permanent link
Functions and reusable modules
Learning objective: Write a function that validates inputs and returns a calculated indicator.
Software and inputs: Python; JupyterLab
- PY-A05Permanent link
Reading and writing files with pathlib
Learning objective: Construct portable paths and read and write text files.
Software and inputs: Python; JupyterLab
- PY-A06Permanent link
Tabular analysis with pandas
Learning objective: Clean missing values, merge tables and aggregate observations.
Software and inputs: Python; JupyterLab; pandas
- PY-A07Permanent link
Numerical arrays with NumPy
Learning objective: Apply vectorised calculations and masked array operations.
Software and inputs: Python; JupyterLab; NumPy
- PY-A08Permanent link
Debugging and testing scientific code
Learning objective: Trace exceptions and write tests for known numerical cases.
Software and inputs: Python; JupyterLab; pytest
Series B · Vector Data Processing with GeoPandas and Shapely (8)
- PY-B01Permanent link
Reading vector data and inspecting CRS
Learning objective: Load GeoPackage and GeoJSON datasets and inspect geometry metadata.
Software and inputs: Python; GeoPandas; Shapely; pyproj
- PY-B02Permanent link
Creating point geometries from survey tables
Learning objective: Convert longitude and latitude to correctly referenced points.
Software and inputs: Python; GeoPandas; Shapely; pyproj
- PY-B03Permanent link
Reprojecting spatial datasets
Learning objective: Transform coordinates and choose a suitable projected CRS.
Software and inputs: Python; GeoPandas; Shapely; pyproj
- PY-B04Permanent link
Geometry repair and validity checks
Learning objective: Identify invalid polygons and assess changes after repair.
Software and inputs: Python; GeoPandas; Shapely; pyproj
- PY-B05Permanent link
Vector buffers and overlay
Learning objective: Construct buffers and calculate intersection areas.
Software and inputs: Python; GeoPandas; Shapely; pyproj
- PY-B06Permanent link
Spatial joins and nearest neighbours
Learning objective: Link features by containment or nearest distance and validate joins.
Software and inputs: Python; GeoPandas; Shapely; pyproj
- PY-B07Permanent link
Spatial aggregation and dissolve
Learning objective: Aggregate attributes by geographic unit and merge shared boundaries.
Software and inputs: Python; GeoPandas; Shapely; pyproj
- PY-B08Permanent link
Exporting interoperable vector datasets
Learning objective: Write GeoPackage and GeoParquet files with documented CRS and schema.
Software and inputs: Python; GeoPandas; Shapely; pyproj; pyarrow
Series C · Raster Processing with GDAL and Rasterio (8)
- PY-C01Permanent link
Inspecting raster metadata and transforms
Learning objective: Read raster dimensions, nodata, CRS and affine transforms.
Software and inputs: Python; GDAL; Rasterio; NumPy
- PY-C02Permanent link
Reading and writing multiband GeoTIFFs
Learning objective: Build a multiband file while preserving georeferencing.
Software and inputs: Python; GDAL; Rasterio; NumPy
- PY-C03Permanent link
Raster clipping and masks
Learning objective: Clip imagery with vector boundaries and distinguish nodata from zero.
Software and inputs: Python; GDAL; Rasterio; NumPy; GeoPandas
- PY-C04Permanent link
Reprojecting and resampling rasters
Learning objective: Align rasters to a common grid using appropriate resampling methods.
Software and inputs: Python; GDAL; Rasterio; NumPy
- PY-C05Permanent link
Mosaicking overlapping raster tiles
Learning objective: Merge tiles and inspect seam and nodata behaviour.
Software and inputs: Python; GDAL; Rasterio; NumPy
- PY-C06Permanent link
Calculating spectral indices with arrays
Learning objective: Compute vegetation and water indices with safe division and masks.
Software and inputs: Python; GDAL; Rasterio; NumPy
- PY-C07Permanent link
Zonal statistics and raster-vector sampling
Learning objective: Summarise pixel values by polygons and compare boundary handling.
Software and inputs: Python; GDAL; Rasterio; NumPy; rasterstats; GeoPandas
- PY-C08Permanent link
Windowed processing and cloud-optimised GeoTIFFs
Learning objective: Process raster blocks and write tiled outputs with overviews.
Software and inputs: Python; GDAL; Rasterio; NumPy
Series D · Multidimensional Data with Xarray and NetCDF (6)
- PY-D01Permanent link
Opening NetCDF climate datasets
Learning objective: Inspect dimensions, coordinates, attributes and time conventions.
Software and inputs: Python; Xarray; netCDF4; NumPy
- PY-D02Permanent link
Selecting and aggregating multidimensional data
Learning objective: Subset spatial and temporal dimensions and calculate seasonal means.
Software and inputs: Python; Xarray; netCDF4; NumPy
- PY-D03Permanent link
Handling CF metadata and calendar types
Learning objective: Interpret units and calendars and avoid invalid temporal conversions.
Software and inputs: Python; Xarray; netCDF4; NumPy
- PY-D04Permanent link
Regridding gridded observations
Learning objective: Compare interpolation methods and verify coordinate alignment.
Software and inputs: Python; Xarray; netCDF4; NumPy; rioxarray; xESMF
- PY-D05Permanent link
Combining files into a data cube
Learning objective: Concatenate consistent datasets and handle duplicate timestamps.
Software and inputs: Python; Xarray; netCDF4; NumPy; Dask
- PY-D06Permanent link
Storing chunked arrays with Zarr
Learning objective: Choose chunks for efficient access and write an analysis-ready store.
Software and inputs: Python; Xarray; netCDF4; NumPy; Zarr; Dask
Series E · Spatial Statistics and Spatial Regression (8)
- PY-E01Permanent link
Constructing spatial weights
Learning objective: Compare contiguity, distance and nearest-neighbour weights.
Software and inputs: Python; GeoPandas; libpysal; esda; spreg
- PY-E02Permanent link
Global spatial autocorrelation with PySAL
Learning objective: Estimate Moran’s I and interpret permutation significance.
Software and inputs: Python; GeoPandas; libpysal; esda; spreg
- PY-E03Permanent link
Local indicators of spatial association
Learning objective: Map local clusters and consider multiple-testing implications.
Software and inputs: Python; GeoPandas; libpysal; esda; spreg
- PY-E04Permanent link
Variograms and spatial interpolation
Learning objective: Fit variogram models and compare kriging against held-out values.
Software and inputs: Python; GeoPandas; libpysal; esda; spreg; PyKrige; SciPy
- PY-E05Permanent link
Ordinary least squares and diagnostics
Learning objective: Fit a baseline regression and inspect residual autocorrelation.
Software and inputs: Python; GeoPandas; libpysal; esda; spreg; statsmodels
- PY-E06Permanent link
Spatial lag and spatial error models
Learning objective: Compare model assumptions and residual dependence.
Software and inputs: Python; GeoPandas; libpysal; esda; spreg
- PY-E07Permanent link
Geographically weighted regression in Python
Learning objective: Estimate spatially varying relationships and evaluate local diagnostics.
Software and inputs: Python; GeoPandas; libpysal; esda; spreg; mgwr
- PY-E08Permanent link
Multiscale geographically weighted regression in Python
Learning objective: Estimate predictor-specific bandwidths and interpret local coefficients.
Software and inputs: Python; GeoPandas; libpysal; esda; spreg; mgwr
Series F · Environmental Time-Series Analysis (8)
- PY-F01Permanent link
Time-series cleaning and temporal aggregation
Learning objective: Identify duplicates, missing intervals and inconsistent time units.
Software and inputs: Python; pandas; NumPy; SciPy; statsmodels
- PY-F02Permanent link
Seasonal decomposition and smoothing
Learning objective: Separate trend and seasonality and compare smoothing settings.
Software and inputs: Python; pandas; NumPy; SciPy; statsmodels
- PY-F03Permanent link
Anomaly calculation and baseline selection
Learning objective: Calculate seasonal anomalies relative to a documented reference period.
Software and inputs: Python; pandas; NumPy; SciPy; statsmodels
- PY-F04Permanent link
Theil–Sen slope and trend uncertainty
Learning objective: Estimate robust trend magnitude and confidence intervals.
Software and inputs: Python; pandas; NumPy; SciPy; statsmodels
- PY-F05Permanent link
Mann–Kendall and seasonal trend tests
Learning objective: Apply trend tests and consider serial dependence.
Software and inputs: Python; pandas; NumPy; SciPy; statsmodels; pymannkendall
- PY-F06Permanent link
Change point detection in environmental records
Learning objective: Identify candidate structural breaks and evaluate false positives.
Software and inputs: Python; pandas; NumPy; SciPy; statsmodels; ruptures
- PY-F07Permanent link
Time-series forecasting with held-out periods
Learning objective: Compare baseline and statistical forecasts using rolling-origin tests.
Software and inputs: Python; pandas; NumPy; SciPy; statsmodels
- PY-F08Permanent link
Pixel-wise trends in satellite data cubes
Learning objective: Apply trend functions across pixels with observation-count masks.
Software and inputs: Python; pandas; NumPy; SciPy; statsmodels; Xarray; Dask
Series G · Scientific Visualisation and Cartography (6)
- PY-G01Permanent link
Exploratory plots for geospatial datasets
Learning objective: Plot distributions and identify outliers before mapping.
Software and inputs: Python; Matplotlib; GeoPandas; pandas
- PY-G02Permanent link
Creating choropleth maps
Learning objective: Compare classification schemes and colour choices for rates and counts.
Software and inputs: Python; Matplotlib; GeoPandas; mapclassify
- PY-G03Permanent link
Mapping continuous raster surfaces
Learning objective: Display rasters with meaningful colour scales and units.
Software and inputs: Python; Matplotlib; GeoPandas; Rasterio
- PY-G04Permanent link
Publication-quality multi-panel figures
Learning objective: Arrange consistent map panels with legends and scale information.
Software and inputs: Python; Matplotlib; GeoPandas
- PY-G05Permanent link
Interactive maps with Folium
Learning objective: Publish a lightweight map with layer controls and accessible popups.
Software and inputs: Python; Matplotlib; GeoPandas; Folium
- PY-G06Permanent link
Visualising temporal trajectories and uncertainty
Learning objective: Plot time series with confidence intervals and missing-observation gaps.
Software and inputs: Python; Matplotlib; GeoPandas; pandas; NumPy
Series H · Automation and High-Performance Computing (8)
- PY-H01Permanent link
Building a parameterised command-line GIS script
Learning objective: Expose inputs, outputs and options through a command-line interface.
Software and inputs: Python; pathlib; logging; pytest; argparse
- PY-H02Permanent link
Batch processing and structured logging
Learning objective: Process directories with restartable logs and explicit error handling.
Software and inputs: Python; pathlib; logging; pytest
- PY-H03Permanent link
Parallel vector and raster tasks
Learning objective: Compare serial and process-based execution with safe file outputs.
Software and inputs: Python; pathlib; logging; pytest; concurrent.futures; GeoPandas; Rasterio
- PY-H04Permanent link
Chunked raster analysis with Dask
Learning objective: Choose chunk sizes and measure memory and runtime costs.
Software and inputs: Python; pathlib; logging; pytest; Dask; Xarray
- PY-H05Permanent link
Running geospatial jobs on HPC clusters
Learning objective: Write a scheduler job and manage resources and environment activation.
Software and inputs: Python; pathlib; logging; pytest; HPC access; Slurm or site scheduler
- PY-H06Permanent link
Packaging reusable geospatial functions
Learning objective: Build a package with tests, version metadata and documentation.
Software and inputs: Python; pathlib; logging; pytest; build; pytest
- PY-H07Permanent link
Workflow orchestration with Snakemake
Learning objective: Express file dependencies and rerun only outdated targets.
Software and inputs: Python; pathlib; logging; pytest; Snakemake
- PY-H08Permanent link
Reproducible research release and benchmarking
Learning objective: Archive environments, parameters, test data and runtime comparisons.
Software and inputs: Python; pathlib; logging; pytest; Git; environment lockfile tools
Learning resources
Practical guidelines, videos, teaching datasets and source code will be linked here as they become available. Data redistribution and software licensing conditions will be respected.
