Enter leaf ID, then click “Capture Sample” to record device orientation (alpha/beta/gamma), time, latitude/longitude/altitude, and computed solar elevation/azimuth. Export all data as CSV.
Current Orientation
Alpha (Z, yaw):0.00°
Beta (X, pitch):0.00°
Gamma (Y, roll):0.00°
Latest Geo
Latitude:N/A
Longitude:N/A
Altitude:N/A
Status
Recorded rows: 0
Local time: 9/22/2025, 2:53:38 PM
leafId
timestamp
latitude
longitude
altitude
alpha_deg
beta_deg
gamma_deg
sunElevation_deg
sunAzimuth_deg
No data yet. Enter ID and click “Capture Sample”.
Solar Angle Formulas
Elevation (h) and Azimuth (A) computed in this app follow common remote-sensing approximations:
h = asin( sin(φ)·sin(δ) + cos(φ)·cos(δ)·cos(H) ) [in radians] A = atan2( sin(H), cos(H)·sin(φ) − tan(δ)·cos(φ) ) [in radians] (degrees) = (radians) × 180/π Azimuth A is reported from North, clockwise (0..360).
Symbols:
φ: geographic latitude
δ: solar declination
H: hour angle (H = 15° × (solar time − 12))
Note: The implementation also includes Equation of Time (EoT) and time-zone offset to estimate apparent solar time.