Skip to main content

Welcome to the SATQUERY package

PyPI version shields.io PyPI pyversions PyPI status GitHub contributors Maintenance GitHub license Documentation Status Build Status

This package is an archive of scientific routines for querying orbital and geometric information of space objects. Currently, operations on objects catalogue query include:

  1. Query of spatial objects on geometric information from DISCOS(Database and Information System Characterising Objects in Space) database;
  2. Query of spatial objects on orbital information from CelesTrak database;
  3. Query of spatial objects on both geometric and orbital information from a combined database;

How to Install

On Linux, macOS and Windows architectures, the binary wheels can be installed using pip by executing one of the following commands:

pip install satcatalogquery
pip install satcatalogquery --upgrade # to upgrade a pre-existing installation

How to use

Objects catalogue query from DISCOS

Query by NORAD_ID, where type of NORAD_ID can be int/str, list of int/str, or a text file named satno.txt in the following format:

# satno
52132
51454
37637
26758
44691
>>> from satcatalogquery import SatCatalog
>>> satcatlog = SatCatalog.discos_query(NORAD_ID=[52132,51454,37637,26758,44691])
>>> # satcatog = SatCatalog.discos_query(NORAD_ID='satno.txt')
>>> satcatlog.df # output pandas dataframe
>>> satcatlog.to_csv() # save dataframe to .csv file

Query by mutiple options at the same time, such as COSPAR_ID, MASS, SHAPE, RCSAvg, etc.

>>> satcatlog = SatCatalog.discos_query(SHAPE=['Box','Pan'],RCSAvg=[0.5,10],DECAYED=False)

Objects catalogue query from CelesTrak

>>> satcatlog = SatCatalog.celestrak_query(MEAN_ALT=[300,2000],ECC=[0.01,0.1],PAYLOAD=False)

Objects catalogue query from combined database

>>> satcatlog = SatCatalog.objects_query(DECAYED=False,RCSAvg=[0.25,10],MEAN_ALT=[250,2000],TLE_STATUS=True,sort='RCSAvg')

Create object SatCatlog from a loacl .csv file

>>> from satcatalogquery import SatCatalog
>>> satcatlog = SatCatalog.from_csv('filename.csv')

Statistics

>>> satcatlog.hist1d('RCSAvg')
>>> satcatlog.hist1d(['StdMag','LAUNCH_DATE'])
>>> satcatlog.hist2d('MEAN_ALT','INCLINATION')
>>> satcatlog.pie('LAUNCH_SITE',cutoff=100)

Download TLE from Space-Track according to the results of objects catalogue query

>>> tle_path = satcatlog.get_tle()

Download TLE from Space-Track by Norad IDs

>>> from satcatalogquery import download_tle
>>> tle_file = download_tle([52132,51454,37637,26758,44691])
>>> print(tle_file)

Next, you may be interested in Data processing related to TLE files.

Change log

  • 0.2.4 — Dec 08, 2023

    • Fixed a bug where a newline character was appended to the end of the string when reading tokens from a file.
    • The download URL of qsmag.zip has been modified to solve the bug that caused the file download failure due to the original URL being invalid.
  • 0.2.3 — Sep 23, 2023

    • Fixed the bug that when downloading TLE data from SpaceTrack, the automatically generated wrong authentication file due to incorrect user name or password input could no longer be updated.
  • 0.2.2 — Apr 24, 2023

    • Change the method .save() to .to_csv()

    • Add methods .discos_query(), .celestrak_query(), .objects_query()to class SatCatalog

    • Change class SatCatlog to SatCatalog

  • 0.2.1 — Jan 4, 2023

    • Add method from_csv and pie to class SatCatlog

    • Add statistics figures to README.md

  • 0.1.1 — Jan 2, 2023

    • The satcatalogquery package was released.

Next Release

  • Added DISCOSweb API support for version 2.0.0.
  • Improve code structure and enrich technical documentation.

Reference

Metadata

Release files for satcatalogquery 0.2.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for satcatalogquery 0.2.5
File Interpreter ABI Platform
satcatalogquery-0.2.5-py3-none-any.whl Python 3 none any Details

Release files / satcatalogquery-0.2.5-py3-none-any.whl

Download URL satcatalogquery-0.2.5-py3-none-any.whl
Size 34.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b577e1d0d4ea6527e36c0f80d98e7f8cc8751e9176ae0402cc0d0367710eebf5
BLAKE2b-256 checksum
How to use checksums
30f136e337d11464316dae48119b51c27af7904f5af6cc2022939189df340f66
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.9

Release history Release notifications | RSS feed

This release

0.2.5 This release

1 release file

0.2.4

1 release file

0.2.3

1 release file

0.2.2

1 release file

0.2.1

1 release file

0.2.0

1 release file

0.1.1

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page