# QGIS: Beräkna NDVI för drone-Geotiff-filen

Ibland behöver du räkna ut medel-NDVI för en viss polygon inne i fältet. Du kan göra så här i QGIS.<br>

<figure><img src="https://lh4.googleusercontent.com/fkankewAK-NkgRxklkXsY_17vIFeDwTjuCNNPvHPX2yzdAQsAx3sWvbQpSnnB8AxG85zYHEyNreHFAUnuD1SzaOZ5gkw-6JZ4X1xAkLs_f7ZNqGogyXOfABMxIBg4LQiO1yg_-OX4J5FtUoQlmPtAw" alt=""><figcaption></figcaption></figure>

#### 1 - Visa den ursprungliga Drone NDVI-geotiffen

<figure><img src="https://lh6.googleusercontent.com/TnFIzVA_U7L1Z4oMmnOAKZHZQBQ7-1-IqrPAidFzzh7SSF-9KWLAf5xDdwpifj3Ff847fN-wS2tU6jzWcm4qUa4dNkbX287BNpakmOHDqGvsrBPiCkICYpxN_qJiJ2EBkKcJjauq02KAAAyKLB7Gbg" alt=""><figcaption></figcaption></figure>

#### 2 - Skapa ett nytt lager

<figure><img src="https://lh6.googleusercontent.com/XjSDzTuLAggVtP0SizpQMRjG6jBsUQVS2MKFxbauRFUD_YOq2KsbXo6Ov3sTiO2r158q9qyXGQyiSiC3IbMrx-SboOrVfEs5bvgYoVIXcqyIQfffKeoKdCDRhQDkx65xaPTpKRrBhuTJDXPJlpQfZA" alt=""><figcaption></figcaption></figure>

#### 3 - Ställ in lagrets namn och geometrityp och tryck på OK

<figure><img src="https://lh5.googleusercontent.com/H1cGGtrsYwaHw9RCYIU-AJ-vGm7c8Ct5tC5HVnVx96Ev-nYa3gleJ6joKrX-6zfIKMF50eBmI2MPFJ4FEmam9gvjKFq-ovVxhw7FhecUnH6Xf1OQ2MA87t-8H_km6cpYEySZqQW_DZV79YLClPDPeg" alt=""><figcaption></figcaption></figure>

#### 4 - Markera lagret i panelen Lager

1. Välj ”Växla redigering” (1)
2. Välj ”Lägg till polygonobjekt” (2)

#### 5 - Rita en polygon. För att avsluta ritningen, tryck på höger musknapp och ange ”id” i popup-fönstret.

Avsluta lagret genom att trycka på ”Växla redigering” igen och tryck på ”Spara”.

<figure><img src="https://lh3.googleusercontent.com/3qiSZYB3e8c_froqsv59x8tU9mMKIh3cvC6Tlv9xyZDZQc6d5AGZXylBVGBvnypyDVXJvbUsqNVe5p8aF8mS0VnSCPPTwqsIvAVYmnZYAlGgBnVu5od_5C1oU3IwDwpUpcJhWpbDrMzI46UgaeLtTg" alt=""><figcaption></figcaption></figure>

#### 6 - Välj zonstatistik i panelen ”Bearbetningsverktygslådan”.

<figure><img src="https://lh3.googleusercontent.com/qdPIGWoz8W2id9mXwjo-7AnbX8RWSpMnEdhFtIzR4fq07Po3Jg2Wmn0-4Ucgihk_04H2VJsQraYPSE8f6MHB0cjtMD2VAsMe8ILf6vu-gtCXFor7pGVg-1-vus8OXx2MyY2Ogb4LVMxcpB7Hkp5sHw" alt=""><figcaption></figcaption></figure>

#### 7 - Välj rasterlager (1),

Välj polygonlager (2),

Tryck på ”Kör” (3).

<figure><img src="https://lh3.googleusercontent.com/htEYAd45WO6Rcw8rHMQ4W7rO4CdjsyxiHP_7Wb2gUan1Dw_szsi43ePRS6x8lHhAA8JeklNUfPEm3Xh6nXnoDJaiXq3eMGwqSOC2Yb-qvnUhOIInsMhCe_ImYHEv7MS60ZkXYoaXkJiKBIOTUskbTQ" alt=""><figcaption></figcaption></figure>

#### 8 - Markera lagret i panelen Lager och tryck på höger musknapp, välj Öppna attributtabell i snabbmenyn.

<figure><img src="https://lh3.googleusercontent.com/Oc1SLXwTAYBzZUrFq3TOAnF2p9UROQ28Cv6wv3XXhLkS5LGYRNoZ-JD_HIjDt-9FEiAzQLXjehiIyjZielJtB6-F0ohTMz3gTbsoZ02vanuuv37voF72i1h3p8YQBuhgfpt6hCcTguhM3-AujNSV_A" alt=""><figcaption></figcaption></figure>

#### 9 - De beräknade statistikvärdena visas i tabellen.<br>


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.geopard.tech/geopard-tutorials/swe/snabba-gis-tips/qgis-berakna-ndvi-for-drone-geotiff-filen.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
