Skip to main content

Combines Celestrak.org with a reverse-gecoder

Project description

# Orbital Combines Celestrak.org with an efficient reverse-gecoder

To use make sure that the folder orbiting is in the same directory as your code

For example:

Users/user/Project/orbiting Users/user/Project/ActualCode

# Imports

from orbiting import Satellite, Coordinate

# Initializing

iss = Satellite(25544) // We do this as it is the Celestrak.org catalog number. coord = Coordinates(1.1234, 2.1234) // Latitude goes before longtitude when initializing it. It is the same as writing the pair down.

# Get the current lat/long of the satellite

iss.lat iss.long

# Get the proper name of the satellite

iss.name

# Get the elsat classificiation of the satellite

iss.elast_classification

# Get the year the satellite launched

iss.launch_year

# Get the current TLE for the satellite

iss.tle

# Get the current elevation of the satellite

iss.elevation

# True if the satellite is currently in the earth’s shadow

iss.is_eclipsed

# To get the closest city

iss.closest_city(accuracy) // Accuracy by default is set to 10. This could take at most 3 seconds depending on the satellites location. Put in a lower accuracy to reduce time. Accuracy can either be a float or int.

# To get the closest city of any pair of latitude and longtitude

coord.closest_city(accuracy) // Accuracy by default is set to 10. This could take at most 3 seconds depending on the satellites location. Put in a lower accuracy to reduce time. Accuracy can either be a float or int.

# Get the difference in km between two latitudes, longtitudes

coord.distance_between_two_coordinates(lat2, long2) // The lat2 is the latitude of the second pair of coordinates and long2 is the longtitude of the second pair of coordinates.

iss.distance_between_two_coordinates(lat2, long2) // The lat2 is the latitude of the second pair of coordinates and long2 is the longtitude of the second pair of coordinates.

Project details


Release history Release notifications | RSS feed

This version

0.4

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

orbiting-0.4.tar.gz (2.2 MB view hashes)

Uploaded Source

Built Distribution

orbiting-0.4-py3-none-any.whl (3.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page