meteortools

1# Copyright (C) 2018-2023 Mark McIntyre
2version = "2024.01.0"
3# flake8: noqa
4
5"""
6.. include:: ./README.md
7"""
version = '2024.01.0'

MeteorTools

Python tools and utilities including some to work with meteor data from the UK Meteor Network and with data from GMN

To get more information about the submodules and functions use Python's built-in help capability, for example as shown here.

Installation on Windows

On Windows you'll need to use Conda to install some packages first otherwise you will get errors from Pip. This is because these packages are not available in PyPi in a useable form.

 conda install cartopy shapely pyproj
pip install MeteorTools

Installation on a Raspberry Pi and Linux

To install these tools on aa Raspberry Pi you must first install GEOS and PROJ

sudo apt-get install -y libgeos-dev proj-bin
pip install MeteorTools

Usage

from meteortools import utils
help(utils)
help(utils.sendAnEmail)
>>>from meteortools.utils import date2JD, jd2LST, getActiveShowers, getShowerDets
>>> date2JD(2023,4,11,12,45,9)
2460046.0313541666
>>>import numpy as np
>>> jd2LST(2460046.0313541666, lon=np.radians(-1.31))
(30.741774823384617, 30.76463863658577)
>>> import datetime
>>> getActiveShowers(datetime.datetime.now().strftime('%Y%m%s'))
LYR
ETA
>>> getShowerDets('LYR')
(6, 'April Lyrids', 32.0, '04-22')
>>>