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
-
Download the latest release ZIP:
TerraClimateDownloader.zip -
In QGIS:
- Go to Plugins β Manage and Install Plugins β Install from ZIP
- Select
TerraClimateDownloader.zip - Enable the plugin
-
Access it from:
- Processing Toolbox β TerraClimateDownloader β Clip TerraClimate (OPeNDAP) to Layer (GDAL)
- Plugins Menu / Toolbar β TerraClimate Downloader
This plugin requires the following Python packages installed into your QGIS Python environment:
xarrayrioxarraynumpy
Optional (recommended for performance):
netCDF4dask
On Windows (OSGeo4W Shell / QGIS Python env):
python -m pip install --upgrade pip
python -m pip install xarray rioxarray "numpy>=1.24" netCDF4 daskOn Linux/macOS:
pip3 install --user xarray rioxarray numpy netCDF4 dask-
Load a polygon boundary layer into QGIS (e.g., a country shapefile).
-
Run TerraClimate Downloader (Processing Toolbox or Plugins menu).
-
Configure:
- Input polygon layer
- Variable (ppt, tmax, tmin, etc.)
- Year (1958β2024)
- TIME_INDEX =
-1for all months (multiband), or1β12for a single month
-
Click Run β A clipped GeoTIFF is downloaded, processed, and added to the map.
https://youtu.be/IqF5fW00lWU?si=TjLjWCiLSusx5QcQ
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
- Plugin Author: Hemed Lungo
- Icon: by Fusion5085 (licensed for free use)
- Dataset: TerraClimate, Abatzoglou et al. (2018)
This plugin is released under the MIT License. See LICENSE for details.
Thanks to the QGIS community and GDAL/xarray developers for the tools that make this plugin possible.