File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ output: html_document
77knitr::opts_chunk$set(echo = FALSE, cache = TRUE)
88
99api_url <- "https://terraref.ncsa.illinois.edu/clowder/api"
10- output_dir <- "~/data/ downloads/"
10+ output_dir <- file.path(tempdir(), " downloads")
1111dir.create(output_dir, showWarnings = FALSE, recursive = TRUE)
1212
1313```
@@ -108,13 +108,18 @@ Here is the json representation of a single five-minute observation:
108108
109109The 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}
112116library(dplyr)
113117library(ggplot2)
114118library(jsonlite)
115119
116120url = ""
117- mac_weather.list <- jsonlite::fromJSON('https://terraref.ncsa.illinois.edu/clowder/api/geostreams/datapoints?key=Pb3AUSqnUw&stream_id=3208&since=2017-01-02&until=2017-12-31', 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')
122+ #mac_weather.list <- jsonlite::fromJSON('https://terraref.ncsa.illinois.edu/clowder/api/geostreams/datapoints?key=Pb3AUSqnUw&stream_id=3208&since=2017-01-02&until=2017-12-31', flatten = FALSE)
118123
119124# change time to human-readable
120125mac_weather <- mac_weather.list$properties %>%
Original file line number Diff line number Diff line change @@ -74,8 +74,8 @@ Now the same query can be reduced to:
7474
7575``` {r sv_area}
7676sorghum_height <- betydb_query(table = 'search',
77- trait = "plant_height ",
78- site = "~MAC ",
77+ trait = "canopy_cover ",
78+ site = "~Season 6 ",
7979 limit = 'none')
8080```
8181
You can’t perform that action at this time.
0 commit comments