Module: Zakuro::Version::Gihou::Solar::Adjustment

Defined in:
lib/zakuro/version/gihou/stella/solar/adjustment.rb

Overview

Adjustment 24気損益眺朒(ちょうじく)数

Defined Under Namespace

Classes: Row

Constant Summary collapse

MAP =

Returns 24気損益眺朒(ちょうじく)数.

Returns:

  • (Array<Row>)

    24気損益眺朒(ちょうじく)数

{
  touji: Row.new(stack: 0.0, per_term: +3.9546, per_day: -0.0372),         # 冬至(とうじ)
  shoukan: Row.new(stack: +54.0, per_term: +3.4091, per_day: -0.0372),     # 小寒(しょうかん)
  daikan: Row.new(stack: +100.0, per_term: +2.8636, per_day: -0.0372),     # 大寒(だいかん)
  risshun: Row.new(stack: +138.0, per_term: +2.3181, per_day: +0.0372),    # 立春(りっしゅん)
  usui: Row.new(stack: +176.0, per_term: +2.8636, per_day: +0.0372),       # 雨水(うすい)
  keichitsu: Row.new(stack: +222.0, per_term: +3.4091, per_day: +0.0372),  # 啓蟄(けいちつ)
  shunbun: Row.new(stack: +276.0, per_term: -3.7220, per_day: +0.0329),    # 春分(しゅんぶん)
  seimei: Row.new(stack: +222.0, per_term: -3.2086, per_day: +0.0329),     # 清明(せいめい)
  kokuu: Row.new(stack: +176.0, per_term: -2.6952, per_day: +0.0329),      # 穀雨(こくう)
  rikka: Row.new(stack: +138.0, per_term: -2.1818, per_day: -0.0329),      # 立夏(りっか)
  shouman: Row.new(stack: +100.0, per_term: -2.6952, per_day: -0.0329),    # 小満(しょうまん)
  boushu: Row.new(stack: +54.0, per_term: -3.2086, per_day: -0.0329),      # 芒種(ぼうしゅ)
  geshi: Row.new(stack: 0.0, per_term: -3.7220, per_day: +0.0329),         # 夏至(げし)
  shousho: Row.new(stack: -54.0, per_term: -3.2086, per_day: +0.0329),     # 小暑(しょうしょ)
  taisho: Row.new(stack: -100.0, per_term: -2.6952, per_day: +0.0329),     # 大暑(たいしょ)
  risshuu: Row.new(stack: -138.0, per_term: -2.1818, per_day: -0.0329),    # 立秋(りっしゅう)
  shosho: Row.new(stack: -176.0, per_term: -2.6952, per_day: -0.0329),     # 処暑(しょしょ)
  hakuro: Row.new(stack: -222.0, per_term: -3.2086, per_day: -0.0329),     # 白露(はくろ)
  shuubun: Row.new(stack: -276.0, per_term: +3.9546, per_day: -0.0372),    # 秋分(しゅうぶん)
  kanro: Row.new(stack: -222.0, per_term: +3.4091, per_day: -0.0372),      # 寒露(かんろ)
  soukou: Row.new(stack: -176.0, per_term: +2.8636, per_day: -0.0372),     # 霜降(そうこう)
  rittou: Row.new(stack: -138.0, per_term: +2.3181, per_day: +0.0372),     # 立冬(りっとう)
  shousetsu: Row.new(stack: -100.0, per_term: +2.8636, per_day: +0.0372),  # 小雪(しょうせつ)
  taisetsu: Row.new(stack: -54.0, per_term: +3.4091, per_day: +0.0372)     # 大雪(たいせつ)
}.freeze

Class Method Summary collapse

Class Method Details

.specify(index:) ⇒ Row

24気損益眺朒(ちょうじく)数の行データを特定する

Parameters:

  • index (Integer)

    連番(二十四節気)

Returns:

  • (Row)

    行データ



89
90
91
92
# File 'lib/zakuro/version/gihou/stella/solar/adjustment.rb', line 89

def specify(index:)
  key = Cycle::SolarTerm::ORDER[index]
  Adjustment::MAP[key].clone
end