You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* added functionality to accept gt 700 COMIDs in POST header
* incremented package version (minor update)
* updates to accomodate changes for large number of COMIDs in POST header
stop('If you are requesting all metrics please request for regions, states or counties rather than all of conus')
102
105
}
106
+
if (metric=='all'){
107
+
message("Using metric='all' with a large aoi may take a considerable amount of time to return results - request may timeout if multiple AOIs are requested")
108
+
}
103
109
metric= tolower(metric)
104
110
items= unlist(strsplit(metric,','))
105
111
items= gsub("","",items)
106
112
items= gsub("\n","",items)
107
113
params<- sc_get_params(param='metric_names')
108
114
if (metric!='all'&!all(items%in%params)){
109
-
stop("One or more of the provided metric names do not match the expected metric names in StreamCat. Use sc_get_params(param='name') to list valid metric names for StreamCat")
115
+
message("One or more of the provided metric names do not match the expected metric names in StreamCat. Use sc_get_params(param='name') to list valid metric names for StreamCat")
110
116
}
111
117
metric= tolower(metric)
112
118
items= unlist(strsplit(metric,','))
113
119
items= gsub("","",items)
114
120
items= gsub("\n","",items)
115
121
params<- sc_get_params(param='metric_names')
116
122
if (metric!='all'&!all(items%in%params)){
117
-
stop("One or more of the provided metric names do not match the expected metric names in StreamCat. Use sc_get_params(param='name') to list valid metric names for StreamCat")
123
+
message("One or more of the provided metric names do not match the expected metric names in StreamCat. Use sc_get_params(param='name') to list valid metric names for StreamCat")
stop('If you are requesting all metrics please request for regions, states or counties rather than all of conus')
120
123
}
121
124
if (metric=='all'){
122
-
warning("Using metric='all' with a large aoi may take a considerable amount of time to return results - request may timeout if multiple AOIs are requested")
125
+
message("Using metric='all' with a large aoi may take a considerable amount of time to return results - request may timeout if multiple AOIs are requested")
123
126
}
124
127
metric= tolower(metric)
125
128
items= unlist(strsplit(metric,','))
126
129
items= gsub("","",items)
127
130
items= gsub("\n","",items)
128
131
params<- sc_get_params(param='metric_names')
129
132
if (metric!='all'&!all(items%in%params)){
130
-
warning("One or more of the provided metric names do not match the expected metric names in StreamCat. Use sc_get_params(param='name') to list valid metric names for StreamCat")
133
+
message("One or more of the provided metric names do not match the expected metric names in StreamCat. Use sc_get_params(param='name') to list valid metric names for StreamCat")
## Get all metrics for COMIDs or an Area of Interest
103
-
We can also get all LakeCat metrics for a set of COMIDs or an area of interest. **Please do not request all metrics for conus in order not to overload requests to the server.**
In this example we access National Land Cover Dataset (NLCD) data for 2019, just at the catchment level for several COMIDs using the `lc_nlcd` function. Loads data into a tibble we can view.
0 commit comments