vlf4ions.sunrise_sunset
Created on Tue Apr 1 17:10:28 2025
@author: pteysseyre
Functions
|
Check whether the current time is greater than the sunrise time and less than sunset for this particular station and day |
|
Returns the sunrise (civil + 1 hr) and sunset (civil - 1 hr) times (in UT) |
|
Returns the solar zenith angle (in rad) at the latitude/longitude given in input |
- vlf4ions.sunrise_sunset.get_sza(today, lat, lon)[source]
Returns the solar zenith angle (in rad) at the latitude/longitude given in input
- Parameters:
today – Datetime for the time of interest
lat – Latitude of interest (in °)
lon – Longitude of interest (in °)
- Returns:
sza, solar zenith angle (in rad)
- vlf4ions.sunrise_sunset.get_sunrise_sunset(today, path)[source]
Returns the sunrise (civil + 1 hr) and sunset (civil - 1 hr) times (in UT)
- Parameters:
today – datetime (may only contain the year, month and day)
path – path to the precomputed sunrise/sunset times
- Returns:
sunrise and sunset times for this day (in UT)
- vlf4ions.sunrise_sunset.check_if_daytime(today, path)[source]
Check whether the current time is greater than the sunrise time and less than sunset for this particular station and day
- Parameters:
today – datetime (may only contain the year, month and day)
path – path to the precomputed sunrise/sunset times
- Returns:
Boolean, if we are in daytime