Class Index [+]

Quicksearch

When::Ephemeris::Formula

暦法オブジェクトに天体暦機能を提供する

Attributes

formula[R]

計算対象 / 公式の指定

location[R]

観測地

time_standard[R]

時刻系(‘universal’ or ‘dynamical’)

is_dynamical[R]

時刻系が dynamical か

Public Instance Methods

_coords(t, system, target) click to toggle source

天体の位置情報

 t       : ユリウス日(Terrestrial Time)または(Temporal)Positionオブジェクト
 system  : 座標系
   0 - When::Coordinates::Spatial::ECLIPTIC   (黄道座標)
   1 - When::Coordinates::Spatial::EQUATORIAL (赤道座標)
   2 - When::Coordinates::Spatial::HORIZONTAL (地平座標)
 target  : When::Ephemeris::CelestialObject
   対象星

 returns : When::Ephemeris::Coords
      # File when/ephemeris.rb, line 1321
1321:     def _coords(t, system, target)
1322:       pos = target.coords(t, @location)
1323:       pos = pos.y_to_r(t, @location) if system >= 1
1324:       pos = pos.r_to_h(t, @location) if system >= 2
1325:       return pos
1326:     end
cn_to_time_(cn, time0=nil) click to toggle source

周期番号 -> 日時

  cn      : 周期番号

  returns : ユリウス日
      # File when/ephemeris.rb, line 1304
1304:     def cn_to_time_(cn, time0=nil)
1305:       time0 ||= (cn - @cycle_number_0m) / @cycle_number_1m
1306:       root(time0, cn) {|t| time_to_cn(t)}
1307:     end
time_to_cn(t) click to toggle source

日時 -> 周期番号

  t       : ユリウス日(Terrestrial Time)または(Temporal)Positionオブジェクト

  returns : 周期番号
      # File when/ephemeris.rb, line 1294
1294:     def time_to_cn(t)
1295:       @proc.call(t)
1296:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.