Metadata-Version: 2.1
Name: ibpmodel
Version: 1.1.0
Summary: Ionospheric Bubble Probability
Home-page: https://igit.iap-kborn.de/iw01/ibp-model.git
Author: Martin Rother
Maintainer: Ina Wehner
Maintainer-email: wehner@iap-kborn.de
License: MIT
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Operating System :: Unix
Classifier: Operating System :: Microsoft :: Windows
Classifier: Operating System :: MacOS
Classifier: Topic :: Scientific/Engineering :: Physics
Classifier: Topic :: Scientific/Engineering :: Atmospheric Science
Requires-Python: >=3.8
Provides-Extra: test
License-File: LICENSE

Ionospheric Bubble Probability (IBP)
====================================

The ionospheric bubble probability statistical model is a Swarm L2 product, named IBP_CLI. The output of the Ionospheric Bubble Probability (IBP) product is an index, that depends  on the day of year or the month of the year, geographic longitude, local time and solar flux index. 

The output floating point index ranges 0-1 and characterizes the percentage probability of low latitude bubble occurence at the specified time, location and solar flux.

This empirical IBP model  has been derived from magnetic observations obtained by the CHAMP and Swarm missions. The model is representative for the altitude range 350 - 500 km and low geographic latitudes of +/- 45 degree.

.. inclusion-marker-install

Documentation
-------------

Detailed documentation can be found at: `<https://ibp-model.readthedocs.io/en/latest/index.html>`_

Quick Start
-----------


Installation
^^^^^^^^^^^^

Using pip:

.. code-block:: console

    $ pip install ibpmodel


Dependencies:

- numpy
- pandas
- matplotlib
- scipy
- cdflib


Usage
^^^^^
The return value of the function *ibpmodel.ibpforward.calculateIBPindex()* is of type pandas.DataFrame.


.. code-block:: python

    >>> from ibpmodel import ibpforward
    >>> ibpforward.calculateIBPindex(day_month=15,    # Day of Year or Month 
                  longitude=0,                        # Longitude in degree
                  local_time=20.9,                    # Local time in hours 
                  f107=150)                           # F10.7 cm Solar Flux index
       Doy  Month  Lon    LT  F10.7     IBP
    0   15      1    0  20.9    150  0.4041


.. code-block:: python

    >>> ibpforward.calculateIBPindex(day_month=['Jan','Feb','Mar'], local_time=22)
         Doy  Month  Lon  LT  F10.7     IBP
    0     15      1 -180  22    150  0.0851
    1     15      1 -175  22    150  0.0775
    2     15      1 -170  22    150  0.0734
    3     15      1 -165  22    150  0.0749
    4     15      1 -160  22    150  0.0838
    ..   ...    ...  ...  ..    ...     ...
    211   74      3  155  22    150  0.2031
    212   74      3  160  22    150  0.1977
    213   74      3  165  22    150  0.1941
    214   74      3  170  22    150  0.1918
    215   74      3  175  22    150  0.1905
    
    [216 rows x 6 columns]


.. code-block:: python

    >>> ibpforward.plotIBPindex(doy=349)
    >>>

.. image:: https://igit.iap-kborn.de/iw01/ibp-model/-/raw/main/docs/source/_static/example_plotIBP.png
    :alt: Contour plot of the IBP index for the given day
    :align: center

.. code-block:: python

    >>> ibpforward.plotButterflyData(f107=150)
    >>>

.. image:: https://igit.iap-kborn.de/iw01/ibp-model/-/raw/main/docs/source/_static/example_plotButterfly.png
    :alt: Contour plot of result from function ButterflyData()  
    :align: center



.. inclusion-marker-reference

References
----------


*Stolle et al.*, `An empirical climatological model of the occurrence of F region equatorial plasma irregularities <https://igit.iap-kborn.de/iw01/ibp-model/-/raw/main/docs/source/_static/8thSwarmDataQualityWorkshop_slides.pdf>`_, 8th Swarm data quality workshop at ESA/ESRIN, October 2017. 

*Lucas Schreiter*, Anwendungsorientierte Modellierung der Auftretenswahrscheinlichkeit und relativen Häufigkeit von äquatorialen Plasmabubbles,  Master's thesis, Institute of Mathematics, University of Potsdam, 2016. (in German only.)

.. inclusion-marker-acknow


