Methods

Included Modules

Class Index [+]

Quicksearch

When::Ephemeris::CelestialObject

天体

  天体の特性を定義する

Attributes

aberration[R]

光行差 / 度

luminosity[R]

光度 / magnitude

Public Instance Methods

coords(t, base=nil) click to toggle source

天体位置 (黄道座標)

  t       : ユリウス日(Terrestrial Time)または(Temporal)Positionオブジェクト
  base    : When::Coordinates::Spatial or When::Ephemeris::Datum
    基準地

  returns : When::Ephemeris::Coords
     # File when/ephemeris.rb, line 667
667:     def coords(t, base=nil)
668:       t = +t
669:       target_coords = self._coords(t)
670:       return target_coords unless base
671:       base_coords = base._coords(t)
672:       differrence = target_coords - base_coords
673:       dll = differrence.ll - base_coords.ll
674:       ll  = differrence.ll
675:       tb  = differrence.tb
676:       if target.aberration
677:         ll -= target.aberration / 360 * cosc(differrence.ll - target_coords.ll) / target_coords.rr
678:       end
679:       if base.aberration
680:         ll += base.aberration / 360 / cosc(tb) * cosc(dll) / base_coords.rr
681:         tb -= base.aberration / 360 * sinc(tb) * sinc(dll) / base_coords.rr
682:       end
683:       Coord.polar(ll, tb, differrence.rr, differrence.c)
684:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.