> For the complete documentation index, see [llms.txt](https://docs.geopard.tech/geopard-tutorials/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.geopard.tech/geopard-tutorials/cze/rychle-gis-tipy/qgis-calculate-ndvi-for-the-drone-geotiff-file.md).

# QGIS: Výpočet NDVI pro dronový GeoTIFF soubor

Někdy potřebujete vypočítat průměrné NDVI pro určitý polygon uvnitř pole. V programu QGIS to můžete udělat takto.<br>

<figure><img src="https://1171283066-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYICBELdyAXXebKAzfLOR%2Fuploads%2Fgit-blob-e514c2c33db9f13f1844a75e5debbc2060559260%2Fdocs-img-d37f31b981.png?alt=media" alt=""><figcaption></figcaption></figure>

#### 1 – Zobrazte původní geotiff s NDVI z dronu

<figure><img src="https://1171283066-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYICBELdyAXXebKAzfLOR%2Fuploads%2Fgit-blob-7c6e18f4b490c0faa2b91372991caecde063d770%2Fdocs-img-0719fb5a92.png?alt=media" alt=""><figcaption></figcaption></figure>

#### 2 – Vytvořte novou vrstvu

<figure><img src="https://1171283066-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYICBELdyAXXebKAzfLOR%2Fuploads%2Fgit-blob-47ff5505fdfecb4b71a2fb179b1b2bf6a3c94c89%2Fdocs-img-11d517a848.png?alt=media" alt=""><figcaption></figcaption></figure>

#### 3 – Nastavte název vrstvy a typ geometrie a stiskněte OK

<figure><img src="https://1171283066-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYICBELdyAXXebKAzfLOR%2Fuploads%2Fgit-blob-cdd806e46eaa09e68faba6a0e2c28ab2e8b09aad%2Fdocs-img-30845468a0.png?alt=media" alt=""><figcaption></figcaption></figure>

#### 4 – Vyberte vrstvu v panelu Vrstvy

1. Vyberte „Přepnout editaci“ (1)
2. Vyberte „Přidat polygonový prvek“ (2)

#### 5 – Nakreslete polygon. Kreslení dokončíte kliknutím pravým tlačítkem myši a v místním okně nastavte hodnotu „id“.

Úpravy vrstvy dokončete opětovným kliknutím na „Přepnout editaci“ a stisknutím tlačítka „Uložit“.

<figure><img src="https://1171283066-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYICBELdyAXXebKAzfLOR%2Fuploads%2Fgit-blob-b09a44f3dd226c5843094208abf5ec5bf9b9ebcd%2Fdocs-img-f53e0d0253.png?alt=media" alt=""><figcaption></figcaption></figure>

#### 6 – V panelu „Nástroje pro zpracování“ vyberte Zonal statistics.

<figure><img src="https://1171283066-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYICBELdyAXXebKAzfLOR%2Fuploads%2Fgit-blob-23c0551e54e246a72c91771b1e116c1b0b0c9743%2Fdocs-img-7308dabf6d.png?alt=media" alt=""><figcaption></figcaption></figure>

#### 7 – Vyberte rastrovou vrstvu (1),

vyberte polygonovou vrstvu (2),

stiskněte „Spustit“ (3).

<figure><img src="https://1171283066-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYICBELdyAXXebKAzfLOR%2Fuploads%2Fgit-blob-0386e93429d8f16415fe34e70d0bb21575857826%2Fdocs-img-607e8408df.png?alt=media" alt=""><figcaption></figcaption></figure>

#### 8 – Vyberte vrstvu v panelu Vrstvy a klikněte na ni pravým tlačítkem myši. V kontextové nabídce vyberte Otevřít tabulku atributů.

<figure><img src="https://1171283066-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYICBELdyAXXebKAzfLOR%2Fuploads%2Fgit-blob-04af9acf74a1dcc206724e369e10c3630c59a240%2Fdocs-img-8b60c9a391.png?alt=media" alt=""><figcaption></figcaption></figure>

#### 9 – Vypočítané statistiky se zobrazí v tabulce.<br>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.geopard.tech/geopard-tutorials/cze/rychle-gis-tipy/qgis-calculate-ndvi-for-the-drone-geotiff-file.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
