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
Copy file name to clipboardExpand all lines: sensors/01-meteorological-data.Rmd
+8-8Lines changed: 8 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -48,7 +48,7 @@ The key is to process each type of met data (site, reanalysis, forecast, climate
48
48
### Using the API to get data
49
49
50
50
In order to access the data, we need to contruct a URL that links to where the
51
-
data is located on [Clowder](https://terraref.ncsa.illinois.edu/clowder). The data is
51
+
data is located on [Clowder](https://terraref.org/clowder). The data is
52
52
then pulled down using the API, which ["receives requests and sends responses"](https://medium.freecodecamp.org/what-is-an-api-in-english-please-b880a3214a82)
53
53
, for Clowder.
54
54
@@ -72,7 +72,7 @@ observations taken every second.
Copy file name to clipboardExpand all lines: sensors/02-sensor-metadata.Rmd
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,7 @@ theme_set(theme_bw())
18
18
19
19
# Introduction
20
20
21
-
This tutorial will demonstrate how to access sensor metadata from within R. All of the sensor metadata is public, and can be queried via the API using the url `https://terraref.ncsa.illinois.edu/clowder/api/datasets/<id>/metadata.jsonld`.
21
+
This tutorial will demonstrate how to access sensor metadata from within R. All of the sensor metadata is public, and can be queried via the API using the url `https://terraref.org/clowder/api/datasets/<id>/metadata.jsonld`.
22
22
23
23
For further information about sensor metadata see the [Sensor Data Standards](/sensor-data-standards.md) section.
24
24
@@ -27,16 +27,16 @@ For further information about sensor metadata see the [Sensor Data Standards](/s
@@ -94,13 +94,13 @@ TODO: move this to a separate tutorial page focused on using curl
94
94
The source files behind the data are available for downloading through the API. By executing a series
95
95
of requests against the API it's possible to determine the files of interest and then download them.
96
96
97
-
Each of the API URL's have the same beginning (https://terraref.ncsa.illinois.edu/clowder/api),
97
+
Each of the API URL's have the same beginning (https://terraref.org/clowder/api),
98
98
followed by the data needed for a specific request. As we step through the process you will be able
99
99
to see how then end of the URL changes depending upon the request.
100
100
101
101
Below is what the API looks like as a URL. Try pasting it into your browser.
102
102
103
-
[https://terraref.ncsa.illinois.edu/clowder/api/geostreams/sensors?sensor_name=MAC Field Scanner Season 1 Field Plot 101 W](https://terraref.ncsa.illinois.edu/clowder/api/geostreams/sensors?sensor_name=MAC Field Scanner Season 1 Field Plot 101 W)
103
+
[https://terraref.org/clowder/api/geostreams/sensors?sensor_name=MAC Field Scanner Season 1 Field Plot 101 W](https://terraref.org/clowder/api/geostreams/sensors?sensor_name=MAC Field Scanner Season 1 Field Plot 101 W)
104
104
105
105
This will return data for the requested plot including its id. This id (or identifier) can then be used for
106
106
additional queries against the API.
@@ -127,7 +127,7 @@ we use the variable name of SENSOR_DATA to indicate the name of the plot.
127
127
128
128
```{sh eval=FALSE}
129
129
SENSOR_NAME="MAC Field Scanner Season 1 Field Plot 101 W"
130
-
curl -o plot.json -X GET "https://terraref.ncsa.illinois.edu/clowder/api/geostreams/sensors?sensor_name=${SENSOR_NAME}"
130
+
curl -o plot.json -X GET "https://terraref.org/clowder/api/geostreams/sensors?sensor_name=${SENSOR_NAME}"
131
131
```
132
132
133
133
This creates a file named *plot.json* containing the JSON object returned by the API. The JSON object has an
@@ -141,7 +141,7 @@ the stream id. The names of streams are are formatted as "<Sensor Group> Dataset
141
141
```{sh eval=FALSE}
142
142
SENSOR_ID=3355
143
143
STREAM_NAME="Thermal IR GeoTIFFs Datasets (${SENSOR_ID})"
144
-
curl -o stream.json -X GET "https://terraref.ncsa.illinois.edu/clowder/api/geostreams/streams?stream_name=${STREAM_NAME}"
144
+
curl -o stream.json -X GET "https://terraref.org/clowder/api/geostreams/streams?stream_name=${STREAM_NAME}"
145
145
```
146
146
147
147
A file named *stream.json* will be created containing the returned JSON object. This JSON object has an 'id' parameter that
@@ -153,7 +153,7 @@ We now have a stream ID that we can use to list our datasets. The datasets in tu
153
153
154
154
```{sh eval=FALSE}
155
155
STREAM_ID=11586
156
-
curl -o datasets.json -X GET "https://terraref.ncsa.illinois.edu/clowder/api/geostreams/datapoints?stream_id=${STREAM_ID}"
156
+
curl -o datasets.json -X GET "https://terraref.org/clowder/api/geostreams/datapoints?stream_id=${STREAM_ID}"
157
157
```
158
158
159
159
After the call succeeds, a file named *datasets.json* is created containing the returned JSON object. As part of the
@@ -162,7 +162,7 @@ JSON object there are one or more `properties` fields containing *source_dataset
162
162
```{javascript eval=FALSE}
163
163
properties: {
164
164
dataset_name: "Thermal IR GeoTIFFs - 2016-05-09__12-07-57-990",
curl -o "${FILE_NAME}" -X GET "https://terraref.ncsa.illinois.edu/clowder/api/files/${FILE_ID}"
222
+
curl -o "${FILE_NAME}" -X GET "https://terraref.org/clowder/api/files/${FILE_ID}"
223
223
```
224
224
225
225
This call will cause the server to return the contents of the file identified in the URL. This file is then stored locally in *ir_geotiff_L1_ua-mac_2016-05-09__12-07-57-990.tif*.
Copy file name to clipboardExpand all lines: traits/00-BETYdb-getting-started.Rmd
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ It contains trait (phenotype) data at the plot or plant level as well as meta da
10
10
11
11
### Introduction to BETYdb
12
12
13
-
The TERRA REF trait database (terraref.ncsa.illinois.edu/bety) uses the BETYdb data schema (structure) and web application.
13
+
The TERRA REF trait database (terraref.org/bety) uses the BETYdb data schema (structure) and web application.
14
14
The BETYdb software is actively used and developed by the [TERRA Reference](http://terraref.org) program as well as by the [PEcAn project](http://pecanproject.org).
15
15
16
16
For more information about BETYdb, see the following:
Copy file name to clipboardExpand all lines: traits/01-web-access.Rmd
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -4,10 +4,10 @@
4
4
5
5
### Web interface
6
6
7
-
* Sign up for an account at https://terraref.ncsa.illinois.edu/bety
7
+
* Sign up for an account at https://terraref.org/bety
8
8
* Sign up for the TERRA REF [beta user program](https://docs.google.com/forms/d/e/1FAIpQLScIUJL_OSL9BvBOdlczErds3aOg5Lwz4NIdNQnUiXdsLsYdhw/viewform)
9
9
* Wait for database access to be granted
10
-
* Your API key will be sent in the email. It can also be found - and regenerated - by navigating to the Users page (data --> [users](https://terraref.ncsa.illinois.edu/bety/users)) in the web interface.
10
+
* Your API key will be sent in the email. It can also be found - and regenerated - by navigating to the Users page (data --> [users](https://terraref.org/bety/users)) in the web interface.
11
11
12
12
TODO add signup info from handout
13
13
@@ -18,7 +18,7 @@ On the Welcome page there is a search option for trait and yield data. This tool
18
18
19
19
### Download search results as as csv file from the web interface
20
20
21
-
* Point your browser to https://terraref.ncsa.illinois.edu/bety/
21
+
* Point your browser to https://terraref.org/bety/
22
22
* login
23
23
* enter "NDVI" in the search box
24
24
* on the next page you will see the results of this search
Copy file name to clipboardExpand all lines: traits/04-danforth-indoor-phenotyping-facility.Rmd
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -19,12 +19,12 @@ library(traits)
19
19
20
20
## Connect to the TERRA REF Trait database
21
21
22
-
Unlike the first two tutorials, now we will be querying real data from the public TERRA REF database. So we will use a new URL, https://terraref.ncsa.illinois.edu/bety/, and we will need to use our own private key.
22
+
Unlike the first two tutorials, now we will be querying real data from the public TERRA REF database. So we will use a new URL, https://terraref.org/bety/, and we will need to use our own private key.
0 commit comments