Skip to main content

PyPI Status Python versions License

Read the Docs Tests Codecov

gmn-python-api

This library provides a Python API for accessing open Global Meteor Network (GMN) meteor trajectory data. Global meteor data is generated using a network of low-light cameras pointed towards the night sky. Meteor properties (radiants, orbits, magnitudes and masses) are produced by the GMN and are available through this library.

Screenshot of GMN data

Features

  • Listing available daily and monthly meteor trajectory files from the GMN Data Directory.

  • Downloading specific meteor trajectory data from the GMN Data Directory or GMN REST API.

  • Functions for loading meteor trajectory data into Pandas DataFrames.

  • Functions for retrieving available IAU registered meteor showers.

Requirements

  • Python 3.8, 3.9, or 3.10

Installation

You can install gmn-python-api via pip from PyPI:

pip install gmn-python-api

Or install the latest development code, through TestPyPI or directly from GitHub via pip:

pip install -i https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple gmn-python-api==<version>

Or

pip install git+https://github.com/rickybassom/gmn-python-api

Refer to the Troubleshooting guide if you encounter any issues.

Usage

Simple meteor analysis example:

from gmn_python_api import data_directory as dd
from gmn_python_api import meteor_trajectory_reader

# Analyse recorded meteor data for the 24th of July 2019
traj_file_content = dd.get_daily_file_content_by_date("2019-07-24")

# Read data as a Pandas DataFrame
traj_df = meteor_trajectory_reader.read_data(traj_file_content)

print(f"{traj_df['Vgeo (km/s)'].max()} km/s was the fastest geostationary velocity")
# Output: 65.38499 km/s was the fastest geostationary velocity

print(f"{traj_df.loc[traj_df['IAU (code)'] == 'PER'].shape[0]} Perseid meteors")
# Output: 3 Perseid meteors

print(f"Station #{traj_df['Num (stat)'].mode().values[0]} recorded the most meteors")
# Output: Station #2 recorded the most meteors

Please see the Usage and API Reference sections for more details.

Contributing

Contributions are very welcome. To learn more, see the Contributing guide.

License

Distributed under the terms of the MIT license, gmn-python-api is free and open source software.

Metadata

Release files for gmn-python-api 0.0.13

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

Source distribution (sdist)

Source distribution for gmn-python-api 0.0.13
File Size Uploaded
gmn_python_api-0.0.13.tar.gz 197.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for gmn-python-api 0.0.13
File Interpreter ABI Platform
gmn_python_api-0.0.13-py3-none-any.whl Python 3 none any Details

Total release size: 399.6 kB

Release files / gmn_python_api-0.0.13.tar.gz

Download URL gmn_python_api-0.0.13.tar.gz
Size 197.5 kB
Tags Source
SHA-256 checksum
How to use checksums
f2f7797379fd39a50118f91ad45638a0c639d670bad08df4faa6f99b694df387
BLAKE2b-256 checksum
How to use checksums
1dde1b22872a88cf5a7f541f43965ee5ed994098f8f919ed201bc50399cd3ccf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.18

Release files / gmn_python_api-0.0.13-py3-none-any.whl

Download URL gmn_python_api-0.0.13-py3-none-any.whl
Size 202.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
099082333ef1ba17b8d73fe2289c475dcf4e12b1513e60eef474ea4a037aca4f
BLAKE2b-256 checksum
How to use checksums
f9e96252d8eab53e31be30af35b76d34afeeda363926b87f507c3f5eb79dccc7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.18

Release history Release notifications | RSS feed

This release

0.0.13 This release

2 release files

0.0.11

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

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