Skip to content

Commit

Permalink
rearrange
Browse files Browse the repository at this point in the history
  • Loading branch information
ehesch committed Jul 18, 2023
1 parent 2171520 commit a397310
Show file tree
Hide file tree
Showing 45 changed files with 117 additions and 7 deletions.
Binary file removed ExtremeHeat.docx
Binary file not shown.
35 changes: 35 additions & 0 deletions README.Rmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
---
title: "Land Surface Temperature 2022, Twin Cities"
date: "`r format(Sys.time(), '%d %B %Y')`"
output:
github_document:
toc: no
always_allow_html: yes
urlcolor: blue
---

This code repository is an attachment [for the resource on the Minnesota Geospatial Commons entitled Land Surface Temperature 2022, Twin Cities](https://gisdata.mn.gov/dataset/us-mn-state-metc-env-cva-lst2022). This repository contains javascript code to create and processes a high-resolution (10 meter) dataset on land surface temperatures from September 1, 2022 for the Twin Cities.

This repository contains a folder "javascript_codes" where you can find JavaScript Google Earth Engine (GEE) code used to process and create the downscaled land surface temperature derived from Landsat thermal sensing using the spectral bands of Sentinel-2. The "r_postprocessing" file contains R scripts to post-processes the results of the downscaled raster data.

## A brief description of the methodology:

High resolution (10 meter) land surface temperature (LST) from September 1, 2022 is mapped for the seven-county metropolitan region of the Twin Cities. The goal of the map is to show the heat differences across the region and is not intended to show the maximum temperature that any specific area can reach. The raster dataset was computed at 30 meters using satellite imagery from Landsat 9 and downscaled to 10 meters using Copernicus Sentinel-2. These datasets were integrated using techniques modified from Ermida et al. 2020 and Onačillová et al. 2022). Open water was removed using ancillary data from OpenStreetMap and 2020 Generalized Land Use for the Twin Cities (Metropolitan Council).

First, Landsat 9 imagery taken at 11:59 am CDT on September 01, 2022 was processed into 30-meter resolution LST (based on Ermida et al. 2020). At this time, the air temperature was 88° F at the Minneapolis-St. Paul International Airport (NOAA). A model predicting LST based on spectral indices of Normalized Difference Vegetation Index (NDVI), Normalized Difference Water Index (NDWI), and Normalized Difference Built-up Index (NDBI) was created and applied to 10-meter Sentenel-2 imagery. Sentinel-2 imagery was also taken on September 1, 2022, and this resulted in a 10-meter downscaled LST image (based on Onačillová et al. 2022). To account for anomalies in NDVI on the primary image date of September 1 (e.g., recently harvested agricultural fields), maximum NDVI occurring between July 1, 2022 and September 1, 2022 was used for both Landsat and Sentinel image processing. Water bodies were removed for all processing steps (OpenStreetMap 2023, Metropolitan Council 2021).

