call get_bfield in irbem lib and return a dictionary with the B-field vector and strenght.
Parameters: | - ticks (Ticktock class) : containing time information
|
---|---|
Returns: | - results (dictionary) : containing keys: Bvec, and Blocal |
See also
Examples
>>> import spacepy.time as spt
>>> import spacepy.coordinates as spc
>>> import spacepy.irbempy as ib
>>> t = spt.Ticktock(['2002-02-02T12:00:00', '2002-02-02T12:10:00'], 'ISO')
>>> y = spc.Coords([[3,0,0],[2,0,0]], 'GEO', 'car')
>>> ib.get_Bfield(t,y)
{'Blocal': array([ 976.42565251, 3396.25991675]),
'Bvec': array([[ -5.01738885e-01, -1.65104338e+02, 9.62365503e+02],
[ 3.33497974e+02, -5.42111173e+02, 3.33608693e+03]])}