Skip to content

Commit

Permalink
training modifications
Browse files Browse the repository at this point in the history
  • Loading branch information
ttuff committed May 1, 2024
1 parent 0b5dc8e commit 9ade447
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 8 deletions.
Binary file modified docs/trainings/Denver_redline.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
31 changes: 23 additions & 8 deletions docs/trainings/training_2_code.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ title: "Pre-summit training"
format: gfm
---

# Here is a header

```{r, collapse=TRUE}
if (!requireNamespace("tidytext", quietly = TRUE)) {
Expand All @@ -20,7 +21,7 @@ library(gdalcubes)
library(colorspace)
library(terra)
library(tidyterra)
library(basemapR)
library(tidytext)
library(ggwordcloud)
library(osmextract)
Expand All @@ -34,6 +35,18 @@ library(purrr)



```{r}
require(terra)
require(tictoc)
system("cp -r ~/data-store/data/iplant/home/shared/earthlab/forest_carbon_codefest/TreeMap ~/TreeMap") #move the data first!!
tictoc::tic()
treemap <- terra::rast("~/TreeMap/treemap2016_southernrockies.tif")
terra::plot(treemap)
```




```{r}
address <- "https://www.denvergov.org/media/gis/DataCatalog/tree_inventory/shape/tree_inventory.zip"
inner_file <- "tree_inventory.shp"
Expand All @@ -43,6 +56,14 @@ inner_file <- "tree_inventory.shp"
```


```{r}
redlining_data <- read_sf(url)
city_redline <- redlining_data |>
filter(city == "Denver" & city_survey == "TRUE" & grade != "")
city_redline
```

```{r}
url <- "https://raw.githubusercontent.com/americanpanorama/mapping-inequality-census-crosswalk/main/MIv3Areas_2010TractCrosswalk.geojson"
Expand All @@ -59,13 +80,7 @@ city_state_df



```{r}
redlining_data <- read_sf(url)
city_redline <- redlining_data |>
filter(city == "Denver" & city_survey == "TRUE" & grade != "")
city_redline
```




Expand Down

0 comments on commit 9ade447

Please sign in to comment.