This dataset is an update to the [2016 LST data for the Twin Cities Region (Metropolitan Council)](https://gisdata.mn.gov/dataset/us-mn-state-metc-env-cva-lst2016).

### Sources:

Ermida, S.L., Soares, P., Mantas, V., Göttsche, F.-M., Trigo, I.F., 2020. Google Earth Engine open-source code for Land Surface Temperature estimation from the Landsat series. Remote Sensing, 12 (9), 1471; [https://doi.org/10.3390/rs12091471](https://doi.org/10.3390/rs12091471).

Metropolitan Council. 2021. Generalized Land Use 2020. Minnesota Geospatial Commons. [https://gisdata.mn.gov/dataset/us-mn-state-metc-plan-generl-lnduse2020](https://gisdata.mn.gov/dataset/us-mn-state-metc-plan-generl-lnduse2020)

Metropolitan Council. 2017. Land Surface Temperature 2016, Twin Cities. Minnesota Geospatial Commons. [https://gisdata.mn.gov/dataset/us-mn-state-metc-env-cva-lst2016](https://gisdata.mn.gov/dataset/us-mn-state-metc-env-cva-lst2016)

NOAA, National Oceanic and Atmospheric Administration, National Centers for Environmental Information, station USW00014922. September 1, 2022.

Onačillová, K., Gallay, M., Paluba, D., Péliová, A., Tokarčík, O., Laubertová, D. 2022. Combining Landsat 8 and Sentinel 2 data in Google Earth Engine to derive higher resolution land surface temperature maps in urban environment. Remote Sensing, 14 (16), 4076. [https://doi.org/10.3390/rs14164076](https://doi.org/10.3390/rs14164076).

OpenStreetMap contributors. 2023. Retrieved from [https://planet.openstreetmap.org](https://planet.openstreetmap.org) on April 12, 2023.
77 changes: 76 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,76 @@
# extreme.heat
Land Surface Temperature 2022, Twin Cities
================
18 July 2023

This code repository is an attachment [for the resource on the Minnesota
Geospatial Commons entitled Land Surface Temperature 2022, Twin
Cities](https://gisdata.mn.gov/dataset/us-mn-state-metc-env-cva-lst2022).
This repository contains javascript code to create and processes a
high-resolution (10 meter) dataset on land surface temperatures from
September 1, 2022 for the Twin Cities.

This repository contains a folder “javascript_codes” where you can find
JavaScript Google Earth Engine (GEE) code used to process and create the
downscaled land surface temperature derived from Landsat thermal sensing
using the spectral bands of Sentinel-2. The “r_postprocessing” file
contains R scripts to post-processes the results of the downscaled
raster data.

## A brief description of the methodology:

High resolution (10 meter) land surface temperature (LST) from September
1, 2022 is mapped for the seven-county metropolitan region of the Twin
Cities. The goal of the map is to show the heat differences across the
region and is not intended to show the maximum temperature that any
specific area can reach. The raster dataset was computed at 30 meters
using satellite imagery from Landsat 9 and downscaled to 10 meters using
Copernicus Sentinel-2. These datasets were integrated using techniques
modified from Ermida et al. 2020 and Onačillová et al. 2022). Open water
was removed using ancillary data from OpenStreetMap and 2020 Generalized
Land Use for the Twin Cities (Metropolitan Council).

First, Landsat 9 imagery taken at 11:59 am CDT on September 01, 2022 was
processed into 30-meter resolution LST (based on Ermida et al. 2020). At
this time, the air temperature was 88° F at the Minneapolis-St. Paul
International Airport (NOAA). A model predicting LST based on spectral
indices of Normalized Difference Vegetation Index (NDVI), Normalized
Difference Water Index (NDWI), and Normalized Difference Built-up Index
(NDBI) was created and applied to 10-meter Sentenel-2 imagery.
Sentinel-2 imagery was also taken on September 1, 2022, and this
resulted in a 10-meter downscaled LST image (based on Onačillová et
al. 2022). To account for anomalies in NDVI on the primary image date of
September 1 (e.g., recently harvested agricultural fields), maximum NDVI
occurring between July 1, 2022 and September 1, 2022 was used for both
Landsat and Sentinel image processing. Water bodies were removed for all
processing steps (OpenStreetMap 2023, Metropolitan Council 2021).

This dataset is an update to the [2016 LST data for the Twin Cities
Region (Metropolitan
Council)](https://gisdata.mn.gov/dataset/us-mn-state-metc-env-cva-lst2016).

### Sources:

Ermida, S.L., Soares, P., Mantas, V., Göttsche, F.-M., Trigo, I.F.,
2020. Google Earth Engine open-source code for Land Surface Temperature
estimation from the Landsat series. Remote Sensing, 12 (9), 1471;
<https://doi.org/10.3390/rs12091471>.

Metropolitan Council. 2021. Generalized Land Use 2020. Minnesota
Geospatial Commons.
<https://gisdata.mn.gov/dataset/us-mn-state-metc-plan-generl-lnduse2020>

Metropolitan Council. 2017. Land Surface Temperature 2016, Twin Cities.
Minnesota Geospatial Commons.
<https://gisdata.mn.gov/dataset/us-mn-state-metc-env-cva-lst2016>

NOAA, National Oceanic and Atmospheric Administration, National Centers
for Environmental Information, station USW00014922. September 1, 2022.

Onačillová, K., Gallay, M., Paluba, D., Péliová, A., Tokarčík, O.,
Laubertová, D. 2022. Combining Landsat 8 and Sentinel 2 data in Google
Earth Engine to derive higher resolution land surface temperature maps
in urban environment. Remote Sensing, 14 (16), 4076.
<https://doi.org/10.3390/rs14164076>.

OpenStreetMap contributors. 2023. Retrieved from
<https://planet.openstreetmap.org> on April 12, 2023.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
12 changes: 6 additions & 6 deletions ExtremeHeat.Rmd → r_postprocessing/ExtremeHeat.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@ The goal of the 2023 update on extreme heat is to do a major addition to the exi
# Community specific temperatures

```{r}
ctus <- read_csv(file.path(here::here(), "data-raw/ExtremeHeat2022_ctus_max.csv"),
ctus <- read_csv(file.path(here::here(), "r_postprocessing/data-raw/ExtremeHeat2022_ctus_max.csv"),
col_select = c(CTU_NAME, LST = max_LST)) %>%
add_column(type = "max_LST") %>%
bind_rows(read_csv(file.path(here::here(), "data-raw/ExtremeHeat2022_ctus_min.csv"),
bind_rows(read_csv(file.path(here::here(), "r_postprocessing/data-raw/ExtremeHeat2022_ctus_min.csv"),
col_select = c(CTU_NAME, LST = min_LST)) %>%
add_column(type = "min_LST")) %>%
bind_rows(read_csv(file.path(here::here(), "data-raw/ExtremeHeat2022_ctus_mean.csv"),
bind_rows(read_csv(file.path(here::here(), "r_postprocessing/data-raw/ExtremeHeat2022_ctus_mean.csv"),
col_select = c(CTU_NAME, LST = mean_LST)) %>%
add_column(type = "mean_LST")) %>%
mutate(LST = stringr::str_remove_all(LST, "\\{LST=|\\}|null"),
Expand All @@ -52,7 +52,7 @@ ctus <- read_csv(file.path(here::here(), "data-raw/ExtremeHeat2022_ctus_max.csv"
arrange(CTU_NAME) %>%
select(CTU_NAME, min_LST, mean_LST, max_LST)
write_csv(ctus, file = file.path(here::here(), "figs/ctu_average.csv"))
write_csv(ctus, file = file.path(here::here(), "r_postprocessing/figs/ctu_average.csv"))
ctus %>%
Expand All @@ -76,7 +76,7 @@ ctus %>%
labs(title = "Average temperature (land surface 2022)")
# geom_pointrange()
ggsave(file = file.path(here::here(), "figs/ctu_average.png"),
ggsave(file = file.path(here::here(), "r_postprocessing/figs/ctu_average.png"),
height = 20, width = 6)
```

Expand Down Expand Up @@ -659,7 +659,7 @@ filter(df, type == "Income", variable == "income_median") %>%
plot.caption = element_text(vjust = -3, size = 7)) +
scale_x_continuous(labels = scales::dollar)
ggsave(filename = file.path(here::here(), "figs/income_heat.png"), height = 4, width = 6)
ggsave(filename = file.path(here::here(), "r_postprocessing/figs/income_heat.png"), height = 4, width = 6)
```

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes

0 comments on commit a397310

Please sign in to comment.