Sun Position

版本 2.0 (135.6 KB) 作者: Jeff Dozier
Contains functions for declination, solar longitude, radius vector, equation of time, times of sunrise and sunset, sun angles and azimuths.
604.0 次下载
更新时间 2021/6/25

查看许可证

Uses the distance function from the MATLAB Mapping Toolbox to calculate the arc distance to the sub-solar location. Includes checkSizes function from my general function library.
EarthEphemeris - Returns the solar declination, Earth-Sun radius vector (distance in astronomical units), solar longitude, and optionally the equation of time.
sunang - Returns cosine of sun angle, its azimuth (0 south, + east), and airmass (path length accounting for Earth curvature). Optionally accounts for refraction.
sunRiseSet - Times of sunrise and sunset.
sunslope - Cosine of illumination angle on slope

引用格式

Jeff Dozier (2024). Sun Position (https://www.mathworks.com/matlabcentral/fileexchange/74939-sun-position), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2021a
与 R2014b 及更高版本兼容
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Geodesy and Mapping 的更多信息
标签 添加标签
致谢

启发作品: Topographic Horizons

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
2.0

cleaned up internal folder structure

1.2.2

MATLAB functions calculate azimuths clockwise from North. My convention has been to use counter-clockwise from south, positive east, negative west. I added a function to let the user choose which convention to use.

1.2.1

No change in the code. Added an image showing the Global Daylight example.

1.2

Updated one of the examples

1.1.1

uploaded correct version

1.1

removed call to today(), I didn't realize it was in the Financial Toolbox, thanks to Christie for reminder to use clock() instead. Also fixed a glitch in PlotSolarPath.

1.0