@@ -46,7 +46,7 @@ buf <- function(site, buf_dist){
4646site_csv <- suppressMessages(googlesheets4 :: read_sheet(
4747 ' https://docs.google.com/spreadsheets/d/1Xd38tvB0upHjDRDa5qalGN2Ors6HHWZKpT4Bw0dDqU4/edit?usp=drive_web&ouid=111793152718629438266' ,
4848 na = c(' ' , ' NA' ),
49- col_types = ' ccccccccnnnnnccc '
49+ col_types = ' ccccccccnnnnncccc '
5050))
5151
5252sites <- filter(site_csv ,
@@ -56,66 +56,65 @@ sites <- filter(site_csv,
5656sites $ NHD_COMID <- ' ?'
5757manual_input <- 1 : 233
5858total_len <- nrow(sites )
59- sites $ NHD_COMID [manual_input ] <- c(' HR only' , ' too small' , ' HR only' , ' 6729679' ,
60- ' HR only' , ' HR only' , ' 6729787' , ' HR only' ,
61- ' too small' , ' 23773411' , ' HR only' , ' HR only' ,
62- ' HR only' , ' HR only' , ' HR only' , ' HR only' ,
63- ' HR only' , ' HR only' , ' 23774053' , ' 3424530' ,
64- ' 18548462' , ' 18211220' , ' 1239639' , ' 3649284' ,
65- ' 8444872' , ' 698676' , ' 22050327' , ' 7690025' ,# 28
66- ' 24505800' , ' 22048111' , ' HR only' , ' 20440650' ,
67- ' 2889452' , ' 2964310' , ' 1306285' , ' 23773423' ,# COMO, BLDE, PRIN, MCRA,
68- ' nonCONUS' , ' nonCONUS' , ' 11722717' , ' nonCONUS' ,# first two AK, last PR: '800035089'
69- ' nonCONUS' , ' HR only' , ' 18841314' , ' 18208464' , # first PR 800026322
70- ' HR only' , ' 22144520' , ' 18841358' , ' HR only' ,# 48
71- ' 18841356' , ' HR only' , ' 11689212' , ' 11688596' ,# ... GFCP, GFGB
72- ' 11688596' , ' 11689106' , ' too small' , ' 11689186' ,# GFVN on same reach as GFGB
73- ' 11688418' , ' too small' , ' 11689206' , ' 2889280' ,
74- ' 2889770' , ' 2889186' , ' too small' , ' HR only' ,# GREEN4...
75- ' too small' , ' 17595459' , ' 17595361' , ' 17595359' ,# 68
76- ' 17595433' , ' 17594763' , ' 17594741' , ' 17595453' , # same as next
77- ' 17595453' , ' 17594769' , ' 17594785' , ' 17595305' ,
78- ' 17596097' , ' 17595477' , ' 17595369' , ' 17595473' ,
79- ' 17596159' , ' 17595473' , ' 17596161' , ' nonCONUS' , # bonanza, then mcmurdo
80- ' nonCONUS' , ' nonCONUS' , ' nonCONUS' , ' nonCONUS' ,
81- ' nonCONUS' , ' nonCONUS' , ' nonCONUS' , ' nonCONUS' ,
82- ' nonCONUS' , ' nonCONUS' , ' nonCONUS' , ' nonCONUS' ,
83- ' nonCONUS' , ' nonCONUS' , ' nonCONUS' , ' nonCONUS' ,
84- ' nonCONUS' , ' nonCONUS' , ' nonCONUS' , ' nonCONUS' ,
85- ' nonCONUS' , ' nonCONUS' , ' 5860599' , ' 5862611' , # plum
86- ' 5862611' , ' 5862581' , ' nonCONUS' , ' nonCONUS' ,# 112
87- ' nonCONUS' , ' nonCONUS' , ' nonCONUS' , ' nonCONUS' , # arctic
88- ' nonCONUS' , ' nonCONUS' , ' nonCONUS' , ' nonCONUS' ,
89- ' nonCONUS' , ' nonCONUS' , ' nonCONUS' , ' nonCONUS' ,
90- ' nonCONUS' , ' nonCONUS' , ' nonCONUS' , ' nonCONUS' ,
91- ' nonCONUS' , ' nonCONUS' , ' nonCONUS' , ' nonCONUS' ,
92- ' nonCONUS' , ' nonCONUS' , ' nonCONUS' , ' nonCONUS' ,
93- ' nonCONUS' , ' nonCONUS' , ' nonCONUS' , ' nonCONUS' ,# 140
94- ' nonCONUS' , ' nonCONUS' , ' 2889384' , ' 2889360' , # boulder
95- ' 2889410' , ' 2891254' , ' too small' , ' 17827556' ,
96- ' 17827556' , ' 17826162' , ' 17826162' , ' 17827558' ,
97- ' 17826228' , ' HR only' , ' HR only' , ' too small' ,
98- ' HR only' , ' 17826228' , ' HR only' , ' HR only' ,# 160
99- ' HR only' , ' HR only' , ' nonCONUS' , ' nonCONUS' , # luquillo
100- ' nonCONUS' , ' nonCONUS' , ' nonCONUS' , ' nonCONUS' ,
101- ' nonCONUS' , ' HR only' , ' too small' , ' too small' ,
102- ' 3775221' , ' too small' , ' too small' , ' too small' ,
103- ' HR only' , ' too small' , ' HR only' , ' 1332754' ,# 180
104- ' 1332754' , ' 1332672' , ' 1332674' , ' 1332674' ,
105- ' HR only' , ' HR only' , ' 1332198' , ' 1332190' ,
106- ' 1332186' , ' 1332186' , ' HR only' , ' 1332204' ,
107- ' 1332224' , ' 13633173' , ' HR only' , ' HR only' ,
108- ' HR only' , ' HR only' , ' HR only' , ' HR only' ,# 200
109- ' HR only' , ' 22050299' , ' 22050299' , ' 22050323' , # krew. some questionable point-segment associations in here
110- ' 23903201' , ' HR only' , ' HR only' , ' HR only' ,
111- ' 9643235' , ' 9643251' , ' 9643235' , ' HR only' ,
112- ' nonCONUS' , ' nonCONUS' , ' nonCONUS' , ' nonCONUS' , # krycklan
113- ' nonCONUS' , ' nonCONUS' , ' nonCONUS' , ' nonCONUS' ,
114- ' nonCONUS' , ' nonCONUS' , ' nonCONUS' , ' nonCONUS' ,# 224
115- ' nonCONUS' , ' 22125024' , ' HR only' , ' 4681928' ,
116- ' 4682266' , ' 4682628' , ' too small' , ' 2679458' ,
117- ' 2679458' )
118- # for(i in seq_len(nrow(sites))){
59+ # sites$NHD_COMID[manual_input] <- c('HR only', 'too small', 'HR only', '6729679',
60+ # 'HR only', 'HR only', '6729787', 'HR only',
61+ # 'too small', '23773411', 'HR only', 'HR only',
62+ # 'HR only', 'HR only', 'HR only', 'HR only',
63+ # 'HR only', 'HR only', '23774053', '3424530',
64+ # '18548462', '18211220', '1239639', '3649284',
65+ # '8444872', '698676', '22050327', '7690025',#28
66+ # '24505800', '22048111', 'HR only', '20440650',
67+ # '2889452', '2964310', '1306285', '23773423',#COMO, BLDE, PRIN, MCRA,
68+ # 'nonCONUS', 'nonCONUS', '11722717', 'nonCONUS',#first two AK, last PR: '800035089'
69+ # 'nonCONUS', 'HR only', '18841314', '18208464', #first PR 800026322
70+ # 'HR only', '22144520', '18841358', 'HR only',#48
71+ # '18841356', 'HR only', '11689212', '11688596',#... GFCP, GFGB
72+ # '11688596', '11689106', 'too small', '11689186',#GFVN on same reach as GFGB
73+ # '11688418', 'too small', '11689206', '2889280',
74+ # '2889770', '2889186', 'too small', 'HR only',#GREEN4...
75+ # 'too small', '17595459', '17595361', '17595359',#68
76+ # '17595433', '17594763', '17594741', '17595453', #same as next
77+ # '17595453', '17594769', '17594785', '17595305',
78+ # '17596097', '17595477', '17595369', '17595473',
79+ # '17596159', '17595473', '17596161', 'nonCONUS', #bonanza, then mcmurdo
80+ # 'nonCONUS', 'nonCONUS', 'nonCONUS', 'nonCONUS',
81+ # 'nonCONUS', 'nonCONUS', 'nonCONUS', 'nonCONUS',
82+ # 'nonCONUS', 'nonCONUS', 'nonCONUS', 'nonCONUS',
83+ # 'nonCONUS', 'nonCONUS', 'nonCONUS', 'nonCONUS',
84+ # 'nonCONUS', 'nonCONUS', 'nonCONUS', 'nonCONUS',
85+ # 'nonCONUS', 'nonCONUS', '5860599', '5862611', #plum
86+ # '5862611', '5862581', 'nonCONUS', 'nonCONUS',#112
87+ # 'nonCONUS', 'nonCONUS', 'nonCONUS', 'nonCONUS', #arctic
88+ # 'nonCONUS', 'nonCONUS', 'nonCONUS', 'nonCONUS',
89+ # 'nonCONUS', 'nonCONUS', 'nonCONUS', 'nonCONUS',
90+ # 'nonCONUS', 'nonCONUS', 'nonCONUS', 'nonCONUS',
91+ # 'nonCONUS', 'nonCONUS', 'nonCONUS', 'nonCONUS',
92+ # 'nonCONUS', 'nonCONUS', 'nonCONUS', 'nonCONUS',
93+ # 'nonCONUS', 'nonCONUS', 'nonCONUS', 'nonCONUS',#140
94+ # 'nonCONUS', 'nonCONUS', '2889384', '2889360', #boulder
95+ # '2889410', '2891254', 'too small', '17827556',
96+ # '17827556', '17826162', '17826162', '17827558',
97+ # '17826228', 'HR only', 'HR only', 'too small',
98+ # 'HR only', '17826228', 'HR only', 'HR only',#160
99+ # 'HR only', 'HR only', 'nonCONUS', 'nonCONUS', #luquillo
100+ # 'nonCONUS', 'nonCONUS', 'nonCONUS', 'nonCONUS',
101+ # 'nonCONUS', 'HR only', 'too small', 'too small',
102+ # '3775221', 'too small', 'too small', 'too small',
103+ # 'HR only', 'too small', 'HR only', '1332754',#180
104+ # '1332754', '1332672', '1332674', '1332674',
105+ # 'HR only', 'HR only', '1332198', '1332190',
106+ # '1332186', '1332186', 'HR only', '1332204',
107+ # '1332224', '13633173', 'HR only', 'HR only',
108+ # 'HR only', 'HR only', 'HR only', 'HR only',#200
109+ # 'HR only', '22050299', '22050299', '22050323', #krew. some questionable point-segment associations in here
110+ # '23903201', 'HR only', 'HR only', 'HR only',
111+ # '9643235', '9643251', '9643235', 'HR only',
112+ # 'nonCONUS', 'nonCONUS', 'nonCONUS', 'nonCONUS', #krycklan
113+ # 'nonCONUS', 'nonCONUS', 'nonCONUS', 'nonCONUS',
114+ # 'nonCONUS', 'nonCONUS', 'nonCONUS', 'nonCONUS',#224
115+ # 'nonCONUS', '22125024', 'HR only', '4681928',
116+ # '4682266', '4682628', 'too small', '2679458',
117+ # '2679458')
119118
120119# loop 1: NHDPlusV2 or NHD-HR (kinda obsolete) ####
121120
@@ -202,14 +201,6 @@ for(i in 1:total_len){
202201 print(paste(' map saved to' , mapview_save_path ))
203202 print(xx )
204203
205- # gg <- ggplot() +
206- # geom_sf(data = NHD_HR, color = 'darkslategray3') +
207- # geom_sf(data = NHDPlus, color = 'deepskyblue4') +
208- # geom_sf(data = site, color = 'red') +
209- # coord_sf()
210- #
211- # print(gg)
212-
213204 system(' spd-say "chili chili chili"' )
214205 x <- readline(cat(' This point is on: [A] an NHDPlus flowline, [B] an NHD_HR flowline, or [C] neither >\n ' ))
215206
0 commit comments