示例#1
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))
     ]
示例#2
0
 def nabo_7_unknown(self,
                    month: List[BabylonianDay]) -> List[AbstractQuery]:
     # Mercury was balanced 6 fingers above Mars.
     res1 = AngularSeparationQuery(self.db, MERCURY, MARS, 6 * FINGER,
                                   6 * FINGER, EclipticPosition.ABOVE,
                                   SearchRange.any_day(month))
     return [res1]
示例#3
0
 def year_14_month_a(self,
                     month: List[BabylonianDay]) -> List[AbstractQuery]:
     range = SearchRange.any_day(month)
     return [
         PlanetaryEventQuery(self.db, SATURN, OuterPlanetPhenomena.LA,
                             range)
     ]
示例#4
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))
     ]
示例#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_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))
     ]
示例#7
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))
     ]
示例#8
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))
     ]
示例#9
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]
示例#10
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))
     ]
示例#11
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))
     ]
示例#12
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))
     ]
示例#13
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))
     ]
示例#14
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))
     ]
示例#15
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))
     ]
示例#16
0
 def year_4_month_unknown(
         self, month: List[BabylonianDay]) -> List[AbstractQuery]:
     range = SearchRange.any_day(month)
     res1 = PlanetaryEventQuery(self.db, SATURN, OuterPlanetPhenomena.FA,
                                range)
     res2 = AngularSeparationQuery(self.db, SATURN, LEO.central_star, 0,
                                   LEO.radius, None, range)
     return [res1, res2]
示例#17
0
 def year_11_month_unknown(
         self, month: List[BabylonianDay]) -> List[AbstractQuery]:
     range = SearchRange.any_day(month)
     res1 = PlanetaryEventQuery(self.db, SATURN, OuterPlanetPhenomena.FA,
                                range)
     res2 = AngularSeparationQuery(self.db, SATURN, ANTARES, 0, 20,
                                   EclipticPosition.ABOVE, range)
     return [res1, res2]
示例#18
0
 def year_2_month_5(self,
                    month: List[BabylonianDay]) -> List[AbstractQuery]:
     any_day = SearchRange.any_day(month)
     res1 = PlanetaryEventQuery(self.db, SATURN, OuterPlanetPhenomena.FA,
                                any_day)
     res2 = AngularSeparationQuery(self.db, SATURN, EPSILON_LEONIS, 0, 20,
                                   None, any_day)
     return [res1, res2]
示例#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_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))
     ]
示例#21
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))
     ]
示例#22
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))
     ]
示例#23
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))
     ]
示例#24
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))
     ]
示例#25
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))
     ]
示例#26
0
 def year_0_month_2(self,
                    month: List[BabylonianDay]) -> List[AbstractQuery]:
     # 1 Accession year of Šamaš-šumu-ukīn.
     # 2 month II, (after) 5 months;
     # 3 (eclipse) which was omitted.
     # 4 At 40° after sunrise.
     return [
         LunarEclipseQuery(
             self.db,
             FirstContactTime(40, FirstContactRelative.AFTER_SUNRISE),
             ExpectedEclipseType.UNKNOWN, None, None,
             SearchRange.any_day(month))
     ]
示例#27
0
 def year_28_month_b(self,
                     month: List[BabylonianDay]) -> List[AbstractQuery]:
     # 10' [Month IX, the 1]5th? 3 ½ bēru after sunset,
     # 11' it began [in] the east. All of it was covered.
     # 12· It cleared? in the west?. [nn] bēru onset and clearing.
     t = 3.5 * BERU_US
     return [
         LunarEclipseQuery(
             self.db, FirstContactTime(t,
                                       FirstContactRelative.AFTER_SUNSET),
             ExpectedEclipseType.TOTAL, None, None,
             SearchRange.any_day(month))
     ]
示例#28
0
 def year_5_month_c(self,
                    month: List[BabylonianDay]) -> List[AbstractQuery]:
     # 13 [Month XI,] (after) 5 months, 3 ½ bēru after sunset,
     # 14 [....] two-thirds was covered. In the south it was covered. In the west? [it cleared.]
     # 15 [In?] its eclipse, .... [....]
     t = (3.5 * BERU_US)
     return [
         LunarEclipseQuery(
             self.db, FirstContactTime(t,
                                       FirstContactRelative.AFTER_SUNSET),
             ExpectedEclipseType.PARTIAL, None, None,
             SearchRange.any_day(month))
     ]
示例#29
0
 def year_18_month_2(self,
                     month: List[BabylonianDay]) -> List[AbstractQuery]:
     # 1 (Year) 18 of Šamaš-šumu-ukīn,
     # 2 month II, (after) 5 months,
     # 3 (eclipse) which was omitted.
     # 4 At 1,0° before sunset.
     t = (1 * 60) + 0
     return [
         LunarEclipseQuery(
             self.db, FirstContactTime(t,
                                       FirstContactRelative.BEFORE_SUNSET),
             ExpectedEclipseType.UNKNOWN, None, None,
             SearchRange.any_day(month))
     ]
示例#30
0
 def year_2_month_b(self,
                    month: List[BabylonianDay]) -> List[AbstractQuery]:
     # 4  [Month VII, the 1]4th?, 1 ⅔ bēru 5°, variant 1 ½ bēru, after sunset,
     # 5  it began in the [....] north; half was covered. In the north and west it began
     # 6  [to cl]ear. [1] ½ bēru onset and clearing. The west wind blew.
     t = 1.5 * BERU_US
     return [
         LunarEclipseQuery(
             self.db, FirstContactTime(t,
                                       FirstContactRelative.AFTER_SUNSET),
             ExpectedEclipseType.PARTIAL,
             CompositePhaseTiming(0.5 * BERU_US), None,
             SearchRange.any_day(month))
     ]