# QGIS: Calcular NDVI para el archivo GeoTIFF del dron

A veces necesitas calcular el NDVI promedio para algún polígono dentro del lote. Puedes hacer lo siguiente en un programa QGIS.<br>

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

#### 1 - Visualizar el GeoTIFF NDVI inicial del dron

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

#### 2 - Crear una nueva capa

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

#### 3 - Configurar el nombre de la capa y el tipo de geometría, y pulsar Aceptar

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

#### 4 - Seleccionar la capa en el panel de Capas

1. Seleccionar “Alternar edición” (1)
2. Seleccionar “Añadir entidad poligonal” (2)

#### 5 - Dibujar un polígono. Para finalizar el dibujo, pulsa el botón derecho del ratón y establece “id” en la ventana emergente.

Finaliza la capa pulsando de nuevo “Alternar edición” y pulsa “Guardar”.

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

#### 6 - Selecciona Estadísticas zonales en el panel “Caja de herramientas de Procesamiento”.

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

#### 7 - Selecciona la capa ráster (1),

Selecciona la capa de polígonos (2),

Pulsa “Ejecutar” (3).

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

#### 8 - Selecciona la capa en el panel Capas y pulsa el botón derecho del ratón; en el menú contextual selecciona Abrir tabla de atributos.

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

#### 9 - Las estadísticas calculadas se mostrarán en la tabla.<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/esp/consejos-rapidos-de-sig/qgis-calcular-ndvi-para-el-archivo-geotiff-del-dron.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.
