spacepy.toolbox.mlt2rad

spacepy.toolbox.mlt2rad(mlt, midnight=False)[source]

Convert mlt values to radians for polar plotting transform mlt angles to radians from -pi to pi referenced from noon by default

Parameters
mltnumpy array

array of mlt values

midnightboolean (optional)

reference to midnight instead of noon

Returns
outnumpy array

array of radians

See also

rad2mlt

Examples

>>> from numpy import array
>>> mlt2rad(array([3,6,9,14,22]))
array([-2.35619449, -1.57079633, -0.78539816,  0.52359878,  2.61799388])