generated from CU-ESIIL/Education_OASIS
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
edbf949
commit bc8e59f
Showing
2 changed files
with
8 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,15 +33,15 @@ library(ggplot2) | |
############################################### | ||
|
||
# Set path to Bioviewpoint folder (where data resides) | ||
# path <- "~/Library/CloudStorage/[email protected]/.shortcut-targets-by-id/1HhR4gs3fKXyAXBhQom6t69gAqR6SeKhx/BioViewPoint" | ||
path <- "~/share/groups/MAS/04_personal/Kim_T/BioViewPoint" | ||
path <- "~/Library/CloudStorage/[email protected]/.shortcut-targets-by-id/1HhR4gs3fKXyAXBhQom6t69gAqR6SeKhx/BioViewPoint" | ||
# path <- "~/share/groups/MAS/04_personal/Kim_T/BioViewPoint" | ||
# path <- "I:/mas/04_personal/Kim_T/BioViewPoint" | ||
|
||
# Define the coordinate system | ||
albers = sp:: CRS("+init=epsg:5070") | ||
|
||
# Load the square polygons (ROIs) with the column containing amount of change | ||
bbs.roi <- st_read(paste(path, "/01_Analysis/BBS and LULC/BBS_Rtes_wLULC.shp", | ||
bbs.roi <- st_read(paste(path, "/01_Analyses/BBS and LULC/BBS_Rtes_wLULC.shp", | ||
sep = "")) | ||
|
||
bbs.roi <- sf :: st_transform(bbs.roi, albers) | ||
|
@@ -108,6 +108,10 @@ routes.to.remove <- unique(overlap$uniq_rt) | |
# Remove from the BBS ROI | ||
bbs.roi_revised <- bbs.roi[!(bbs.roi$uniq_rt %in% routes.to.remove), ] | ||
|
||
# Write the revised sf object | ||
st_write(bbs.roi_revised, | ||
paste(path, "/01_Analyses/BBS and LULC/BBS_Rtes_wLULC_minusfire.shp", | ||
sep = "")) | ||
|
||
|
||
############################################### | ||
|