Metadata-Version: 1.1
Name: pyamps
Version: 1.0.0
Summary: Calculate and plot maps of the model Average Magnetic field and Polar current System (AMPS)
Home-page: https://github.com/klaundal/pyAMPS
Author: Karl M. Laundal
Author-email: karl.laundal@ift.uib.no
License: MIT
Description-Content-Type: UNKNOWN
Description: Overview
        ========
        
        Python interface for the Average Magnetic field and Polar current System (AMPS) model.
        
        .. figure:: ../static/animation.gif
            :align: left
            :alt:
        
        
        The AMPS model is an empirical model of the ionospheric current system and associated magnetic field. The model magnetic field and currents are continuous functions of solar wind velocity, the interplanetary magnetic field, the tilt of the Earth's dipole magnetic field with respect to the Sun, and the 10.7 cm solar radio flux index F10.7. Given these parameters, model values of the ionospheric magnetic field can be calculated anywhere in space, and, with certain assumptions, on ground. The full current system, horizontal + field-aligned, are defined everywhere in the polar regions. The model is based on magnetic field measurements from the low Earth orbiting Swarm and CHAMP satellites.
        
        pyAMPS can be used to calculate and plot average magnetic field and current parameters on a grid. The parameters that are available for calculation/plotting are:
        
        - field aligned current (scalar)
        - divergence-free current function (scalar)
        - divergence-free part of horizontal current (vector)
        - curl-free part of horizontal current (vector)
        - total horizontal current (vector)
        - eastward or northward ground perturbation corresponding to equivalent current (scalars)
        
        
        Installation
        ------------
        
        Using pip::
        
            pip install pyamps
        
        
        Dependencies:
        
        - numpy
        - dask
        - matplotlib
        - scipy (scipy.interpolate for plotting purposes)
        - pandas (for reading csv file containing model coefficients)
        - apexpy (magnetic coordinate conversion)
        
        Quick Start
        -----------
        .. code-block:: python
        
            >>> # initialize by supplying a set of external conditions:
            >>> from pyamps import AMPS
            >>> m = AMPS(350, # Solar wind velocity in km/s 
                          -4, # IMF By (GSM) in nT
                          -3, # IMF Bz (GSM) in nT, 
                          20, # dipole tilt angle in degrees 
                          80) # F107_index
            >>> # make summary plot:
            >>> m.plot_currents()
        
        .. image:: ../static/example_plot.png
            :alt:
            
        .. code-block:: python
        
            >>> # All the different current functions can be calculated on
            >>> # a pre-defined or user-specified grid.
            >>> import numpy as np 
            >>> mlat, mlt = np.array([75, -75]), np.array([12, 12])
            >>> Ju = m.get_upward_current(mlat, mlt)
            >>> Ju
            array([ 0.25088252, -0.05726114])
        
        
        
        References
        ----------
        Laundal, K. M., Finlay, C. C., Olsen, N. & Reistad, J. P. (submitted 2018), Solar wind and seasonal influence on ionospheric currents from Swarm and CHAMP measurements, Journal of Geophysical Research - Space Physics
        
        Laundal, K. M., Finlay, C. C. & Olsen, N. (2016), Sunlight effects on the 3D polar current system determined from low Earth orbit measurements. Earth Planets Space. `doi:10.1186/s40623-016-0518-x <https://earth-planets-space.springeropen.com/articles/10.1186/s40623-016-0518-x>`_ 
        
        
        Changelog
        =========
        
        No changes have been made since version 1.0.
Keywords: AMPS,Average Magnetic field and Polar current System,magnetic field,spherical harmonics model,associated Legendre polynomial,mlt,magnetic local time,subsolar,dipole coordinates,converting
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: Unix
Classifier: Operating System :: POSIX
Classifier: Operating System :: Microsoft :: Windows
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Topic :: Scientific/Engineering :: Physics
