Coder Social home page Coder Social logo

dipole's Introduction

dipole

Calculations of dipole axis, dipole poles, and dipole tilt angle

Example of how to calculate dipole tilt angle:

>>> print dipole_tilt(datetime(1927, 6, 10, 12, 00), epoch = 1927)
[ 26.79107107]

One can also give several times as input, and the tilt angle will be calculated for each of them. Since the calculations are entirely based on array calculations, this is quite fast.

>>> print dipole_tilt([datetime(1927, 6, 10, 12, 00), datetime(1927, 6, 10, 10, 00)], epoch = 1927)
[ 26.79107107  20.89550663]

The epoch keyword is the year (with fraction) for which the dipole axis is calculated. This is done from IGRF coefficients, using linear interpolation between models. Setting the epoch is optional, and the default value is 2015. One can provide either one value for the epoch, or one value for each input. The latter may be a little slow, and is usually overkill unless the dates are very far apart:

>>> print dipole_tilt([datetime(1927, 6, 10, 12, 00), datetime(2015, 6, 10, 12, 00)], epoch = (1927, 2015))
[ 26.79107107,  25.58815326]

Calculation of dipole axis, dipole poles, dipole tilt angle, and subsolar point is described in Laundal, K.M. & Richmond, A.D. Space Sci Rev (2017) 206: 27. https://doi.org/10.1007/s11214-016-0275-y

(Note that there seems to be a mistake in equation 14 of that paper, showing a formula for for the centered dipole longitude in the northern hemisphere. That formula will give the pole longitude in the southern hemisphere instead)

dependencies

numpy, pandas

dipole's People

Contributors

klaundal avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.