sun_at — DRIVE env op

• Data kinds: any × scalar × scalar → table

• Call: import fullseye as fs; fs.ledger.sun_at(when, lat: 'float', lon: 'float', *, refraction: 'bool' = True) -> 'Dict[str, float]' (to call the implementation directly, import driveenv; driveenv.sun_at(when, lat: 'float', lon: 'float', *, refraction: 'bool' = True) -> 'Dict[str, float]'; from the registry, opsdrive.get("sun_at"))

Usage

> This operator's description has not been translated yet. The original text follows as it is.

日時(タイムゾーンつき datetime かユリウス日)の太陽の高度・方位。式は :func:geocam.sun_position(NOAA の太陽位置の式

= Meeus "Astronomical Algorithms" 第 25 章の低精度版、NOAA の大気差)をそのまま使い、日時の受け方と地球–太陽の距離を足す。

Returns

-------

dict : `elevation(度、refraction なら大気差つきの見かけ)、elevation_geometric、azimuth`(北から時計回り 度)、

`declination、eq_time(均時差 分)、hour_angle(度)、jd、distance_au、semidiameter`(度)。

NOAA が述べる精度は、日の出入りの時刻で緯度 ±72° 以内 1 分以内(1800〜2100 年)。

Raises `ValueError`: 素朴な datetime・範囲外の緯度経度。

References (sample data, literature)

• Sample-data catalog (download URLs / licences) — 2-D uses skimage.data (BSD/public domain) plus synthetic images; 3-D lists download URLs for real data sources (Stanford, PDS, …).

• Operator provenance and references — the sources of the research/methods this op family came from.

• The canonical algorithm (author, year) and its uses are named in the family usage guide above.

Runnable examples (verified samples that actually call this op)

• poc_driving_weather — py -3.11 examples/poc_driving_weather.py

Ops the type connects to (they accept table as input)

course_layout · course_occupancy · course_contains · world_build · world_camera · world_move · lidar_scan · rss_longitudinal_same

Same category (env)

julian_day · sun_events · sun_vector · sun_illuminance · koschmieder · mor_from_beta · beta_from_mor · road_row_distance


*Provenance: driveenv.py — DRIVE operator registry. This per-op note is generated by tools/opdocs.py md (do not hand-edit).*

© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.