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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file orbiting-0.4.tar.gz.

File metadata

  • Download URL: orbiting-0.4.tar.gz
  • Upload date:
  • Size: 2.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.4

File hashes

Hashes for orbiting-0.4.tar.gz
Algorithm Hash digest
SHA256 58d53a7ba3ac437f870e6fd737307c1186355aed4793169f703b6d5c9947c438
MD5 dc06073eec19512639a6db0e6bd4aead
BLAKE2b-256 b2aa6a9e9154a71e03103188a3eedd00ac94d59a722427e2bf87f416cc94144f

See more details on using hashes here.

File details

Details for the file orbiting-0.4-py3-none-any.whl.

File metadata

  • Download URL: orbiting-0.4-py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.4

File hashes

Hashes for orbiting-0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 0a56f87e9c3ecdfb796faadd8eed4848fbc1c3e4f958cff2dbdadbc1a0cc19d0
MD5 f608bb77607c3bb8c9019484fca5fefb
BLAKE2b-256 f1fee1c963bdf713cc170d17a93671f66d2f634c67b72d85f73a8ed69d3ad04b

See more details on using hashes here.

Supported by

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