lstpressure.sun
lstpressure.sun
- class lstpressure.sun.Sun(yyyymmdd: str, latitude: str | float | None = None, longitude: str | float | None = None, provider: LocationProviderType | None = LocationProviderType.MEERKAT)
Sun statistics for a particular date, at a particular lat/long.
Attributes
- dawndatetime
The dawn time for the given date and location.
- dawn_lstdatetime
The dawn time converted to Local Sidereal Time (LST) for the given date and location.
- sunrisedatetime
The sunrise time for the given date and location.
- sunrise_lstdatetime
The sunrise time converted to Local Sidereal Time (LST) for the given date and location.
- noondatetime
The solar noon time for the given date and location.
- noon_lstdatetime
The solar noon time converted to Local Sidereal Time (LST) for the given date and location.
- sunsetdatetime
The sunset time for the given date and location.
- sunset_lstdatetime
The sunset time converted to Local Sidereal Time (LST) for the given date and location.
- duskdatetime
The dusk time for the given date and location.
- dusk_lstdatetime
The dusk time converted to Local Sidereal Time (LST) for the given date and location.
Parameters
- latitudefloat | str
The latitude of the location in decimal degrees or string format.
- longitudefloat | str
The longitude of the location in decimal degrees or string format.
- yyyymmddstr
The date in ‘YYYYMMDD’ format for which sun statistics are calculated.
Raises
- ValueError
If the date format is incorrect or if the location coordinates cannot be normalized.
- class lstpressure.sun.location_providers.AstralProvider
- class lstpressure.sun.location_providers.LocationProvider
- class lstpressure.sun.location_providers.MeerKATProvider