Skip to content

Commit

Permalink
Added groundscan to moduleAnalysis
Browse files Browse the repository at this point in the history
  • Loading branch information
sofiatoropovaa committed Nov 8, 2023
1 parent f121108 commit 1c4fa7f
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions bifacial_radiance/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -4440,7 +4440,7 @@ def moduleAnalysis(self, scene, modWanted=None, rowWanted=None,
sensorsy=9, sensorsx=1,
frontsurfaceoffset=0.001, backsurfaceoffset=0.001,
modscanfront=None, modscanback=None, relative=False,
debug=False):
debug=False, sensorsground=None):

"""
Handler function that decides how to handle different number of front
Expand Down Expand Up @@ -4788,8 +4788,16 @@ def _checkSensors(sensors):
backscan2 = _modDict(originaldict=backscan, moddict=modscanback, relative=relative)
else:
backscan2 = backscan.copy()

return frontscan2, backscan2

if sensorsground is not None:
groundscan = frontscan2.copy()
groundscan['zstart'] = 0.05 # Set it 5 cm from the ground.
groundscan['zinc'] = 0 # No tilt necessary.
groundscan['yinc'] = pitch / (sensorsground - 1)

return frontscan2, backscan2, groundscan

return frontscan2, backscan2

def analyzeRow(self, octfile, scene, rowWanted=None, name=None,
sensorsy=None, sensorsx=None ):
Expand Down

0 comments on commit 1c4fa7f

Please sign in to comment.