wcmbishop / rayshader-demo

I can rayshade, and so can you!
https://wcmbishop.github.io/rayshader-demo/
57 stars 8 forks source link

get_usgs_elevation_data bug #5

Closed Matt-Siskey closed 5 years ago

Matt-Siskey commented 5 years ago

Hi there,

I've been following your rayshader tutorial so that I can create a 3D map. I've pretty much followed it exactly, except for changing the long/lat data to the region I want in the initial bbox list. When I get to the get_usgs_elevation_data function, I get the following bug:

Error in file(con, "wb") : cannot open the connection In addition: Warning message: In file(con, "wb") : cannot open file 'data/sf-elevation.tif': No such file or directory

I'm not really sure what I've done incorrectly, I've pretty much just copy and pasted the code to ensure it runs before changing any of it, except I changed the long/lat numbers in the initial bbox list. Any ideas?

Thanks for your time, Matt

edit: I'm silly and forgot to change my file.path. Doh.