Grasshopper

algorithmic modeling for Rhino

Hello All, I am trying to plot data generated outside of Grasshopper onto a Ladybug psych chart, but I cannot figure out how to do this. I'm still quite new to Grasshopper and Ladybug.

I have gone through Chris Mackey's excellent youtube tutorials on the psych chart, I have scanned the forums and googled my best, but am still stuck so any assistance would be greatly appreciated!

My assumption was that I could copy DBT and RH data into panels and then plug those into the psych chart. This isn't working but I'm not sure how else to approach this.

I have tried a few things and have come across the following errors:

1) The psych chart does not work if I plug in more than 2 data points for dry bulb & RH (unless I'm plugging in EPW data, of course). I get the following error: "1. Solution exception:index out of range: 0"

2) I can't paste in all 8760 lines of data into a panel. Sometimes I get around 4700 lines in, other times, it's around 5600. I thought it was an issue with not being able to store that much data while copying, but when I hit a return after the last line of data, it doesn't let me add another line.

3) (perhaps related?) I noticed that if I plug EPW data into panels and then into the psych chart component I get the error: "1. Solution exception:unsupported operand type(s) for -: 'str' and 'int'" I assume this is why just copying data into a panel to plug into the psych chart component doesn't work?

I have attached examples replicating the above issues.  Thanks in advance for your help!

Views: 230

Attachments:

Replies are closed for this discussion.

Replies to This Discussion

Hi Priya,

1) The values being provided are string type (letters), I converted them to numbers. It works now.

2) I am not sure why this happens, but I am assuming you are trying to do this in order to create a custom list using your data. For that, you can use native grasshopper "Replace Items" component. I have used the same in the attached file. Please note how the value of drybulb temperature at index 8757 is replaced. You could use the similar logic to make a custom list. I also supplied the output of this process to psychchart component, it works.

3) There are special functions embedded in Ladybug / Honeybee components to accept and parse output of EPW data. Therefore, if you intend to use EPW data, you should directly connect the outputs of import EPW data to the component where you wish to use them.

I have turned the preview off from some of the psychcharts. To turn them, hover over their icon, right-click and click preview.

-Devang

Attachments:

Thank you, Devang!  Yes, I am trying to create a custom list with my own data so the replace items component is very helpful.  I'm now able to plot my data on the psych chart as I was originally intending.  I really appreciate you taking the time to help me with this!

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service