示例#1
0
 def year_15_month_5(self,
                     month: List[BabylonianDay]) -> List[AbstractQuery]:
     # 12 [Year 1]5. Month V, [omitt]ed.
     return [
         LunarEclipseQuery(self.db, None, ExpectedEclipseType.UNKNOWN, None,
                           None, SearchRange.any_day(month))
     ]
示例#2
0
 def year_4_month_7(self,
                    month: List[BabylonianDay]) -> List[AbstractQuery]:
     # 11 Month VII, omitted.
     return [
         LunarEclipseQuery(self.db, None, ExpectedEclipseType.UNKNOWN, None,
                           None, SearchRange.any_day(month))
     ]
示例#3
0
 def year_14_month_6(self,
                     month: List[BabylonianDay]) -> List[AbstractQuery]:
     # 10 [Year 1]4. [Month] VI, [omitted.]
     return [
         LunarEclipseQuery(self.db, None, ExpectedEclipseType.UNKNOWN, None,
                           None, SearchRange.any_day(month))
     ]
示例#4
0
 def year_14_month_b(self,
                     month: List[BabylonianDay]) -> List[AbstractQuery]:
     # 11 [Month XII. omitt]ed .... Month XII [was intercalary]
     return [
         LunarEclipseQuery(self.db, None, ExpectedEclipseType.UNKNOWN, None,
                           None, SearchRange.any_day(month))
     ]
示例#5
0
 def year_17_month_4(self,
                     month: List[BabylonianDay]) -> List[AbstractQuery]:
     # 16 [Year] 17. Month IV, [omitted.]
     return [
         LunarEclipseQuery(self.db, None, ExpectedEclipseType.UNKNOWN, None,
                           None, SearchRange.any_day(month))
     ]
示例#6
0
 def year_26_month_11(self,
                      month: List[BabylonianDay]) -> List[AbstractQuery]:
     # 5'  Month XI, omitted. Month XII was intercalary.
     return [
         LunarEclipseQuery(self.db, None, ExpectedEclipseType.UNKNOWN, None,
                           None, SearchRange.any_day(month))
     ]
示例#7
0
 def year_27_month_3(self,
                     month: List[BabylonianDay]) -> List[AbstractQuery]:
     # 6'  Year 27. Month III, (after) 5 (months), omitted.
     return [
         LunarEclipseQuery(self.db, None, ExpectedEclipseType.UNKNOWN, None,
                           None, SearchRange.any_day(month))
     ]
示例#8
0
 def year_12_month_a(self,
                     month: List[BabylonianDay]) -> List[AbstractQuery]:
     # 5  Year 12. Month [I, omitted]
     return [
         LunarEclipseQuery(self.db, None, ExpectedEclipseType.UNKNOWN, None,
                           None, SearchRange.any_day(month))
     ]
示例#9
0
 def year_1_month_3(self,
                    month: List[BabylonianDay]) -> List[AbstractQuery]:
     # 1  [Year I of Nebukad]nezar. Month III, omitted.
     return [
         LunarEclipseQuery(self.db, None, ExpectedEclipseType.UNKNOWN, None,
                           None, SearchRange.any_day(month))
     ]
示例#10
0
    def year_31_month_unknown(
            self, month: List[BabylonianDay]) -> List[AbstractQuery]:
        # 1'  [Month XII, ....]
        # 2'  [....] ....
        # 3'  it cleared [from] east to north.
        # 4'  The south wind blew. I cubit
        # 5'  in front of Libra it was eclipsed.
        # 6'  Saturn rose in Capricorn; Mars
        # 7'  was 2 cubits in front of α Scorpii.
        # 8'  At 1,30° after sunset.
        t = (1 * 60) + 30
        range = SearchRange.any_day(month)
        eclipse_pos = EclipsePosition(LIBRA.central_star, 0, LIBRA.radius,
                                      EclipticPosition.AHEAD)
        eclipse_time = FirstContactTime(t, FirstContactRelative.AFTER_SUNSET)
        eclipse = LunarEclipseQuery(self.db, eclipse_time,
                                    ExpectedEclipseType.PARTIAL_OR_TOTAL, None,
                                    eclipse_pos, range)

        if eclipse.best is not None:
            eclipse_time = eclipse.best['closest_approach_time']
            range = SearchRange(eclipse_time - 1, eclipse_time + 1,
                                "Within a day of the eclipse")

        mars = AngularSeparationQuery(self.db, MARS, ANTARES, 2 * CUBIT,
                                      1 * CUBIT, EclipticPosition.AHEAD, range)
        saturn = AngularSeparationQuery(self.db, SATURN,
                                        CAPRICORNUS.central_star, 0,
                                        CAPRICORNUS.radius, None, range)
        return [eclipse, mars, saturn]
