Grasshopper

algorithmic modeling for Rhino

This component is opened as a reply to Aymeric Delmas's questions posted in here.

However, following the install instructions and checking for the opentopography.org availability, the component does not seem to manage to download the data... (see picture attached).Djordje, do you have any idea about what I can I do or check to fix this?

I just tried to run the component for a couple of locations and it successfully downloaded the data from opentopography.org:

When did you try to run the component? An hour ago?
Can you try again?

Other question, just to be sure, regarding the "origin_", is it the central point that you to get out of the output mesh/surface? And does it need to be the point at the actual point elevation or does it need to be the point projected on the ground floor (as I do in my definition)?

Yes, you are correct about both things: it's the central point and it will lie on the actual terrain (it will be projected to the terrain).
The latitude and longitude information from the _location input will be taken to find the origin_ point. Elevation will always be ignored, as elevation is calculated from the elevation of the point laying on the terrain at those particular latitude-longitude coordinates.

Please let me know if I did not precisely gave the answer to your questions. Or if I misunderstood your question.
We are here to help with any issue.

Views: 668

Replies are closed for this discussion.

Replies to This Discussion

Thank you very much for your quick and complete answer Djordje!

About the "origin_", thank you for your answer, that was what I was wondering.

About the component, I tried reinstalling the libraries (checking that they were unlocked) and running the component again a few minutes ago with the same result... 

It does not manage to download the data but seems to run though (it takes a while and then gives the error message).

Hi Aymeric,

Let's see what may be causing the issue:

If this second time you got the same message as in the photo you attached, then your GDAL libraries are installed correctly. If they weren't you would have been informed about it.

So something is wrong with download of the raster data from the opentopography.org to your PC.


Let's try a couple of things:

1) Paste this link into your internet browser's address box (Firefox, Chrome ...) and hit Enter:

http://opentopo.sdsc.edu/otr/getdem?demtype=SRTMGL3&west=-120.1...

Does that result in download of a file .tif?
If it does, then what is the size of that .tif file?

This indeed the issue, pasting the given link (using Chrome), the site can't be reached.



Attachments:

What you have just tried, is what the component does under the hood.
The fact that you can not manually download a raster file, means that the issue is not with the "Terran Generator 2" component.
For some reason your PC can not access the opentopography.org SRTM service.

Can you access the very website (http://opentopography.org) through your Chrome browser?

OK I see. This is weird, because this is the webpage that I usually use (http://opentopo.sdsc.edu/raster?opentopoID=OTSRTM.082015.4326.1).

I can access it and download the data manually as usual . 

http://opentopography.org switches to that http://opentopo.sdsc.edu/... link when a user accesses the "Data" section of the site. So this means you can access the http://opentopography.org website.

We can do this the other way around: I can try to download the raster file for you, and then you will copy it to certain folder from which your "Terrain Generator 2" component will create the 3d terrain.

Can you please attach your .gh file containing the "Terrain Generator 2" component? I basically want to know the latitude/longitude of your location and your radius_.

You want a 3d terrain of the whole Réunion island? Where would the origin_ point be? The center point of the island or Saint-Denis in the north part of it?

Thanks Djordje, 

It actually works with my laptop (don't know why or what is the difference). 
Anyway. Actually, I already have the .tif file for the whole Island that I used to generate a mesh with the DTM component (actually used it in .asc format). I use it to place various points based on their locations on it. 


What I would like to do, that I have not managed so far and that your component could help me to do, is to generate a Surface patch based on a radius_ and the _location of a specific place of the Island ( as your component do! ;)

At the end, it is basically using your component as a split component of the whole island .tif, instead of downloading each time the data.

Does this makes sense to you?

I have started to look at your script I can see the parts that I am interested in but my hard coding skills are quiet poor ^^

Tif file and metadata :https://we.tl/y0lg3usqb9

Hi Aymeric,

I didn't understand you.

You would like to have a terrain of the parts of Réunion island, and not of the whole Réunion island?
You would like that terrain to be a surface instead of a mesh?
Sorry If I misunderstood you.

Hi Djordje, 

no worries at all, sorry for my explanations that were not very clear.

I want to generate both the whole island (that I will bake) and parts of the island based on their location. Both things are possible with your component.

I was only wondering if it would be possible not to download the .tif data for the different parts of the island I want to generate each time. But instead, use the .tif of the whole island (since already downloaded) and use your component like a "split" component.


I understand you now. Sorry for not being able initially.

It is definitely possible.
But it would require rewriting the code of the component, which I am not really keen to do.

If you are forced to use your PC instead of the laptop, maybe you could try to:
Add the http://opentopography.org and http://opentopo.sdsc.edu links to your Windows Firewall exception list.

If that does not help, maybe you can turn off your Windows Firewall entirely. If that does not help, try turning off your antivirus entirely.
Maybe some of these applications is blocking you from downloading the .tif file.

I will try that on Monday and will let you know.

Of course, I can imagine that this will represent extra and not needed work. Thank you again for your work and your prompt and complete answers.

I will probably use it as it is and if I find another way to do it I will let you know ;)

Cheers, have a good week-end

Thanks. I am eager to hear what will happen.

Sorry if I wasn't of much help to you.

In the end, if you are forced to use your PC and not laptop, you can always use the "Terrain Generator" component instead of "Terrain Generator 2" component. It will extract the elevation data from Google earth instead of Opentopography. The elevation data is different though, as they use different sources.

By the way: I am already in love with the Karya project!!! It seems like a very interesting topic, and a perfect example of how environmental and computational aspects of design should be merged!
I will definitely check the blog to read the new information about it, once in a while

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service