Yin Pan Qi Men
Hour-based Yin Pan Qimen Dunjia: ju number, earth and heaven plates, value star and door, nine palaces. Yin Pan ju by default; Chaibu optional.
Yin Pan: (lunar year branch no. + lunar month + lunar day + hour branch no.) mod 9. Chaibu: solar term sets the ju, the day-pillar Fu Tou sets the upper/middle/lower yuan.
About Yin Pan Qimen Dunjia
What it is
Qimen Dunjia lays out the Three Wonders and Six Instruments, nine stars, eight doors and eight deities on the nine palaces for a given hour, to judge timing and direction. Yin Pan is a modern school that sets the chart number from the lunar year, month, day and hour.
How the chart is cast
Yin Pan ju = (lunar year branch number + lunar month + lunar day + hour branch number) mod 9, with 0 as 9. Yang Dun runs from the winter solstice to the summer solstice, Yin Dun the other half. Chaibu is also available: the solar term sets the ju and the day pillar's Fu Tou sets the yuan.
The earth plate starts Wu in the ju palace and follows the Lo Shu order (forward in Yang Dun, backward in Yin Dun); the centre palace lodges in Kun 2.
The value star moves to the palace of the hour stem; the value door moves by the hour count from the xun head. The eight deities start at the hour-stem palace, clockwise in Yang Dun and counter-clockwise in Yin Dun.
Reading the board
South is at the top. Each palace shows deity, star and door, with heaven and earth stems at the bottom right. Open, Rest and Life are auspicious doors (green); Death, Fear and Harm are inauspicious (red).