Metadata-Version: 2.4
Name: vlf4ions
Version: 1.3.7
Summary: Python package destined for VLF antenna owners. It allows the detection of solar flare in real-time from ground-based VLF data and an estimate of the solar X-ray flux
Author: Pauline Teysseyre for the LIRA, Carine Briand for the LIRA, Morris Cohen for Georgia Institute of Technology
Maintainer-email: Pauline Teysseyre <pauline.teysseyre@obspm.fr>
License-Expression: EUPL-1.2
Keywords: alerts,real-time,solar-flares,space-weather,vlf
Description-Content-Type: text/markdown
License-File: LICENCE.txt
Requires-Dist: pymatreader<2,>=1.0.0
Requires-Dist: numpy<3,>=1.26.4
Requires-Dist: scipy<2,>=1.15.2
Requires-Dist: matplotlib<4,>=3.8.0
Requires-Dist: pandas<3,>=2.2.3
Requires-Dist: datetime<6,>=5.5
Requires-Dist: schedule<2,>=1.2.2
Requires-Dist: basemap<3,>=1.4.0
Requires-Dist: pysolar<2,>=0.13
Requires-Dist: pytz<2026,>=2025.2
Requires-Dist: pre-commit<5,>=4.3.0
Requires-Dist: pytest<9,>=8.3.5
Requires-Dist: coverage<8,>=7.12.0
Requires-Dist: sphinx_rtd_theme<4,>=3.0.2
Requires-Dist: defusedxml<1,>=0.7.1
Requires-Dist: genbadge<2,>=1.1.3
Dynamic: license-file

[![Coverage Status](./reports/coverage/coverage-badge.svg?dummy=8484744)](https://codeberg.org/pteysseyre/vlf4ions_library/src/branch/main/reports/coverage/coverage-badge.svg) [![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit)](https://github.com/pre-commit/pre-commit) [![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)


This is the most up-to-date version of the *vlf4ions* Python library, which is hosted on [Codeberg](https://codeberg.org/pteysseyre/vlf4ions_library). This library is designed for VLF-antenna owners. It allows the detection of solar flares in real-time from ground-based VLF data. An estimate of the solar X-ray flux from the Sun is also made possible.

Though it was designed with an AWESOME instrument in mind, it can be adapted to any type of VLF antennas, provided that both amplitude and phase measurements are available for any transmitter of interest.

# Installation

To install the package, you can simply type in a virtual environment:

````
pip install vlf4ions
````

This should download the more recent version.


Another way to install the package is to go to [Release](https://codeberg.org/pteysseyre/vlf4ions_library/releases) at the top of the page and download the latest version. In the `zip` or `tar.gz` folder, you should find a file ending in `.whl`. In a terminal, write

````
pip install file_in_.whl
````

Note that sometimes we also implement new features or fix some bugs, but this version is not yet released (usually before it doesn't differ enough from the previous one.) In this case, you can download these stable sub-version from the [Tags](https://codeberg.org/pteysseyre/vlf4ions_library/tags) page. The differences between each versions are outlined in the CHANGELOG file

# Testing

To test the entire package, you can run (when you are in the top folder)

````
pytest
````

This is the minimal version to check that all tests are passed. If, however, you're developping your own branch of the repository, or if you want the coverage report, run:

````
pytest --cov=vlf4ions --cov-report=xml:reports/coverage/coverage.xml
coverage html
genbadge coverage -o reports/coverage/coverage-badge.svg
````

This will create a full coverage report and a badge to display the new coverage

# Documentation

The documentation may be found [here](https://vlf4ions.readthedocs.io/en/latest/).

# Contributing

Any feedback or contribution is very welcome. Please use pull requests to contribute to this package, or directly open an issue if you notice that something is wrong or can be enhanced.

Any question may also be sent to me by email if needed, or by pinging me on Codeberg.

# Acknowledgements

Many thanks to Pierre-Yves Martin and Xavier Bonnin for their help with the licence and all other aspects of publishing an open-source project. This project really would have taken much longer to deploy if not for their advice !

# Citing

If you use this library in a scientific context, please cite the paper 'Real-time detection of solar flares from ground-based data' by P. Teysseyre, C. Briand and M. Cohen. As of now (January 2026), it is still in review.
