determine_lat_lon

class contrib.misc.determine_lat_lon.DumpFindMomentOfEquinoxesOrSolstices[source]

Bases: BahaiCalendar

WC_DATA

World Centre dates.

Type:

tuple

WC_DATA_183_216 = ((183, (2026, 3, 20), (2026, 3, 20, 14, 46)), (216, (2059, 3, 19), (2059, 3, 20, 14, 44)))
_find_data(year, wc_ss, nasa_ve, options, *, test_lon=None)[source]
dump_sunset_after_ve(options)[source]

Find the sunset before the Vernal Equinox or the sunset after if it is less than or equal to 1 minute after the Vernal Equinox.

Use -v

find_longitude(options)[source]

Find the best longitude for all 50 years.

Note

  1. Sunset is later going west.

  2. Sunset must be before the VE unless it’s only a minute before then it can be after.

-l with -L Optional -F, But be ware this will take many hours to complete.

contrib.misc.determine_lat_lon.fmt_float(value, left=4, right=4, leading_zero=False)[source]

Format one float so that it is visually centered on the decimal point.

Parameters:
  • value (float | int | str) – The number to format.

  • left (int) – Width to reserve on the left of the decimal (including any minus sign).

  • right (int) – Number of digits to show after the decimal.