Rhino version Rhino 8 SR10 2024-8-13 (Rhino 8, 8.10.24226.13001, Git hash:master @ c36ab43d576d4854b29b091b6b3a38e09decabf5). I am running this under the .Net Framework.
Pollination Rhino Plugin version 1.50.1
I am referring an EPW file from desktop. Don’t see any error but the commands don’t seem to work when I have a local EPW.
The ProjectInfo Dialog is using the ladybug_rhino python module to retrieve location data from EPW. It seems this download.extract_project_info doesn’t support a local EPW path yet.
from ladybug_rhino import download
updated_project_info = download.extract_project_info(project_info)
This is a question for @chriswmackey, do you think we should remove the local EPW file from the ProjectInfo Dialog, or we can support a local EPW file path in Project Info?
I think we should make the changes needed to support the local EPW files. @devang and @hlkocalioglu can correct me but I have seen offices using local modified EPW files frequently.
We probably need an initial check to see if the path is a URL before trying to download the file.
I can understand the confusion here, though I’ll admit that I thought calling the module download and the property weather_urls in the ProjectInfo JSON object made it clear that this module and that field are meant to with with URLs and not local paths. So I my original thought was that this module and field were not being used for local files.
What exactly were you hoping the module to do? Were you hoping to put in a local path to a folder containing EPW, STAT, and DDY files under the weather_urls property of the ProjectInfo JSON instead of a URL there? So the command would basically extract the ASHRAE climate zone from the STAT file in that folder and the other information from the EPW file in that folder? Were you then also expecting the environmental analysis commands that use annual data to parse the EPW file in that folder while the commands that worked from design days would use the DDY or STAT data?
If so, I can probably find a way to support this, though maybe we should be putting it under a new and different property in the ProjectInfo object instead of weather_urls. And we should be clear that this input needs to be the whole folder containing EPW, STAT and DDY for all of the environmental analysis commands to have what they need.
Also, the title of this post is mis-lableld as all of the environmental analysis commands are currently able to work with local files. You just paste the path to the local file in the first time when you start a given command (either EPW, DDY, or STAT). Then, the command will work fine with the local file for the remainder of your Rhino session.
So all of the Environmental Analysis commands that use EPWs are perfectly fine with working from local EPWs. It’s just the Project Information interface and schema that are not currently set up to specify the paths to local folders.
Ladybug supports using local EPW file and that’s where my personal behavior comes from. But let’s set that aside for this discussion.
Two reasons why I feel it would help to use local EPWs.
I expect my users to be annoyed if every time they start a Rhino session, they have to
copy the path to the EPW
click on one of the buttons
Paste the copied path
Note that there are a couple of more clicks that happen in fetching the Pollination license when the users starts Rhino for the first time. (We discourage people to never click Auto-Activate.)
Using the project info field to cache the path to a local file will reduce number of clicks that need to happen before the real work begins.
For several locations around the world, we recommend users to prioritize using the morphed EPW files that we deploy firmwide and are available on the user’s machine.
Thank you, @devang. That’s helpful. As @chriswmackey suggested, we need to make some adjustments to make the project information more flexible to handle cases like yours.
I assign this task to Chris and we will discuss it internally once he returns from vacation. We should be able to improve the whole workflow to match your expectations.
I just wanted to clarify that using local solution will usually require more clicks from the user compared to URLs, though you should hopefully be able to make it the same number of clicks if the local files are on some shared drive that all of your computers can access.
The reason why I say that local files require more clicks is because, with the current URL system, the URL gets saved into the 3DM file that you are using. So, when that 3DM file gets opened on a other machine by another user, the EPW, DDY, and STAT get automatically downloaded to the default weather folder in the user folder upon starting an environmental analysis command. So it requires zero clicks once someone sets it up the first time. Conversely, if the EPW file gets set to a local path and that file is not on the new user’s system, we will require them to manually re-assign it, thereby requiring more clicks. Granted, if you know that the local file path will reliably be on every machine that you plan on opening the 3DM file, it should be as good as the URL option.
Morphing EPW files without adjusting the DDY file seems a little bit like putting the cart before the horse to me. That is, you won’t really be able to understand the impact on future energy and comfort without first understanding how your extreme sizing criteria change with the climate (or are you assuming that they do not change?) If you are building a database for many people to use, is there a particular reason why you have not morphed these files?
I’m not sure if you have gotten the chance to think about this more but we came to the conclusion that, if you’re willing to restructure your database so that you have folder for each location, which contains an EPW, DDY and STAT, we can pretty easily support pointing the Project Information to this folder path in lieu of the URL. The DDY and STAT don’t need to be perfect if you only plan or running studies that use the EPW data. If you’re just using morphed EPW files for the publicly available weather data, then just copying the DDY and STAT files over from the publicly available ones will work with what we have in mind.
The main issue is that we set up the Project Information schema in a way that it’s meant to contain all climate information about the project. EPW files only contain a fraction of that information so it would take a lot of time and effort for us to break down the project information schema by file type so that you can specify the EPW information separately from the other data related to the climate like ASHRAE Climate Zone, clear sky radiation data, and the sizing criteria of the DDY file.
Is working from the folder with 3 files something you would consider? If so, we can probably add support for this within the next stable release of the Rhino plugin. Otherwise, you may have to be patient for a while and rely on manually pasting the path the the EPW file into the relevant commands until we can identify a good way to break down the project information data by file type.
I’m just letting you know that I added support for specifying folder paths in the “Weather URL” slot of the PO_ProjectInfo:
It’s not in an official release yet but you can test it by running the LB Versioner component if you want. Once you run the Versioner and restart Rhino, you’ll find that you can set the “Weather URL” to a file directory that contains an epw, stat, and ddy. You’ll find that all of the Environmental Analysis commands will work form these local files by default instead of the URL.
Granted, the “Get location from EPW” feature is still broken in the Rhino plugin (both for real URLs and for folder paths). @mingbo will fix this at some point and make a new official Pollination Rhino release. So I’m going to reassign this issue to him so that he can post back here once it’s all integrated.
But it seems like we’re close to having this be fully addressed.