pyswipe
Python implementation of the Swarm Ionospheric Polar Electrodynamics (SWIPE) model
Science Score: 67.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
✓DOI references
Found 5 DOI reference(s) in README -
✓Academic publication links
Links to: wiley.com, zenodo.org -
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (12.4%) to scientific vocabulary
Last synced: 6 months ago
·
JSON representation
·
Repository
Python implementation of the Swarm Ionospheric Polar Electrodynamics (SWIPE) model
Basic Info
- Host: GitHub
- Owner: Dartspacephysiker
- License: mit
- Language: Python
- Default Branch: master
- Size: 6.58 MB
Statistics
- Stars: 2
- Watchers: 2
- Forks: 2
- Open Issues: 0
- Releases: 10
Created over 2 years ago
· Last pushed 10 months ago
Metadata Files
Readme
Changelog
License
Citation
README.rst
|DOI|
Overview
========
Python interface for the Swarm Ionospheric Polar Electrodynamics (SWIPE) model.
The SWIPE model is an empirical model of high-latitude ionospheric electrodynamics, and is a combination of the Average Magnetic field and Polar current System (AMPS) model and the Swarm High-latitude Convection (Swarm Hi-C) model.
AMPS
-----------------------------------------------
The AMPS 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.
Swarm Hi-C
-----------------------------------------------
The Swarm Hi-C model high-latitude ionospheric convection is a function of the same input parameters used for the AMPS model. Given these parameters, model values of the high-latitude ionospheric convection, potential, and electric field can be calculated. The model is based on ion drift measurements from Swarm A and Swarm C.
pyswipe can be used to calculate and plot several different quantities on a grid. The parameters that are available for calculation/plotting are:
- electric potential (scalar)
- electric field E (vector)
- convection v = - cross(E, B) (vector)
- height-integrated electromagnetic work = dot(J, E) (scalar) in the earth's rotating frame of reference, with J given by the AMPS model and E by Swarm Hi-C
- Hall and Pedersen conductances (scalars)
- Poynting flux (scalar)
For questions and comments, please contact spencer.hatch at uib.no
Installation
------------
Using pip::
pip install pyswipe
Dependencies:
- numpy
- pandas
- dask
- matplotlib (with LaTeX support, see https://matplotlib.org/users/usetex.html)
- scipy (scipy.interpolate for plotting purposes)
- apexpy (magnetic coordinate conversion)
Quick Start
-----------
.. code-block:: python
>>> # initialize by supplying a set of external conditions:
>>> from pyswipe import SWIPE
>>> m = SWIPE(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_potential()
.. image:: docs/static/example_plot.png
:alt: Ionospheric potential (color) and electric field (pins)
Documentation
-------------
IF this were pyamps, we could point to `http://pyamps.readthedocs.io` . But it's not!
References
----------
Hatch, S. M., Vanhamäki, H., Laundal, K. M., Reistad, J. P., Burchill, J. K., Lomidze, L., Knudsen, D. J., Madelaire, M., & Tesfaw, H. (2024). Does high-latitude ionospheric electrodynamics exhibit hemispheric mirror symmetry? Annales Geophysicae, 42(1), 229–253. `doi: 10.5194/angeo-42-229-2024 `_
Laundal, K. M., Finlay, C. C., Olsen, N. & Reistad, J. P. (2018), Solar wind and seasonal influence on ionospheric currents from Swarm and CHAMP measurements, Journal of Geophysical Research - Space Physics. `doi:10.1029/2018JA025387 `_
Acknowledgments
---------------
The Swipe model forward code is produced with support from the European Space Agency through the Swarm Data Innovation and Science Cluster (Swarm DISC), ESA Contract no. 4000109587/13/I-NB.
The inverse code for producing the Swarm Hi-C model coefficients is available here: https://zenodo.org/badge/latestdoi/674153432
For more information on the Swipe project, please visit https://earth.esa.int/eogateway/activities/swipe
For more information on Swarm DISC, please visit https://earth.esa.int/web/guest/missions/esa-eo-missions/swarm/disc
.. |DOI| image:: https://zenodo.org/badge/685879333.svg
:target: https://zenodo.org/badge/latestdoi/685879333
Owner
- Name: Spencer Hatch
- Login: Dartspacephysiker
- Kind: user
- Location: Bergen
- Company: Birkeland Centre for Space Science
- Website: https://www.uib.no/personer/Spencer.Mark.Hatch
- Repositories: 48
- Profile: https://github.com/Dartspacephysiker
Citation (CITATION.cff)
cff-version: 1.1.0
message: "If you use this software, please cite it as below."
authors:
- given-names: Spencer Mark
family-names: Hatch
orcid: https://orcid.org/0000-0001-7412-4936
- given-names: Karl Magnus
family-names: Laundal
orcid: https://orcid.org/0000-0001-5028-4943
title: "python implementation of the Swipe model (pySwipe)"
identifiers:
- type: doi
value: 10.5281/zenodo.10148939
description: pySwipe - First release
version: v0.9.1
date-released: 2023-12-01
GitHub Events
Total
- Release event: 2
- Watch event: 1
- Issue comment event: 2
- Push event: 2
- Pull request event: 1
- Fork event: 1
- Create event: 2
Last Year
- Release event: 2
- Watch event: 1
- Issue comment event: 2
- Push event: 2
- Pull request event: 1
- Fork event: 1
- Create event: 2
Packages
- Total packages: 1
-
Total downloads:
- pypi 38 last-month
- Total dependent packages: 0
- Total dependent repositories: 0
- Total versions: 8
- Total maintainers: 1
pypi.org: pyswipe
Python implementation of the Swarm Ionospheric Polar Electrodynamics (Swipe) model
- Documentation: https://pyswipe.readthedocs.io/
- License: MIT License Copyright (c) 2023 Spencer M Hatch Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-
Latest release: 0.9.7
published almost 2 years ago
Rankings
Dependent packages count: 10.1%
Average: 38.7%
Dependent repos count: 67.3%
Maintainers (1)
Last synced:
6 months ago
Dependencies
pyproject.toml
pypi
- apexpy >= 1.0
- dask *
- future >= 0.16
- matplotlib *
- numpy >= 1.14
- pandas >= 0.20
- ppigrf >= 1.0
- pyamps >= 1.4.0
- scipy >= 0.9
- toolz >= 0.8
requirements.txt
pypi
- apexpy >=1.0
- dask *
- future >=0.16
- matplotlib *
- numpy >=1.14
- pandas >=0.20
- scipy >=0.9
- setuptools >=30.3.0
- toolz >=0.8