Wendeng

Zi Wei Dou Shu: method and sources

How the chart is made, which parts this site checked separately, and which parts rest on the library alone.

The chart program

Star positions are computed by the open-source library iztro 2.6.5 (by SylarLong, MIT licence). The lunar conversion is done by the calendar library it brings with it.

What this site checked

With its own formulas, this site re-derives the five facts every chart hangs on: the Life palace, the body palace, the five-element class, and the positions of 紫微 and 天府. The other twelve main stars follow those two in a fixed order.

  • On 9,180 charts sampled from 1920 to 2030 (子 to 亥 hours), all five agree with the library.
  • Every chart is checked for structure: twelve palaces on twelve branches, each main star once, exactly one body palace.

Minor stars, brightness, the four transformations and the ages of the periods were not checked separately; they are the library's. Each time a chart is made the five facts are derived again, and the report says so plainly if they ever differ.

Conventions

ItemUsed hereOther practice
Start of the lunar yearChinese New YearStart of Spring
Birth in a leap monthDays 1 to 15 count as that month, later days as the nextAlways that month; always the next
11 pm to midnightLate 子 hour, same dayThe next day
Star placementThe library's default rules (the common 全书 line)Other schools place some stars differently

About the birth time

The chart uses the Gregorian date and the clock hour you enter. Unlike the BaZi tool, it does not convert old time offsets or true solar time. Hours come in two-hour blocks; if the birth is near the edge of a block, cast the neighbouring hour as well and compare.

Not included yet

  • Readings of each palace and of the related palaces together.
  • Readings of ten-year periods and years.
  • The many small "adjective" stars.

Sources

  • 紫微斗数全书, Ming printing, attributed to Chen Xiyi with a preface by Luo Hongxian.
  • iztro 2.6.5 by SylarLong, MIT licence.

Versions

Zi Wei engine 0.1.0 (November 2026): first version.

Use the Zi Wei Dou Shu toolBack to the beginner page