Skip to content

Fleshed out images vignette#86

Closed
Chris-Schnaufer wants to merge 5 commits intotraits_tutorialsfrom
images_vignette
Closed

Fleshed out images vignette#86
Chris-Schnaufer wants to merge 5 commits intotraits_tutorialsfrom
images_vignette

Conversation

@Chris-Schnaufer
Copy link
Copy Markdown
Contributor

Something more to review

Copy link
Copy Markdown
Member

@dlebauer dlebauer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • need to figure out how to handle API keys to maximize user engagement
  • suggested additional notes re: requirements / assumptions

Comment thread vignettes/03-get-images-python.Rmd
Comment thread vignettes/03-get-images-python.Rmd Outdated

As mentioned in the overview, the url string will point to the API to use. In this case
we'll be using "https://terraref.ncsa.illinois.edu/clowder/api" and the key will be the
one you received in an email.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

... will users have received this in the email? Do we need to tell them to sign up? @max-zilla do you have suggestions for how to access the data that we are going to make public?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we need to tell them to sign up. I will update the doc

Co-Authored-By: Chris-Schnaufer <schnaufer@email.arizona.edu>
sensor = 'RGB GeoTIFFs Datasets'
sitename = ''
files = get_file_listing(None, url, key, sensor, sitename,
since='2018-05-01', until='2018-05-31')
Copy link
Copy Markdown
Member

@dlebauer dlebauer Jan 28, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

even after adding my API key, I get the following error:

Traceback (most recent call last):
File "", line 2, in
File "/usr/local/lib/python3.7/site-packages/terrautils/products.py", line 157, in get_file_listing
sens = get_sensor(connection, host, key, sensor, sitename)
File "/usr/local/lib/python3.7/site-packages/terrautils/products.py", line 101, in get_sensor
r.raise_for_status()
File "/usr/local/lib/python3.7/site-packages/requests/models.py", line 940, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://terraref.ncsa.illinois.edu/clowder/apiapi/geostreams/streams?key=MyAPIKEY&stream_name=RGB+GeoTIFFs+Datasets

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like you have 'apiapi' in the URL. Is that a copy/paste error or is something not clear?

@Chris-Schnaufer Chris-Schnaufer deleted the images_vignette branch January 29, 2019 22:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants