Methods

Class Index [+]

Quicksearch

When::Ephemeris::Indian

Indian Luni-Solar Calendar Formula

Attributes

long[R]

計算の基準経度 / 度

lat[R]

計算の基準緯度 / 度

Public Instance Methods

sun_rise(sdn, height=nil) click to toggle source

日の出の日時

  sdn     : ユリウス日
  height  : 観測地の高度(本クラスでは使用しない)

  returns : 日の出の日時のユリウス日
    # File when/region/indian.rb, line 89
89:       def sun_rise(sdn, height=nil)
90:         t   = sdn.to_i - @long / 360.0 - 0.25
91:         p   = _mean_sun(t) +  P * (t - Ep) / @days_in_yuga
92:         return t - asin(tand(@lat)*tan(asin(sinc(p)*sinc(Ob)))) / CIRCLE
93:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.