spacepy.toolbox.rad2mlt

spacepy.toolbox.rad2mlt(rad, midnight=False)[source]

Convert radians values to mlt transform radians from -pi to pi to mlt referenced from noon by default

Parameters
radnumpy array

array of radian values

midnightboolean (optional)

reference to midnight instead of noon

Returns
outnumpy array

array of mlt values

See also

mlt2rad

Examples

>>> rad2mlt(array([0,pi, pi/2.]))
array([ 12.,  24.,  18.])