Skip to content

Commit 8c6f964

Browse files
committed
no more flatten; subset data by time window
1 parent c9ff84c commit 8c6f964

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

sensors/01-meteorological-data.Rmd

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,13 +108,17 @@ Here is the json representation of a single five-minute observation:
108108

109109
The data represent 5 minute summaries aggregated from 1/s observations.
110110

111+
First, this is what the API looks like
112+
113+
https://terraref.ncsa.illinois.edu/clowder/api/geostreams/datapoints?key=Pb3AUSqnUw&stream_id=4807&since=2017-01-02&until=2017-01-31
114+
111115
```{r met-geostream}
112116
library(dplyr)
113117
library(ggplot2)
114118
library(jsonlite)
115119
116120
url = ""
117-
mac_weather.list <- jsonlite::fromJSON('https://terraref.ncsa.illinois.edu/clowder/api/geostreams/datapoints?key=Pb3AUSqnUw&stream_id=300', flatten = FALSE)
121+
mac_weather.list <- jsonlite::fromJSON('https://terraref.ncsa.illinois.edu/clowder/api/geostreams/datapoints?key=Pb3AUSqnUw&stream_id=4807&since=2017-01-02&until=2017-01-31')
118122
119123
# change time to human-readable
120124
mac_weather <- mac_weather.list$properties %>%

0 commit comments

Comments
 (0)