Skip to content

Commit

Permalink
Modified logic with groundscan in moduleAnalysis
Browse files Browse the repository at this point in the history
  • Loading branch information
sofiatoropovaa committed Nov 10, 2023
1 parent 1c4fa7f commit 1692460
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions bifacial_radiance/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -4791,9 +4791,13 @@ def _checkSensors(sensors):

if sensorsground is not None:
groundscan = frontscan2.copy()
groundsensorspacing = pitch / (sensorsground - 1)

groundscan['zstart'] = 0.05 # Set it 5 cm from the ground.
groundscan['zinc'] = 0 # No tilt necessary.
groundscan['yinc'] = pitch / (sensorsground - 1)
groundscan['xinc'] = groundsensorspacing * np.sin(azimuth)
groundscan['yinc'] = groundsensorspacing * (-1 * np.cos(azimuth))
groundscan['Ny'] = sensorsground
groundscan['orient'] = '0 0 -1'

return frontscan2, backscan2, groundscan

Expand Down

0 comments on commit 1692460

Please sign in to comment.