2. Installation, launch and interface
Code: metadata.txt (version, minimum QGIS), ecometriq_plugin.py (menu, toolbar, window), ui/main_dialog.py:145-195 (main window)
2.1 Requirements
| Component | Requirement | Note |
|---|---|---|
| QGIS | 4.0 or later | metadata.txt: qgisMinimumVersion=4.0. The interface uses Qt 6 / PyQt6. |
| Python | Python 3 shipped with QGIS | No separate installation needed. |
| NumPy | Optional | If present, the KDE grid is computed by the fast path; otherwise a pure Python path is used, and the result is the same (modules/spatial_analysis.py:595). |
| SciPy | Optional | If present, the Delaunay triangulation for the alpha shape is done with SciPy; otherwise the plugin's own triangulation is used (modules/spatial_analysis.py:1330-1381). |
| Matplotlib | Required for plots | Rarefaction, accumulation and heat map plots are drawn with it; if it is missing, a "matplotlib Error" message is shown. |
| GDAL | For writing KDE as GeoTIFF | Ships with QGIS. |
All of these libraries are present in standard QGIS 4 installations on Windows, macOS and Linux.
2.2 Installation
- In QGIS, open the
Plugins › Manage and Install Plugins…window. - In the
Install from ZIPtab, select the EcoMetriQ ZIP file and press theInstall Pluginbutton. - In the
Installedtab, check that EcoMetriQ is ticked.
For manual installation, copy the EcoMetriQ folder into the python/plugins/ folder of your QGIS user profile. The profile folder is opened with Settings › User Profiles › Open Active Profile Folder. The folder must be named EcoMetriQ and metadata.txt must be directly inside this folder; if there is an extra subfolder, QGIS does not see the plugin.
2.3 Launch
After installation the plugin can be opened from two places (ecometriq_plugin.py:26-49):
- Menu:
Plugins › EcoMetriQ › 🌿 EcoMetriQ — Biodiversity Metrics & Spatial Analysis - Toolbar: the EcoMetriQ button on the Plugins toolbar (icon only, no text).
The window opens as non-modal: while it is open, the map canvas, the layers panel and the attribute table can be used (ecometriq_plugin.py:54-66). If the window is already open, a second window is not opened; the existing one is brought to the front. When the window is closed and reopened, the same window comes back: the loaded CSV, the parameters entered and the result texts are kept for the duration of the QGIS session. The window is deleted when the plugin is disabled or QGIS is closed; therefore, still save the results by exporting them.
The toolbar button shows the resources/icon.svg icon, a turquoise Q with a leaf (ecometriq_plugin.py:29).
When the plugin is enabled, the Processing algorithms appear in Processing › Toolbox under the provider EcoMetriQ - Biodiversity Metrics & Spatial Analysis (provider ID ecometriq; processing_provider.py:16-31). Details are in Chapter 10.
2.4 Layout of the main window

The window opens at a minimum of 1000 × 750 pixels and can be enlarged (ui/main_dialog.py:159). Regions:
| Region | Content |
|---|---|
| Title | "🌿 EcoMetriQ - Biodiversity Metrics & Spatial Analysis" |
| Progress bar | Appears during long computations (KDE, Gi*, gamma, validation); hidden when the computation finishes (ui/main_dialog.py:2782). |
| Tabs | 📂 Data Input, 📊 Alpha Indices, 📈 Rarefaction, 🔀 Beta Diversity, 🌍 Gamma Diversity, 🗺️ Spatial Analysis, ✅ Validation, 📋 Report (ui/main_dialog.py:179-186) |
Close |
Hides the window. When it is reopened, the data and results are still in place (§2.3). |
Most tabs are a scroll area: fields and the result box that do not fit in the window are reached by scrolling down. Some screenshots in this book were taken so as to show the whole tab (the entire scroll area).
2.5 Common behaviors
- Result boxes are read-only. Result text can be selected and copied but not edited.
- Export. Buttons such as
Export Results,Save TXTandExport Table (CSV)open a file save dialog and append the date to the suggested name (e.g.alpha_indices_20261203.txt;ui/main_dialog.py:2774). - Warning boxes. For missing data or invalid input, a short message box opens and no computation is made. The messages are in English and are quoted in this book as they appear in the interface.
- Layers. Each run in the spatial tab adds a new memory layer to the QGIS project; earlier layers are not deleted. Layer names include the selected species (e.g.
Hotspot — All Species (combined)). - Decimals. The program uses full precision in computations and rounds most values to four decimals on screen.