Skip to content

Commit

Permalink
Added xstart and ystart to moduleAnalysis
Browse files Browse the repository at this point in the history
  • Loading branch information
sofiatoropovaa committed Nov 19, 2023
1 parent 124b2da commit 2430494
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bifacial_radiance/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -4792,11 +4792,13 @@ def _checkSensors(sensors):
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
Expand Down

0 comments on commit 2430494

Please sign in to comment.