> For the complete documentation index, see [llms.txt](https://support.senterasensors.com/home/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://support.senterasensors.com/home/double-4k-sensor/double-4k/double-4k-ndvi-ndre-sensor-ndvi-and-ndre-calculations.md).

# Double 4K NDVI/NDRE Sensor - NDVI and NDRE Calculations

## NDVI/NDRE

### &#xD;NDVI (Ag+ Filter)

For the NIR/Red Edge camera, we have the following combined spectral response:

<div align="left"><figure><img src="https://content.gitbook.com/content/CxRdSZfsf6To3oeKOq6t/blobs/QDcMDaX5F5E4C2QngPko/image.png" alt=""><figcaption></figcaption></figure></div>

Note that from this imager, we only use the Blue channel for NIR and the Red channel for Red. The green channel is discarded when performing index and band calculations.

If it is necessary to separate the channels further, we can use a system of equations to subtract out the effect of the out of band channels on each band. This calculation assumes that the incoming light is approximately uniform (which is the case with daylight). We also add the constraint that the power across each of the filtered bands is equal. This allows us to perform calculations across each of the color bands, even if the filter widths vary. This results in the following:

*Red = -0.966DNblue + 1.000DNred*\
*NIR = 4.350DNblue - 0.286DNred*

*NDVI = (NIR - Red) / (NIR + Red)*

### &#xD;NDRE (NDRE Filter)

For the NIR/Red Edge camera, we have the following combined spectral response:

<div align="left"><figure><img src="https://content.gitbook.com/content/CxRdSZfsf6To3oeKOq6t/blobs/0Slegot8KYRWZ8zxt9OG/image.png" alt=""><figcaption></figcaption></figure></div>

Note that from this imager, we only use the Blue channel for NIR and the Red channel for Red Edge. The green channel is discarded when performing index and band calculations.

If our light source has smooth power across our wavelengths of interest, we can subtract out the us of band wavelengths in the NIR and Red Edge portions via the following:

*RedEdge = -0.956\*DNblue + 1.000\*DNred*\
*NIR = 2.426\*DNblue - 0.341\*DNred*

*NDRE = (NIR - RedEdge) / (NIR + RedEdge)*


---

# 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://support.senterasensors.com/home/double-4k-sensor/double-4k/double-4k-ndvi-ndre-sensor-ndvi-and-ndre-calculations.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.
