SUNRISE: sunrise and sunset times

버전 1.4.1 (14.9 MB) 작성자: François Beauducel
Computes sunrise and sunset times from any geographical location on Earth, and computes the geolocation from sunrise/sunset times.
다운로드 수: 1.3K
업데이트 날짜: 2021/1/4

This function computes sunrise and sunset times from any location on Earth (latitude, longitude and altitude), for a given date and timezone. The function is fully vectorized so any input parameters can be scalars, vectors or matrix (of the same size).

Without any argument, sunrise will try to guess your location (needs internet connection).

NEW: It is also possible to use two reverse functions:
- from the day length, it computes the corresponding latitude;
- from sunrise and sunset date/time it computes the corresponding latitude and longitude.
Both reverse function need altitude as input argument.

Examples:

To get sunrise/sunset of your current location:
>> sunrise
Location: 48.8582 °N, 2.3387 °E, 0 m
Sunrise: 10-Oct-2017 08:03:41 +02
Sunset: 10-Oct-2017 19:13:49 +02
Day length: 11h 10mn 8s

To compute the latitude corresponding to 14h of daylight at altitude 0m on April 21, 2019:
>> sunrise(14/24,0,'2019-04-21','day2lat')
Estimated latitude: 49.076°N

To compute the latitude and longitude corresponding to specific sunrise and sunset times:
>> sunrise('22-Apr-2019 04:52:12','22-Apr-2019 18:51:04',0,'sun2ll')
Estimated location: 47.9995°N, 2.00142°E

Type help sunrise or doc sunrise to get syntax and full documentation. See the function code for further explanations.

인용 양식

François Beauducel (2024). SUNRISE: sunrise and sunset times (https://github.com/beaudu/sunrise/releases/tag/v1.4.1), GitHub. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2011b
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
도움

줌: SOLAR_GUI

Community Treasure Hunt

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

Start Hunting!
버전 게시됨 릴리스 정보
1.4.1

See release notes for this release on GitHub: https://github.com/beaudu/sunrise/releases/tag/v1.4.1

1.4

- fix an issue in reverse function for western longitudes

1.3.0.1

improves description

1.3.0.0

adds reverse functions to compute lat/lon from sunrise/sunset (thanks to a suggestion by Jaechan Lim)

1.1.0.0

- removes dependency from jsondecode function (for automatic location)
- automatic detection of local timezone (needs Java activated)

1.0.0.0

이 GitHub 애드온의 문제를 보거나 보고하려면 GitHub 리포지토리로 가십시오.
이 GitHub 애드온의 문제를 보거나 보고하려면 GitHub 리포지토리로 가십시오.