示例#11
0
 def year_2_month_a(self,
                    month: List[BabylonianDay]) -> List[AbstractQuery]:
     # 3  [Year 2. Month II,] (after) 5? (months), omitted. Month VI was intercalary.
     return [
         LunarEclipseQuery(self.db, None, ExpectedEclipseType.UNKNOWN, None,
                           None, SearchRange.any_day(month))
     ]
示例#12
0
 def year_10_month_8(self,
                     month: List[BabylonianDay]) -> List[AbstractQuery]:
     # 1  Month VIII, [....] .... [....]
     # 2  It cleared [in the west] and south [....] ⅔ bēru after [sunset?]
     return [
         LunarEclipseQuery(self.db, None, ExpectedEclipseType.UNKNOWN, None,
                           None, SearchRange.any_day(month))
     ]
示例#13
0
 def year_14_month_12(self,
                      month: List[BabylonianDay]) -> List[AbstractQuery]:
     # 6' [Mon]th XII, the 14th, (eclipse) which was omitted.
     # 7' .... after? sunrise?.
     return [
         LunarEclipseQuery(self.db, None, ExpectedEclipseType.UNKNOWN, None,
                           None, SearchRange.for_night_and_day(month, 14))
     ]
示例#14
0
 def year_50_month_13(self,
                      month: List[BabylonianDay]) -> List[AbstractQuery]:
     # 9' Month XII₂, the 15th [....]
     range = SearchRange.for_night_and_day(month, 15)
     return [
         LunarEclipseQuery(self.db, None, ExpectedEclipseType.UNKNOWN, None,
                           None, range)
     ]
示例#15
0
 def year_13_month_b(self,
                     month: List[BabylonianDay]) -> List[AbstractQuery]:
     # 9  [Month XII, the 1]4th. it came out eclipsed. I bēru 10° [....]
     return [
         LunarEclipseQuery(self.db, None,
                           ExpectedEclipseType.PARTIAL_OR_TOTAL, None, None,
                           SearchRange.any_day(month))
     ]
示例#16
0
 def year_18_month_8(self,
                     month: List[BabylonianDay]) -> List[AbstractQuery]:
     # 5 Month VIII, the 13th, .... [....]
     # 6 and south [....]
     range = SearchRange.for_night_and_day(month, 13)
     return [
         LunarEclipseQuery(self.db, None, ExpectedEclipseType.UNKNOWN, None,
                           None, range)
     ]
示例#17
0
 def year_2_month_1(self,
                    month: List[BabylonianDay]) -> List[AbstractQuery]:
     # 4' (Year) 2, month I, the 14th, ....
     # 5' began?. At 3°? [....]
     # 6' after sunset.
     range = SearchRange.for_night(month, 14)
     return [
         LunarEclipseQuery(self.db, None, ExpectedEclipseType.UNKNOWN, None,
                           None, range)
     ]
示例#18
0
 def year_28_month_3(self,
                     month: List[BabylonianDay]) -> List[AbstractQuery]:
     # 7'  Year 28. Month III, the 14th, ....
     # 8'  [....] .... [....] finger remaining
     # 9'  [....nn]°, it set eclipsed.
     return [
         LunarEclipseQuery(self.db, None,
                           ExpectedEclipseType.PARTIAL_OR_TOTAL, None, None,
                           SearchRange.for_night_and_day(month, 14))
     ]
示例#19
0
 def year_25_month_11(self,
                      month: List[BabylonianDay]) -> List[AbstractQuery]:
     # 4'  Month XI, evening watch, onset.
     # USAN = "first part of the night" (evening watch)
     return [
         LunarEclipseQuery(
             self.db, FirstContactTime(25,
                                       FirstContactRelative.AFTER_SUNSET),
             ExpectedEclipseType.UNKNOWN, None, None,
             SearchRange.any_day(month))
     ]
示例#20
0
 def year_25_month_5(self,
                     month: List[BabylonianDay]) -> List[AbstractQuery]:
     # 3'  Year 25. Month V, 1 ½ bēru after sunset.
     t = (1.5 * BERU_US)
     return [
         LunarEclipseQuery(
             self.db, FirstContactTime(t,
                                       FirstContactRelative.AFTER_SUNSET),
             ExpectedEclipseType.UNKNOWN, None, None,
             SearchRange.any_day(month))
     ]
示例#21
0
 def year_24_month_a(self,
                     month: List[BabylonianDay]) -> List[AbstractQuery]:
     # 1'  [....] .... [....]
     # 2'  .... beginning of night, onset [....]
     return [
         LunarEclipseQuery(
             self.db, FirstContactTime(0,
                                       FirstContactRelative.AFTER_SUNSET),
             ExpectedEclipseType.UNKNOWN, None, None,
             SearchRange.any_day(month))
     ]
