Update data/solar_calculations.py
Browse files
data/solar_calculations.py
CHANGED
|
@@ -84,7 +84,7 @@ class SolarCalculations:
|
|
| 84 |
if first_hour:
|
| 85 |
st.write(f"- **Equation of Time (EOT)**: {EOT:.2f} minutes")
|
| 86 |
|
| 87 |
-
standard_time = hour -
|
| 88 |
LST = standard_time + (4 * (lambda_std - longitude) + EOT)/60
|
| 89 |
if first_hour:
|
| 90 |
st.write(f"- **Local Solar Time (LST)**: {LST:.2f} hours")
|
|
|
|
| 84 |
if first_hour:
|
| 85 |
st.write(f"- **Equation of Time (EOT)**: {EOT:.2f} minutes")
|
| 86 |
|
| 87 |
+
standard_time = hour - 1 + 0.5 # Convert to decimal, assume mid-hour
|
| 88 |
LST = standard_time + (4 * (lambda_std - longitude) + EOT)/60
|
| 89 |
if first_hour:
|
| 90 |
st.write(f"- **Local Solar Time (LST)**: {LST:.2f} hours")
|