Installing LCZ4r in QGIS
Max Anjos
November 11, 2024
Source:vignettes/instalation_lcz4r_qgis.Rmd
instalation_lcz4r_qgis.Rmd
🚀 Getting Started: Installing LCZ4r in QGIS
Welcome to the LCZ4r-QGIS plugin installation guide! This document will guide you through the setup process to enable Local Climate Zone (LCZ) analysis within QGIS. With LCZ4r, you can enhance urban climate analysis by integrating advanced R functionalities directly into your GIS environment.
🗃 Step-by-Step Installation Guide
1. Install the R
The R is an open-source software environment for statistical computing and graphics, required for running LCZ4r scripts. Follow these steps:
- Got to CRAN to download and install R, following the instructions for your operating system (Windows, macOS, or Linux).
- Tip: Ensure R is properly configured in your system’s PATH so that QGIS can communicate with it.
2. Install the Processing R Provider in QGIS
The Processing R provider plugin allows you to run R scripts directly in QGIS. To install it:
- Open QGIS and go to Plugins > Manage and Install Plugins.
- Search for “Processing R Provider” and click Install.
- Once installed, ensure the plugin is activated in Plugins > Installed.
3. Download and install the LCZ4r Scripts
To integrate LCZ4r functionality into QGIS, you need to download the R scripts for your preferred language:
- Visit the QGIS-LCZ4r Integration page.
- Download the R scripts in your preferred language (e.g., English)
- Unzip the downloaded file and save the scripts in an easily accessible location.
- Open QGIS and got to Settings > Options… > Processing > Providers > R.
- Under R scripts folder, add the path where you saved the LCZ4r scripts.
- Disable Use user library instead of system libraries.
- 7.Click OK to confirm your setup.
If everything is configured correctly, you will see LCZ4r General Functions and LCZ4r Local Functions in the Processing Toolbox >R below Example Scripts.
(Click to Watch video)
https://github.com/LCZ4r/assets/3d585551-e758-47c9-8461-a6a22ee3aa55
4. Run your first LCZ4r Script
Start by running the Download LCZ Map function under LCZ4r General Functions. This step will install any additional necessary packages; it may take a few minutes, so please be patient.
💡 First-Time Setup: The first script run may take longer as it installs all dependencies.
🌟 Once the process is complete, you should see the output LCZ map. Congratulations! You’re now ready to enjoy the functions of the LCZ4r-QGIS plugin.