Skip to content

Commit a3a42ed

Browse files
authored
updated met data
1 parent 733bb34 commit a3a42ed

1 file changed

Lines changed: 26 additions & 2 deletions

File tree

sensors/01-meteorological-data.Rmd

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,25 @@ The key is to process each type of met data (site, reanalysis, forecast, climate
7171

7272
### The Geostreams Database
7373

74-
7574
!(schema)[https://cloud.githubusercontent.com/assets/9286213/16991300/b2f2b09a-4e60-11e6-96b7-8b63c3d1f995.jpg]
7675

76+
Locations with met data
77+
78+
TODO (MAX ...) is there code / a curl statement that can be used to retrie this list?
79+
80+
| stream id | name |
81+
|------------|------------------------------------------|
82+
| 300 | MAC weather |
83+
| 750 | MAC irrigation |
84+
| 746 | EnvironmentLogger sensor_weather_station |
85+
| 747 | EnvironmentLogger sensor_par |
86+
| 748 | EnvironmentLogger sensor_spectrum |
87+
| 749 | EnvironmentLogger sensor_co2 |
88+
| 1219 | UIUC Energy Farm SE |
89+
| 1222 | UIUC Energy Farm CEN |
90+
| 1223 | UIUC Energy Farm NE |
91+
92+
7793
Here is the json representation of a single five-minute observation:
7894

7995
```
@@ -108,13 +124,21 @@ Here is the json representation of a single five-minute observation:
108124

109125
The data represent 5 minute summaries aggregated from 1/s observations.
110126

127+
128+
129+
#### Using Curl
130+
131+
```{sh eval=FALSE}
132+
curl -O spectra.json -X GET https://terraref.ncsa.illinois.edu/clowder/api/geostreams/datapoints?user=USER&pass=PASSWORD&stream_id=743
133+
```
134+
111135
```{r met-geostream}
112136
library(dplyr)
113137
library(ggplot2)
114138
library(jsonlite)
115139
116140
url = ""
117-
mac_weather.list <- jsonlite::fromJSON('https://terraref.ncsa.illinois.edu/clowder/api/geostreams/datapoints?key=Pb3AUSqnUw&stream_id=300', flatten = FALSE)
141+
mac_weather.list <- jsonlite::fromJSON('https://terraref.ncsa.illinois.edu/clowder/api/geostreams/datapoints?user=USER&pass=PASS&stream_id=300', flatten = FALSE)
118142
119143
# change time to human-readable
120144
mac_weather <- mac_weather.list$properties %>%

0 commit comments

Comments
 (0)