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
* Clean up R code and expand explanations up to High Resolution section
* Update curl section description, fix curl flag typo
* Fix link and picture insertion
* Improve query API section
* made a few changes re #74 that I will submit as PR
* removed extra unused variable names
* Fix format of objectives section and add to prereqs
* Remove extra backslash from URL querying section
* Remove entire 'your turn' section
* Create combined plot
* Change date range for weather data to April through Aug 2018
* Keep only the plot for wind speed
* This tutorial will walk through the steps required to access meteorological data from the Maricopa Agricultural Center.
12
9
13
-
```
10
+
Pre-requisites:
14
11
15
-
## The Maricopa Weather Station
12
+
* Need to have R packages tidyverse, jsonlite, and convertr installed.
13
+
* Need to have an internet connection.
16
14
17
-
Locating the weather station via the geodashboard:
18
-
19
-
TODO: screenshots / tutorials
20
-
21
-
Geodashboard:
22
-
23
-
[Sample raw meteorological (1/s) data on Clowder](https://terraref.ncsa.illinois.edu/clowder/files/588ba5474f0c06726acfcace?dataset=587fc7444f0cd67174e7a92d&space=57e42cd44f0cff4b58dd3eea)
1. find streams on "UA-MAC AZMET Weather Station" https://terraref.ncsa.illinois.edu/clowder/api/geostreams/sensors?sensor_name=UA-MAC AZMET Weather Station
89
-
2. take sensor id from that response and find the streams: https://terraref.ncsa.illinois.edu/clowder/api/geostreams/sensors/438/streams
90
-
3. take stream id from that and use in the datapoints query: https://terraref.ncsa.illinois.edu/clowder/api/geostreams/datapoints?stream_id=46431&since=2017-01-02&until=2017-01-31
67
+
All URLs have the same beginning (https://terraref.ncsa.illinois.edu/clowder/api/geostreams),
68
+
then additional information is added for each type of data as shown below.
ggplot(data = met %>% filter(date > ymd("2016-08-01") & date < ymd("2016-12-01"))) +
217
-
geom_line(aes(date, precip))
218
-
```
219
-
220
-
```{r precip-mm-m}
221
-
ggplot(data = met %>% filter(date > ymd("2016-08-01") & date < ymd("2016-10-01"))) +
222
-
geom_point(aes(date, precip))
223
-
```
224
-
225
-
#### A notice on reuseable code
226
-
227
-
Did you see what we just did? We wrote some custom code to convert the units of our meteorological data. Wouldn't it be nice if that were available as a library function? In fact, it is. That code was from the function `cf2biocro()` in the PEcAn.BIOCRO package. It converts standard meteorological data to the format that the user wants.
228
-
229
184
# High resolution data (1/s) + spectroradiometer
230
185
231
186
This higher resolution weather data can be used for VNIR calibration, for example. But at 1/s it is very large!
@@ -234,6 +189,13 @@ This higher resolution weather data can be used for VNIR calibration, for exampl
234
189
235
190
Here we will download the files using the Clowder API, but note that if you have access to the filesystem (on www.workbench.terraref.org or globus, you can directly access the data in the `sites/ua-mac/Level_1/EnvironmentLogger`. Folder
0 commit comments