Skip to content

Heed725/Terraclimate_QGIS_Plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

10 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

TerraClimateDownloader QGIS Plugin Version

🌍 Overview

TerraClimateDownloader is a QGIS plugin that allows you to directly download and clip TerraClimate datasets (monthly climate & water balance variables, 1958–2024) via OPeNDAP.

It connects to the TerraClimate THREDDS server, extracts a bounding-box subset using xarray and rioxarray, saves a temporary GeoTIFF, and then clips it to any polygon boundary in your QGIS project using GDAL.

  • πŸ“… Supports any year 1958–2024
  • 🌑️ Supports all TerraClimate variables (ppt, tmax, tmin, vap, vpd, aet, etc.)
  • πŸ—ΊοΈ Clips raster outputs to any vector boundary
  • ⚑ Adds the result automatically to your QGIS project
  • πŸ” Available in Processing Toolbox and Plugins menu

πŸ“¦ Installation

  1. Download the latest release ZIP:
    TerraClimateDownloader.zip

  2. In QGIS:

    • Go to Plugins β†’ Manage and Install Plugins β†’ Install from ZIP
    • Select TerraClimateDownloader.zip
    • Enable the plugin
  3. Access it from:

    • Processing Toolbox β†’ TerraClimateDownloader β†’ Clip TerraClimate (OPeNDAP) to Layer (GDAL)
    • Plugins Menu / Toolbar β†’ TerraClimate Downloader

βš™οΈ Requirements

This plugin requires the following Python packages installed into your QGIS Python environment:

  • xarray
  • rioxarray
  • numpy

Optional (recommended for performance):

  • netCDF4
  • dask

Installation

On Windows (OSGeo4W Shell / QGIS Python env):

python -m pip install --upgrade pip
python -m pip install xarray rioxarray "numpy>=1.24" netCDF4 dask

On Linux/macOS:

pip3 install --user xarray rioxarray numpy netCDF4 dask

πŸš€ Usage

  1. Load a polygon boundary layer into QGIS (e.g., a country shapefile).

  2. Run TerraClimate Downloader (Processing Toolbox or Plugins menu).

  3. Configure:

    • Input polygon layer
    • Variable (ppt, tmax, tmin, etc.)
    • Year (1958–2024)
    • TIME_INDEX = -1 for all months (multiband), or 1–12 for a single month
  4. Click Run β†’ A clipped GeoTIFF is downloaded, processed, and added to the map.


Video Tutorial

https://youtu.be/IqF5fW00lWU?si=TjLjWCiLSusx5QcQ


πŸ“– Data Source

TerraClimate Dataset: Abatzoglou, J.T., S.Z. Dobrowski, S.A. Parks, K.C. Hegewisch (2018). TerraClimate, a high-resolution global dataset of monthly climate and climatic water balance from 1958–2015. Scientific Data, 5:170191. DOI:10.1038/sdata.2017.191


🎨 Credits

  • Plugin Author: Hemed Lungo
  • Icon: by Fusion5085 (licensed for free use)
  • Dataset: TerraClimate, Abatzoglou et al. (2018)

πŸ“œ License

This plugin is released under the MIT License. See LICENSE for details.


πŸ™Œ Acknowledgements

Thanks to the QGIS community and GDAL/xarray developers for the tools that make this plugin possible.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published