示例#22
0
 def year_11_month_2(self,
                     month: List[BabylonianDay]) -> List[AbstractQuery]:
     # 3  Year 11. Month II, [....] 10° after sunset it began
     # 4  it was total, and 10? [....]
     return [
         LunarEclipseQuery(
             self.db, FirstContactTime(10,
                                       FirstContactRelative.AFTER_SUNSET),
             ExpectedEclipseType.TOTAL, None, None,
             SearchRange.any_day(month))
     ]
示例#23
0
 def year_12_month_12(self,
                      month: List[BabylonianDay]) -> List[AbstractQuery]:
     # 6  Month XII, the 15th. 10? [....nn]° after sunset [....]
     # 7  1 bēru 6° onset [and clearing.]
     length = (1 * BERU_US) + 6
     return [
         LunarEclipseQuery(self.db, None,
                           ExpectedEclipseType.PARTIAL_OR_TOTAL,
                           CompositePhaseTiming(length), None,
                           SearchRange.for_night_and_day(month, 15))
     ]
示例#24
0
 def year_0_month_8(self,
                    month: List[BabylonianDay]) -> List[AbstractQuery]:
     # 5 Month VIII, (eclipse) which was omitted.
     # 6 At 30° before sunset.
     return [
         LunarEclipseQuery(
             self.db,
             FirstContactTime(30, FirstContactRelative.BEFORE_SUNSET),
             ExpectedEclipseType.UNKNOWN, None, None,
             SearchRange.any_day(month))
     ]
示例#25
0
 def year_16_month_b(self,
                     month: List[BabylonianDay]) -> List[AbstractQuery]:
     # 14 [Month X,] the 14th. morning watch. ⅔ bēru before sunrise?.
     # 15 half of it was covered. [It set] eclipsed.
     t = (2 / 3 * BERU_US)
     return [
         LunarEclipseQuery(
             self.db,
             FirstContactTime(t, FirstContactRelative.BEFORE_SUNRISE),
             ExpectedEclipseType.PARTIAL, None, None,
             SearchRange.for_night_and_day(month, 14))
     ]
示例#26
0
 def year_32_month_6(self,
                     month: List[BabylonianDay]) -> List[AbstractQuery]:
     # 9'  (Year) 32 of Nebukadnezar,
     # 10' month VI, (eclipse) which was omitted.
     # 11' At 35° before sunset.
     return [
         LunarEclipseQuery(
             self.db,
             FirstContactTime(35, FirstContactRelative.BEFORE_SUNSET),
             ExpectedEclipseType.UNKNOWN, None, None,
             SearchRange.any_day(month))
     ]
示例#27
0
 def year_29_month_2(self,
                     month: List[BabylonianDay]) -> List[AbstractQuery]:
     # 13' Year 29. [Mon]th II, the 14th, [....]
     # 14' 1 bēru 10° before sunrise,
     t = (1 * BERU_US) + 10
     return [
         LunarEclipseQuery(
             self.db,
             FirstContactTime(t, FirstContactRelative.BEFORE_SUNRISE),
             ExpectedEclipseType.PARTIAL_OR_TOTAL, None, None,
             SearchRange.for_night_and_day(month, 14))
     ]
示例#28
0
 def year_14_month_6(self,
                     month: List[BabylonianDay]) -> List[AbstractQuery]:
     # 3' (Year) 14 of Nebukadnezar
     # 4' month VI, (eclipse) which was omitted.
     # 5' With sunrise.
     return [
         LunarEclipseQuery(
             self.db, FirstContactTime(0,
                                       FirstContactRelative.AFTER_SUNRISE),
             ExpectedEclipseType.UNKNOWN, None, None,
             SearchRange.any_day(month))
     ]
示例#29
0
 def year_17_month_10(self,
                      month: List[BabylonianDay]) -> List[AbstractQuery]:
     # 17 [Month] X, the 13th, morning watch. 1 bēru 5° [before sunrise?]
     # 18 all of it was covered. [It set eclips]ed.
     t = (1 * BERU_US) + 5
     return [
         LunarEclipseQuery(
             self.db,
             FirstContactTime(t, FirstContactRelative.BEFORE_SUNRISE),
             ExpectedEclipseType.TOTAL, None, None,
             SearchRange.for_night_and_day(month, 13))
     ]
示例#30
0
 def year_4_month_1(self,
                    month: List[BabylonianDay]) -> List[AbstractQuery]:
     # 8  [Year 4. M]onth I, the 13th, middle watch, 3 bēru 5° after sunset,
     # 9  it began in the west and north. Three quarters
     # 10 [was covered.] It cleared in the north. The north wind blew.
     t = (3 * BERU_US) + 5
     return [
         LunarEclipseQuery(
             self.db, FirstContactTime(t,
                                       FirstContactRelative.AFTER_SUNSET),
             ExpectedEclipseType.PARTIAL, None, None,
             SearchRange.for_night_and_day(month, 13))
     ]