NREL / bifacial_radiance

Toolkit for working with RADIANCE for the ray-trace modeling of Bifacial Photovoltaics
https://bifacial-radiance.readthedocs.io
BSD 3-Clause "New" or "Revised" License
89 stars 48 forks source link

421 make image #422

Closed cdeline closed 2 years ago

cdeline commented 2 years ago

Adds new functions ModuleObj.saveImage and SceneObj.saveImage to save .hdr images of a module or scene. These are run by default in the modelchain if simulationParamsDict['saveImage'] = True. The gui will set saveImage = True by default.

cdeline commented 2 years ago

At the moment the ModuleObj.saveImage is working well. The SceneObj.saveImage function might need some tweaks to get the correct view figured out.
Under the hood, if you have a trackerdict with multiple entries, the model chain will try to take the scene closest to 20 degree tilt for the image. This could be updated if it's not what we want. A default ground (concrete material) and sun (due East or West azimuth and 65 elevation) are created. These values could also be changed if it's not what we want.