[sun_rise, sun_set] = sun_up_down(date, latitude, longitude, daylight_saving, UTC)

Versión 1.0.0.0 (1,89 KB) por Hasenearl
Calculates the sunrise and sunset times for any day.
125 descargas
Actualizado 23 ene 2017

Ver licencia

First it is important to specify two variables for Matlab to write on as shown in the title. Otherwise you will only see the sunrise time.
The date has to be enter in 'yyyy-mm-dd' format, otherwise it wont work. This date is used to calculate the Julian day. Afterwards the Julian day is used to calculate the sunrise and sunset times.
Latitude and longitude has to be entered in full degrees.
If theres daylight saving active at the specified date and location enter the full hour value your location uses for daylight savings (usually 1 but it can be different) for this value, otherwise enter zero.
For UTC enter the plus or minus value for your location without daylight saving if it is active.
This function calculates the times for sunrise and sunset and writes them on the variables in the format 'hh:mm'.

Citar como

Hasenearl (2024). [sun_rise, sun_set] = sun_up_down(date, latitude, longitude, daylight_saving, UTC) (https://www.mathworks.com/matlabcentral/fileexchange/61245-sun_rise-sun_set-sun_up_down-date-latitude-longitude-daylight_saving-utc), MATLAB Central File Exchange. Recuperado .

Compatibilidad con la versión de MATLAB
Se creó con R2014a
Compatible con cualquier versión
Compatibilidad con las plataformas
Windows macOS Linux
Categorías
Más información sobre Dates and Time en Help Center y MATLAB Answers.

Community Treasure Hunt

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

Start Hunting!
Versión Publicado Notas de la versión
1.0.0.0