SolarTime
更多信息
- 太阳时通常在需要相对于太阳进行精确定向时使用,例如在太阳能、太阳跟踪器和定日镜的应用中.
- SolarTime 给出在给定日期由给定位置的日晷确定的角度.
- SolarTime 返回以赤经的时、分和秒的混合单位表示的 Quantity 角度,这与传统上沿天球赤道测量的角度相同.
- SolarTime[loc,date] 等价于 SolarTime["ApparentTime",loc,date],根据沿天球赤道以不规则速度移动的真太阳的天体位置,计算当地视太阳时或真太阳时.
- SolarTime["MeanTime",loc,date] 根据沿天球赤道以恒定速度移动的虚构平均太阳的位置,计算当地平均太阳时.
- SolarTime["EquationOfTime",loc,date] 计算给定地点和日期的时间等式,定义为 SolarTime["ApparentTime",loc,date]-SolarTime["MeanTime",loc,date].
- SolarTime[loc,date] 等价于 loc 的对跖点在 date 的恒星时与同一 date 下太阳赤经之间的差值.
- SolarTime[] 利用 Here 和 Now 来确定您当前的位置和日期.
- SolarTime[loc,date] 中的位置可以以 {lat,lon} 度数对、GeoPosition 对象或 Entity 地理位置的形式给出.
- SolarTime[loc,date] 中的日期规范可以作为 DateObject 表达式或日期字符串给出. 输入日期假定以世界时的形式给出,并由 $TimeZone 给出的本地时区加以修正.
范例
打开所有单元 关闭所有单元基本范例 (2)
范围 (5)
SolarTime[]SolarTime["ApparentTime"]SolarTime["MeanTime"]SolarTime["EquationOfTime"]SolarTime["ApparentTime"] - SolarTime["MeanTime"]SolarTime[Here]SolarTime[GeoPosition[{20, -50.5}]]SolarTime[{20, -50.5}]SolarTime[{Quantity[20, "AngularDegrees"], Quantity[-50.5, "AngularDegrees"]}]SolarTime[Entity["City", {"BuenosAires", "BuenosAires", "Argentina"}]]SolarTime["20d N, 50d 30m W"]将日期指定为 DateObject 表达式或日期列表:
SolarTime[Now]SolarTime["1 Mar 2021 11:23:01"]属性和关系 (10)
对于给定位置和日期,也可以通过 AstroPosition 算出太阳时:
date = DateObject[{2023, 11, 15, 12, 0, 0}, TimeZone -> -6];
loc = GeoPosition[{40, -90}];SolarTime[loc, date]AstroPosition[Entity["Star", "Sun"], {"TIRS", loc, date}]UnitConvert[Quantity[%["HourAngle"] + 180, "AngularDegrees"], MixedUnit["RightAscensionHMS"]]date = DateObject[{2021, 1, 8, 12, 0, 0}, TimeZone -> -5]SolarTime[GeoPosition[{40, -75}], date]SolarTime[GeoPosition[{-20, -75}], date]SolarTime[GeoPosition[{40, -60}], date]now = DateObject[TimeZone -> 0]SolarTime[GeoPosition[{90, 0}], now]SolarTime[GeoPosition[{90, 30}], now]greenwich = GeoPosition[Entity["AstronomicalObservatory", "Greenwich"]]gmt = DateObject[TimeZone -> "GMT"]SolarTime["MeanTime", greenwich, gmt]SolarTime["ApparentTime", greenwich, gmt]loc = Entity["City", {"Kashi", "Xinjiang", "China"}];date = LocalTime[loc]SolarTime[loc, date]loc = Entity["City", {"Chicago", "Illinois", "UnitedStates"}];
date = DateObject[{2021, 1, 4, 18, 0, 0}, TimeZone -> "America/Chicago"];antisid = SiderealTime[GeoAntipode[loc], date]sunRA = First[SunPosition[loc, date, CelestialSystem -> "Equatorial"]]Mod[antisid - sunRA, Quantity[24, "HoursOfRightAscension"]]UnitConvert[SolarTime[loc, date], "HoursOfRightAscension"]时间等式的定义是视太阳时和平均太阳时之间的差值,在一年中会发生变化:
loc = Here;
dates = DateRange[DateObject[{2024, 1, 1}], DateObject[{2024, 12, 31}]];eot = UnitConvert[SolarTime["EquationOfTime", #]& /@ dates, "MinutesOfRightAscension"];DateListPlot[Transpose[{dates, eot}], Axes -> True]UnitConvert[MinMax[eot], MixedUnit[{"MinutesOfRightAscension", "SecondsOfRightAscension"}]]eotPlot[year_] := With[{dates = DateRange[DateObject@{year, 1, 1}, DateObject@{year, 12, 31}]}, DateListPlot[Transpose[{dates, UnitConvert[SolarTime["EquationOfTime", #]& /@ dates]}], FrameTicks -> None, ImageSize -> 160, Epilog -> Text[year, Scaled[{0.15, 0.8}]]]]Map[eotPlot, {-1000, 1000, 2000, 3000}]loc = Entity["City", {"Madrid", "Madrid", "Spain"}];
date = DateObject[{2024, 9, 22}, TimeZone -> "Europe/Madrid"]solarNoon = AstroRiseSet[Entity["Star", "Sun"], "UpperCulmination", loc, date, TimeZone -> "Europe/Madrid"]SolarTime[loc, solarNoon]AstroPosition[Entity["Star", "Sun"], {loc, solarNoon}]civilNoon = date["MidpointInstant"]solarNoon - civilNooncivilNoons = DateRange[DateObject[{2024, 1, 1, 12, 0, 0}], DateObject[{2025, 1, 1, 12, 0, 0}]];solarNoons = AstroRiseSet[Entity["Star", "Sun"], "UpperCulmination", Here, #]& /@ civilNoons;daylengths = Differences[solarNoons];全年时间长短不一,6 月和 12 月日照时间较长,3 月和 9 月日照时间较短:
DateListPlot[Transpose[{Most@civilNoons, daylengths - Quantity[86400, "Seconds"]}], Axes -> True, TargetUnits -> "Seconds"]相关指南
-
▪
- 天文计算与数据
文本
Wolfram Research (2021),SolarTime,Wolfram 语言函数,https://reference.wolfram.com/language/ref/SolarTime.html.
CMS
Wolfram 语言. 2021. "SolarTime." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/ref/SolarTime.html.
APA
Wolfram 语言. (2021). SolarTime. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/ref/SolarTime.html 年
BibTeX
@misc{reference.wolfram_2026_solartime, author="Wolfram Research", title="{SolarTime}", year="2021", howpublished="\url{https://reference.wolfram.com/language/ref/SolarTime.html}", note=[Accessed: 02-December-2026]}
BibLaTeX
@online{reference.wolfram_2026_solartime, organization={Wolfram Research}, title={SolarTime}, year={2021}, url={https://reference.wolfram.com/language/ref/SolarTime.html}, note=[Accessed: 02-December-2026]}