I have followed the steps here and mounted the metrics data of the imageless glare analysis to be eventually viewed in Para view/Pollination App.
I am wondering if its possible to also mount the DGP data in the results folder as well and GA data in the metrics folder.
Please guide me to a resource so I can understand it better.
I see that you’ve deleted the post. Let us know if we can help.
Hi @anujm1ttal, The
-viz version of the recipe already creates a visualization that includes a VTKJS file. Is this what you are looking for?
Here is the recipe.
Hi @mostapha @devang .
Thank you for replying so quickly. I have already checked out the -viz version of the recipe.
The visualization file ( vtkjs ) only has the GA data mounted on it.
I was wondering if it can also get the DGP data mounted so that the same can also be viewed on the App when you select the date and time as an input from the user.
currently I am able to do this in grasshopper by selecting the HOY in HB annual average values component and passing the values of the selected hour to the LB Spatial Map as shown in the image below.
I maybe missing something, but this hourly visualization is really powerful and i want to implement it in the pollination App.
Hi @anujm1ttal! Thank you for the clarification. The hourly visualization doesn’t come by default but you should be able to create these visualizations on the fly in the app. Let me discuss this with @devang and get back to you about the best approach. What is your end goal for this visualization? Are you including it in a report? Is it for sharing the results with a customer or internally? Do you need it for a single day at a time?
Hi @mostapha ,
So the goal is to use this app to make it easy for the team to figure out the worst possible scenarios.
It is for internal use at the moment, just to test.
Either a single day or Hourly would be okay. I am trying to figure out how to mount the hourly data in the App.
Sorry, @anujm1ttal for the delay in responding to this. I was in the middle of job changes.
So I put together this script for you. The script will show you how to use pollination apps to do what you have done in Grasshopper.
Big thanks for the script. I went much deeper into the honeybee_vtk library than ever before to understand the code.
This works perfectly to what I was looking for and I have been playing with the code a bit.
I have a few questions regarding the folder structure.
I am adding the
target_folder_path as an input to the app.
results_folder_path = st.text_input( label = ‘Enter the results folder path’, value = ’ ’ )
target_folder_path = st.text_input( label = ‘Enter the target folder path’, value = ’ ’ )
When I run the app, I can see that it generates the following in the specified
Although, its not able to read the
grids_info.json from this path and i get this error
When I change the
target_folder_path to Path(‘data’), it works fine.
target_folder_path = Path(‘data’)
and I can see that it generated the same information in the
I am not sure why it is not reading the grids_info.json from the specified
Please let me know if you have any suggestions.
you might want to update the write_config function. You’d see that path to the folder is hard coded as “data”. I believe that’s the likely culprit. This script was hurriedly put together so you should look forward to making such tweaks.
@devang thank you.
It works perfectly.
Good to know it helped @anujm1ttal. We would appreciate it if you could share on LinkedIn when your app is finished and it is a public app. If it’s not public then perhaps sharing your experience developing the app will also help.