From 169246047cf5ad543fd237387261cd2943d0b725 Mon Sep 17 00:00:00 2001 From: sofiatoropovaa <147628379+sofiatoropovaa@users.noreply.github.com> Date: Fri, 10 Nov 2023 11:34:02 -0500 Subject: [PATCH] Modified logic with groundscan in moduleAnalysis --- bifacial_radiance/main.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/bifacial_radiance/main.py b/bifacial_radiance/main.py index c87cd895..894a470b 100644 --- a/bifacial_radiance/main.py +++ b/bifacial_radiance/main.py @@ -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