Skip to content

Commit

Permalink
update ontario pilot data
Browse files Browse the repository at this point in the history
this is needed since dots are no longer allowed in names per #145
  • Loading branch information
jeffreyhanson committed Aug 23, 2021
1 parent 1a7f0d0 commit 998e9ed
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
8 changes: 4 additions & 4 deletions inst/extdata/projects/ontario_pilot/ontario_pilot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -171,9 +171,9 @@ themes:
limit_goal: 0.0
- name: TNC Crisis Ecosystems (Endangered)
feature:
- name: layer.1
- name: layer_1
variable:
index: layer.1
index: layer_1
units: ''
legend:
type: categorical
Expand All @@ -186,9 +186,9 @@ themes:
limit_goal: 0.0
- name: TNC Crisis Ecosystems (Vulnerable)
feature:
- name: layer.2
- name: layer_2
variable:
index: layer.2
index: layer_2
units: ''
legend:
type: categorical
Expand Down
Binary file not shown.
1 change: 1 addition & 0 deletions inst/scripts/format-ontario-pilot-data.R
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ idx <- which(names(theme_data) != "R1km_TNC_Crisis_Ecosystems")
theme_data <- raster::stack(
theme_data[[idx]], tnc_crisis_endangered_raster, tnc_crisis_vulnerable_raster
)
names(theme_data) <- gsub(".", "_", names(theme_data), fixed = TRUE)
theme_names <- c(
metadata$name[metadata$type == "theme"][idx],
"TNC Crisis Ecosystems (Endangered)",
Expand Down

0 comments on commit 998e9ed

Please sign in to comment.