Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A ruby gem for calculating satellite positions and observation angles, etc.
Ruby
branch: develop

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
.gitignore
Gemfile
Gemfile.lock
README.md
orbit.gemspec

README.md

orbit

A ruby gem for calculating satellite positions and observation angles, etc.

Usage

tle = "EYESAT-1 (AO-27)\n1 22825U 93061C   12265.90994989  .00000070  00000-0  44528-4 0  2022\n2 22825  98.5823 207.2528 0008444   2.3056 357.8161 14.29486540990291"
s = Orbit::Satellite.new( tle )
l = Orbit::Site.new( 33.5, -95.3, 23 ) # Lat, Lng, Elevation Above Sea Level in Meters
tc = l.view_angle_to_satellite_at_time( s, Time.now )

elevation = Orbit::OrbitGlobals.rad_to_deg( tc.elevation )
azimuth   = Orbit::OrbitGlobals.rad_to_deg( tc.azimuth )

puts "Elevation: #{elevation}, Azimuth: #{azimuth}"
Something went wrong with that request. Please try again.