-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdata.R
78 lines (57 loc) · 2.05 KB
/
data.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# Bering Sea
reg_dat <- get_base_layers(select.region = "bs.all",
set.crs = "+proj=longlat +datum=WGS84")
shp_bs <- reg_dat$survey.strata
# Eastern Bering Sea
reg_dat <- get_base_layers(select.region = "bs.south",
set.crs = "+proj=longlat +datum=WGS84")
shp_ebs <- reg_dat$survey.strata
# Northern Bering Sea
shp_nbs <- sf::st_read(system.file("data",
"ebs_strata.shp",
package = "akgfmaps"),
quiet = TRUE) %>%
dplyr::filter(STRATUM %in% c(70, 71, 81)) %>%
st_transform(crs = "+proj=longlat +datum=WGS84")
# Aleutian Islands
shp_ai <- shp_nbs
# Bering Sea Slope
shp_bsslope <- shp_nbs
# Gulf of Alaska
shp_goa <- shp_nbs
################## Load Design Based Estimates #################
load(here::here("data", "publicdata", "all_data.Rdata"))
lastdl <- ageoffile(here::here("data", "publicdata", "all_data.Rdata"))
load(file = paste0("./data/idw_list.Rdata"))
names(idw_list) <- gsub(pattern = "\\(",
replacement = "",
x = names(idw_list))
names(idw_list) <- gsub(pattern = "\\)",
replacement = "",
x = names(idw_list))
# label = ~ htmltools::htmlEscape("/U+00B0"),
# label = eval(parse(text = expression(paste("Latitude (",degree,"N))")))),
# label = as.character(paste0(
# "Station: ", dat_cpue$station, "
#
# Stratum: ", dat_cpue$stratum, "
#
# Latitude (",degree,"N)): ", dat_cpue$latitude, "
#
# Longitude (",degree,"W)): ", dat_cpue$latitude, "
#
# Date Surveyed: ", dat_cpue$datetime, "
#
# **Environmental Variables:**
#
# Bottom Temperature (",degree,"C): ", dat_cpue$bot_temp, "
#
# Surface Temperature (",degree,"C): ", dat_cpue$surf_temp, "
#
# Average Depth (m): ", dat_cpue$bot_depth, "
#
# **CPUE of ", dat_cpue$common, "(",dat_cpue$scientific, ")**" ,":
#
# Number CPUE (kg of fish/ha): ", dat_cpue$wtcpue, "
#
# Weight CPUE (Number of fish/ha): ", dat_cpue$numcpue)),#)),