Skip to content

Commit

Permalink
Merge pull request #497 from NREL/development2
Browse files Browse the repository at this point in the history
asdf
  • Loading branch information
shirubana committed Dec 4, 2023
2 parents 2acdc65 + 2430494 commit 8d8ed32
Show file tree
Hide file tree
Showing 7 changed files with 31,303 additions and 3 deletions.
20 changes: 17 additions & 3 deletions bifacial_radiance/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -4493,7 +4493,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 @@ -4841,8 +4841,22 @@ 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()
groundsensorspacing = pitch / (sensorsground - 1)
groundscan['xstart'] = x1
groundscan['ystart'] = y1
groundscan['zstart'] = 0.05 # Set it 5 cm from the ground.
groundscan['xinc'] = groundsensorspacing * np.sin(azimuth)
groundscan['yinc'] = groundsensorspacing * (-1 * np.cos(azimuth))
groundscan['Ny'] = sensorsground
groundscan['Nz'] = 0
groundscan['orient'] = '0 0 -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 8d8ed32

Please sign in to comment.