Skip to content

Commit 433dd19

Browse files
Updated for clear execution of RMarkdown
1 parent 2e10a31 commit 433dd19

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

sensors/06-list-datasets-by-plot.Rmd

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ from the workbench or Globus.
1010
## Getting started
1111

1212
After installing terrautils, you should be able to import the `products` module.
13-
```{python}
13+
```{python eval=FALSE}
1414
from terrautils.products import get_sensor_list, unique_sensor_names
1515
from terrautils.products import get_file_listing, extract_file_paths
1616
```
@@ -29,7 +29,7 @@ a plot id number. The utility function `unique_sensor_names` accpets the
2929
sensor list and provides a list of names suitable for use in the
3030
`get_file_listing` function.
3131

32-
```{python}
32+
```{python eval=FALSE}
3333
sensors = get_sensor_list(None, url, key)
3434
names = unique_sensor_names(sensors)
3535
```
@@ -48,7 +48,7 @@ The geostreams API can be used to get a list of datasets that overlap a
4848
specific plot boundary and, optionally, limited by a time range. Iterating
4949
over the datasets allows the paths to all the files to be extracted.
5050

51-
```{python}
51+
```{python eval=FALSE}
5252
sensor = 'Thermal IR GeoTIFFs Datasets'
5353
sitename = 'MAC Field Scanner Season 1 Field Plot 101 W'
5454
datasets = get_file_listing(None, url, key, sensor, sitename)
@@ -58,7 +58,7 @@ files = extract_file_paths(datasets)
5858
Datasets can be further filtered using the *since* and *until* parameters
5959
of `get_file_listing` with a date string.
6060

61-
```{python}
61+
```{python eval=FALSE}
6262
dataset = get_file_listing(None, url, key, sensor, sitename,
6363
since='2016-06-01', until='2016-06-10')
6464
```
@@ -131,7 +131,7 @@ curl -o datasets.json -X GET "https://terraref.ncsa.illinois.edu/clowder/api/geo
131131
After the call succeeds, a file named *datasets.json* is created containing the returned JSON onject. As part of the
132132
JSON object there are one or more `properties` fields containing *source_dataset* parameters.
133133

134-
```{python}
134+
```{javascript eval=FALSE}
135135
properties: {
136136
dataset_name: "Thermal IR GeoTIFFs - 2016-05-09__12-07-57-990",
137137
source_dataset: "https://terraref.ncsa.illinois.edu/clowder/datasets/59fc9e7d4f0c3383c73d2905"
@@ -160,7 +160,7 @@ curl -o files.json -X GET "${SOURCE_DATASET}/files"
160160
As before, we will have a file containing the returned JSON, named *files.json* in this case. The returned JSON consists of a list
161161
of the files in the dataset with their IDs, and other data if available:
162162

163-
``` {python}
163+
``` {javascript eval=FALSE}
164164
[
165165
{
166166
size: "346069",

0 commit comments

Comments
 (0)