Skip to content

Commit

Permalink
a few quick notes
Browse files Browse the repository at this point in the history
  • Loading branch information
cboettig committed Feb 21, 2024
1 parent cfd29ce commit 4785aab
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
5 changes: 2 additions & 3 deletions _freeze/notebook/fire-example/execute-results/html.json

Large diffs are not rendered by default.

11 changes: 10 additions & 1 deletion notebook/fire-example.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ library(gdalcubes)
```



```{r}
url <- "https://34c031f8-c9fd-4018-8c5a-4159cdff6b0d-cdn-endpoint.azureedge.net/-/media/calfire-website/what-we-do/fire-resource-assessment-program---frap/gis-data/april-2023/fire221gdb.zip?rev=9e3e1e5e61e242d5b2994d666d72a91a&hash=F424990CD64BB7C4CF01C6CE211C0A59"
Expand Down Expand Up @@ -41,11 +42,19 @@ fire_jtree <- fire_polys |> filter(fire_is_in_jtree)


```{r}
tmap_mode("plot")
tmap_mode("view")
tm_shape(jtree) + tm_polygons() +
tm_shape(fire_jtree) + tm_polygons("YEAR_")
```

Because burned vegetation presents a very different spectral pattern to normal vegetation, burn intensity can be measured by comparing the spectra in different bands. The greatest contrast between burned and health vegetation can be seen in the NIR and SWIR bands, as seen in this typical spectral response curve:


![](nbr.png)

The normalized burn ratio (NBR) is defined as the ratio:

$$ NBR = \frac{NIR - SWIR}{NIR + SWIR}$$


## Landsat example
Expand Down
Binary file added notebook/nbr.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 4785aab

Please sign in to comment.