Grasshopper

algorithmic modeling for Rhino

Just a quick question, can the wet bulb temperature be extracted from the epw file? I only see drybulb temp and dewpoint temp outputs from the Ladybug_Import epw component. Thank you!

Views: 1428

Replies are closed for this discussion.

Replies to This Discussion

EPW file doesn't have wet bulb temperature already calculated. I'm pretty sure that Chris should have a method for calculating wet bulb as he is using it for the Psychrometric chart. I'm not sure if it's exposed as an output.

Hi Mostapha and Aaron


I have made a new small component that calculates wet bulb temperature from EPW files.
I have used a formula made by J. Sullivan and L. D. Sanders of the Center for Experiment Design and Data Analysis (NOAA - National Oceanic and Atmospheric Administration).
I have put a part of code that I have translated and modified a bit from javascript into Python. It works fine, but I'm new to Python. Perhaps, It could be raw.

Bests

Antonello

Attachments:

Antonello,

You are rocking these forums, man!!!!  The helpfulness of your comments never ceases!

This wet bulb component is awesome and, if you are ok with it, I think that we should integrate the component into the Ladybug 'AnalyzeWeatherData' tab and your 'WBFUNC' function for wet bulb temperature into the Ladybug_Ladybug ComfortModels class.

Right now, all of the functions that I have involving wet bulb temperature are fairly hacky and having your elegant function there would be a huge help in present+future cases.  Notably, this bit of code that I use in the pych chart to derive a dry bulb temperature from wet bulb is really hacky and its brevity is more of an expression of my laziness than anything else. I know the "while" loop in your function might make this difficult but, if you can see any way to reverse-calculate dry-bulb and absolute humidity from wet bulb and relative humidity, this might make this application more elegant.

In any case, would you be able to send a pull request of an updated Ladybug_Ladybug and your new component to the Ladybug github?  It would be nice to have this included in the next stable release of Ladybug that is happening around next Sunday (the 24th).  That way, we can include it in the release notes and we can spread awareness about it.  Let me know if you need any guidance on putting together a pull request as I know it can be confusing for even seasoned github users.

Finally, I have one suggestion that might make your component more applicable to a wide variety of cases and this is to have three separate inputs for drybulb temperature, relative humidity, and barometric pressure instead of one 'epwFile' input.  This will allow people to easily calculate wet bulb if they have single values of dry bulb/relhumid or if they have the data in a format that is not an EPW but they can get it into GH.  This will also make it clearer to new users how the wet bulb is derived from air temperature, humidity, and pressure.  Let me know your thoughts on this and, if you agree, I can also help get your component in that format.  I have some functions that I use for the comfort calculator components that help ensure the readability of data in these different formats.

Great work!!!!!

-Chris

Hi Chris

Thank you, Chris! I'm really interested in Ladybug+Honeybee! It would be great to add it to Ladybug_Ladybug and the component, too.

Having followed your advice about changing the inputs, I have modified the
component. If you are interested in, you can see the attached file. I know it is not perfect it needs some revisions, but it works very good. And if you want you will edit it. It would be great learn more about Python, so your helpfulness is very welcome.


About Ladybug github... I need a guidance, yes. This is a new world for me, but I'm really happy to discover it!


Thank you again, Chris! Please, let me know about the component.

Attachments:

This is nice Antonello. Thanks.

I have one wish and one think for you to check.

The wish: To connect the data directly without passing through the LB_separateData. Not critical, but you can save one step in the process.

The check: Testing the "second mode" in your file i noticed that changing the analysis period changes the results. Sometimes the changes are to big to bare. Try month 1 to 4 and then 1 to 8, etc.

Thanks and keep going,

-A.

Hi Abraham

Thanks for your reply. I'll try to connect directly EPW data making a good piece of script. I searched a method to do that yesterday, without good results. Anyway, I'll keep on doing research.

About the 'second mode', I thought about all possible combinations with other Ladybug's components. In the second mode it can calculate Wet-Bulb Temperature and Dew-Point Temperature from hourly data or average data.
I have done the check you asked me.

1 to 4

1 to 8

first mode vs second mode

Thaks again

Bests

Antonello

Hi Antonello,

I see. I updated the file in my computer to latest LB_HB and then i get the inconsistencies. You can try. The results change. Using the version you uploaded it works fine. So something with the new definitions is messing the results. Here i suppose Mostapha or Chris can assist.

For the first issue (connecting directly EPW) see attached, red circle for a working version in first mode.

-A.

Attachments:

Abraham

Thanks for your help. I have modified the component. It is suitable for Epw weather data and for other generic weather data.
I've fixed some warning messages and it works fine using my version. I'll wait Chris and Mostapha for the problem between LB_HB version and the component.

Bests
Antonello

Attachments:

I'm late to the party! Thanks Antonello for your great work and thank you Abraham for providing feedback. Can we move this discussion to github?

I'm not sure if I understand the issue with inconsistencies. I'm not sure if we have made any changes in importEPW between the two version.

I also have some comments about the inputs which I will add to the issue on github.

Thanks again,

Mostapha

Antonello,

I see you are referring to the equation of "J. Sullivan and L. D. Sanders of the Center for Experiment Design and Data Analysis (NOAA - National Oceanic and Atmospheric Administration)" from 1974.

There is some later research that has been done since. What has made you chose for this specific equation?

Hi Luc, Thank you for posting this comment. Can you tell us a little bit more about the results that you think doesn't look right? Maybe open a new discussion if it's hard to share them as a comment.

Hi LucDav,

Sorry for my late reply, I used this method:

http://www.srh.noaa.gov/images/epz/wxcalc/wetBulbTdFromRh.pdf

Before to choose it, I also tried other methods, such as this one:

http://journals.ametsoc.org/doi/pdf/10.1175/JAMC-D-11-0143.1

But I think the NOAA method is more complete, especially if you have 100% of RH or extreme temperature values.
If you have found some discrepancies please post them here or open a new discussion as Mostapha told you.
If you have some new formulas or methods more accurate please post the links here, so we can compare the results.

Best

Antonello

RSS

About

Translate

Search

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service