Grasshopper

algorithmic modeling for Rhino

Hi every one!! i am the beginner of grasshopper.
so maybe my question is very easy.

i am trying to pick out only specific data from like below data.

0 23.8
1 35.4
2 21.5
3 14.2
4 7.01
5 -0.4
6 -8.62
7 -18.2
8 5.02
9 12.4
10 18.1
11 7.01
12 5.11
13 2.35


this data is waveform data.
i want to pick out only climax(for example in upper data, number 1 and 10) from this data.

i have this problem...that is, i do not know to do what.

i think my English is strange...so you are difficult to understanding my question.

Views: 601

Replies to This Discussion

Hi degix,

 

You can compare the current item in a list with both the previous and the next. If it is bigger than both then it is a peak.

Shift List = -1 gives the previous and Shift List = 1 gives the next.

 

Hi Danny Boyes !!

i tried as you do.

just then, i was able to do!!

i thanks that you answered very quickly.

after this, i will analyze your code and study.

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service