The solar_apparent_time
Python package translates Python datetime between solar apparent time and Coordinate Universal Time (UTC).
Gregory H. Halverson (they/them)
gregory.h.halverson@jpl.nasa.gov
NASA Jet Propulsion Laboratory 329G
This package is available on PyPi as a pip package called solar-apparent-time
with dashes.
Import this package as solar_apparent_time
with under-scores.
import solar_apparent_time
Converts Coordinated Universal Time (UTC) to solar apparent time at given longitude for single time.
Parameters:
time_UTC
(datetime): The UTC time.lon
(float): The longitude in degrees.
Returns:
- datetime: The solar time at the given longitude.
Converts solar apparent time to Coordinated Universal Time (UTC) at given longitude for single time.
Parameters:
time_solar
(datetime): The solar time.lon
(float): The longitude in degrees.
Returns:
- datetime: The UTC time at the given longitude.
Calculates the UTC offset in hours for an area defined by a RasterGeometry
object from the rasters
package.
Parameters:
geometry
(rasters.RasterGeometry): The raster geometry.
Returns:
- rasters.Raster: The UTC offset in hours.
Calculates the day of the year for a given UTC time and an area defined by a RasterGeometry
object from the rasters
package.
Parameters:
time_UTC
(datetime): The UTC time.geometry
(rasters.RasterGeometry): The raster geometry.
Returns:
- rasters.Raster: The day of the year.
Calculates the hour of the day for a given UTC time and an area defined by a RasterGeometry
object from the rasters
package.
Parameters:
time_UTC
(datetime): The UTC time.geometry
(rasters.RasterGeometry): The raster geometry.
Returns:
- rasters.Raster: The hour of the day.