Solar Orbiter low latency data

Downloading and plotting low latency data from Solar Orbiter. Note that this data is not suitable for publication.

Import the required modules

from datetime import datetime

import matplotlib.pyplot as plt
from matplotlib import dates as mdates
import numpy as np

from heliopy.data.solo import download

Download some magnetic field data

data = download(datetime(2020, 7, 10), datetime(2020, 8, 3), 'MAG', 'LL02')
print(data.columns)

Out:

Downloading http://soar.esac.esa.int/soar-sl-tap/data?retrieval_type=PRODUCT&product_type=LOW_LATENCY&data_item_id=solo_LL02_mag_20200802T000025-20200803T000024 to /home/docs/heliopy/data/solar_orbiter/MAG/LL02/solo_LL02_mag_20200802T000025-20200803T000024.cdf

  0.0%      0 / 783752
  1.0%   8192 / 783752
  2.1%  16384 / 783752
  3.1%  24576 / 783752
  4.2%  32768 / 783752
  5.2%  40960 / 783752
  6.3%  49152 / 783752
  7.3%  57344 / 783752
  8.4%  65536 / 783752
  9.4%  73728 / 783752
 10.5%  81920 / 783752
 11.5%  90112 / 783752
 12.5%  98304 / 783752
 13.6% 106496 / 783752
 14.6% 114688 / 783752
 15.7% 122880 / 783752
 16.7% 131072 / 783752
 17.8% 139264 / 783752
 18.8% 147456 / 783752
 19.9% 155648 / 783752
 20.9% 163840 / 783752
 21.9% 172032 / 783752
 23.0% 180224 / 783752
 24.0% 188416 / 783752
 25.1% 196608 / 783752
 26.1% 204800 / 783752
 27.2% 212992 / 783752
 28.2% 221184 / 783752
 29.3% 229376 / 783752
 30.3% 237568 / 783752
 31.4% 245760 / 783752
 32.4% 253952 / 783752
 33.4% 262144 / 783752
 34.5% 270336 / 783752
 35.5% 278528 / 783752
 36.6% 286720 / 783752
 37.6% 294912 / 783752
 38.7% 303104 / 783752
 39.7% 311296 / 783752
 40.8% 319488 / 783752
 41.8% 327680 / 783752
 42.9% 335872 / 783752
 43.9% 344064 / 783752
 44.9% 352256 / 783752
 46.0% 360448 / 783752
 47.0% 368640 / 783752
 48.1% 376832 / 783752
 49.1% 385024 / 783752
 50.2% 393216 / 783752
 51.2% 401408 / 783752
 52.3% 409600 / 783752
 53.3% 417792 / 783752
 54.4% 425984 / 783752
 55.4% 434176 / 783752
 56.4% 442368 / 783752
 57.5% 450560 / 783752
 58.5% 458752 / 783752
 59.6% 466944 / 783752
 60.6% 475136 / 783752
 61.7% 483328 / 783752
 62.7% 491520 / 783752
 63.8% 499712 / 783752
 64.8% 507904 / 783752
 65.8% 516096 / 783752
 66.9% 524288 / 783752
 67.9% 532480 / 783752
 69.0% 540672 / 783752
 70.0% 548864 / 783752
 71.1% 557056 / 783752
 72.1% 565248 / 783752
 73.2% 573440 / 783752
 74.2% 581632 / 783752
 75.3% 589824 / 783752
 76.3% 598016 / 783752
 77.3% 606208 / 783752
 78.4% 614400 / 783752
 79.4% 622592 / 783752
 80.5% 630784 / 783752
 81.5% 638976 / 783752
 82.6% 647168 / 783752
 83.6% 655360 / 783752
 84.7% 663552 / 783752
 85.7% 671744 / 783752
 86.8% 679936 / 783752
 87.8% 688128 / 783752
 88.8% 696320 / 783752
 89.9% 704512 / 783752
 90.9% 712704 / 783752
 92.0% 720896 / 783752
 93.0% 729088 / 783752
 94.1% 737280 / 783752
 95.1% 745472 / 783752
 96.2% 753664 / 783752
 97.2% 761856 / 783752
 98.3% 770048 / 783752
 99.3% 778240 / 783752
100.0% 786432 / 783752


Downloading http://soar.esac.esa.int/soar-sl-tap/data?retrieval_type=PRODUCT&product_type=LOW_LATENCY&data_item_id=solo_LL02_mag_20200801T000024-20200802T000024 to /home/docs/heliopy/data/solar_orbiter/MAG/LL02/solo_LL02_mag_20200801T000024-20200802T000024.cdf

  0.0%      0 / 783752
  1.0%   8192 / 783752
  2.1%  16384 / 783752
  3.1%  24576 / 783752
  4.2%  32768 / 783752
  5.2%  40960 / 783752
  6.3%  49152 / 783752
  7.3%  57344 / 783752
  8.4%  65536 / 783752
  9.4%  73728 / 783752
 10.5%  81920 / 783752
 11.5%  90112 / 783752
 12.5%  98304 / 783752
 13.6% 106496 / 783752
 14.6% 114688 / 783752
 15.7% 122880 / 783752
 16.7% 131072 / 783752
 17.8% 139264 / 783752
 18.8% 147456 / 783752
 19.9% 155648 / 783752
 20.9% 163840 / 783752
 21.9% 172032 / 783752
 23.0% 180224 / 783752
 24.0% 188416 / 783752
 25.1% 196608 / 783752
 26.1% 204800 / 783752
 27.2% 212992 / 783752
 28.2% 221184 / 783752
 29.3% 229376 / 783752
 30.3% 237568 / 783752
 31.4% 245760 / 783752
 32.4% 253952 / 783752
 33.4% 262144 / 783752
 34.5% 270336 / 783752
 35.5% 278528 / 783752
 36.6% 286720 / 783752
 37.6% 294912 / 783752
 38.7% 303104 / 783752
 39.7% 311296 / 783752
 40.8% 319488 / 783752
 41.8% 327680 / 783752
 42.9% 335872 / 783752
 43.9% 344064 / 783752
 44.9% 352256 / 783752
 46.0% 360448 / 783752
 47.0% 368640 / 783752
 48.1% 376832 / 783752
 49.1% 385024 / 783752
 50.2% 393216 / 783752
 51.2% 401408 / 783752
 52.3% 409600 / 783752
 53.3% 417792 / 783752
 54.4% 425984 / 783752
 55.4% 434176 / 783752
 56.4% 442368 / 783752
 57.5% 450560 / 783752
 58.5% 458752 / 783752
 59.6% 466944 / 783752
 60.6% 475136 / 783752
 61.7% 483328 / 783752
 62.7% 491520 / 783752
 63.8% 499712 / 783752
 64.8% 507904 / 783752
 65.8% 516096 / 783752
 66.9% 524288 / 783752
 67.9% 532480 / 783752
 69.0% 540672 / 783752
 70.0% 548864 / 783752
 71.1% 557056 / 783752
 72.1% 565248 / 783752
 73.2% 573440 / 783752
 74.2% 581632 / 783752
 75.3% 589824 / 783752
 76.3% 598016 / 783752
 77.3% 606208 / 783752
 78.4% 614400 / 783752
 79.4% 622592 / 783752
 80.5% 630784 / 783752
 81.5% 638976 / 783752
 82.6% 647168 / 783752
 83.6% 655360 / 783752
 84.7% 663552 / 783752
 85.7% 671744 / 783752
 86.8% 679936 / 783752
 87.8% 688128 / 783752
 88.8% 696320 / 783752
 89.9% 704512 / 783752
 90.9% 712704 / 783752
 92.0% 720896 / 783752
 93.0% 729088 / 783752
 94.1% 737280 / 783752
 95.1% 745472 / 783752
 96.2% 753664 / 783752
 97.2% 761856 / 783752
 98.3% 770048 / 783752
 99.3% 778240 / 783752
100.0% 786432 / 783752


Downloading http://soar.esac.esa.int/soar-sl-tap/data?retrieval_type=PRODUCT&product_type=LOW_LATENCY&data_item_id=solo_LL02_mag_20200731T000024-20200801T000023 to /home/docs/heliopy/data/solar_orbiter/MAG/LL02/solo_LL02_mag_20200731T000024-20200801T000023.cdf

  0.0%      0 / 783787
  1.0%   8192 / 783787
  2.1%  16384 / 783787
  3.1%  24576 / 783787
  4.2%  32768 / 783787
  5.2%  40960 / 783787
  6.3%  49152 / 783787
  7.3%  57344 / 783787
  8.4%  65536 / 783787
  9.4%  73728 / 783787
 10.5%  81920 / 783787
 11.5%  90112 / 783787
 12.5%  98304 / 783787
 13.6% 106496 / 783787
 14.6% 114688 / 783787
 15.7% 122880 / 783787
 16.7% 131072 / 783787
 17.8% 139264 / 783787
 18.8% 147456 / 783787
 19.9% 155648 / 783787
 20.9% 163840 / 783787
 21.9% 172032 / 783787
 23.0% 180224 / 783787
 24.0% 188416 / 783787
 25.1% 196608 / 783787
 26.1% 204800 / 783787
 27.2% 212992 / 783787
 28.2% 221184 / 783787
 29.3% 229376 / 783787
 30.3% 237568 / 783787
 31.4% 245760 / 783787
 32.4% 253952 / 783787
 33.4% 262144 / 783787
 34.5% 270336 / 783787
 35.5% 278528 / 783787
 36.6% 286720 / 783787
 37.6% 294912 / 783787
 38.7% 303104 / 783787
 39.7% 311296 / 783787
 40.8% 319488 / 783787
 41.8% 327680 / 783787
 42.9% 335872 / 783787
 43.9% 344064 / 783787
 44.9% 352256 / 783787
 46.0% 360448 / 783787
 47.0% 368640 / 783787
 48.1% 376832 / 783787
 49.1% 385024 / 783787
 50.2% 393216 / 783787
 51.2% 401408 / 783787
 52.3% 409600 / 783787
 53.3% 417792 / 783787
 54.3% 425984 / 783787
 55.4% 434176 / 783787
 56.4% 442368 / 783787
 57.5% 450560 / 783787
 58.5% 458752 / 783787
 59.6% 466944 / 783787
 60.6% 475136 / 783787
 61.7% 483328 / 783787
 62.7% 491520 / 783787
 63.8% 499712 / 783787
 64.8% 507904 / 783787
 65.8% 516096 / 783787
 66.9% 524288 / 783787
 67.9% 532480 / 783787
 69.0% 540672 / 783787
 70.0% 548864 / 783787
 71.1% 557056 / 783787
 72.1% 565248 / 783787
 73.2% 573440 / 783787
 74.2% 581632 / 783787
 75.3% 589824 / 783787
 76.3% 598016 / 783787
 77.3% 606208 / 783787
 78.4% 614400 / 783787
 79.4% 622592 / 783787
 80.5% 630784 / 783787
 81.5% 638976 / 783787
 82.6% 647168 / 783787
 83.6% 655360 / 783787
 84.7% 663552 / 783787
 85.7% 671744 / 783787
 86.8% 679936 / 783787
 87.8% 688128 / 783787
 88.8% 696320 / 783787
 89.9% 704512 / 783787
 90.9% 712704 / 783787
 92.0% 720896 / 783787
 93.0% 729088 / 783787
 94.1% 737280 / 783787
 95.1% 745472 / 783787
 96.2% 753664 / 783787
 97.2% 761856 / 783787
 98.2% 770048 / 783787
 99.3% 778240 / 783787
100.0% 786432 / 783787


/home/docs/checkouts/readthedocs.org/user_builds/heliopy/envs/0.15.3/lib/python3.7/site-packages/heliopy/data/solo.py:134: UserWarning: Low latency data is not suitable for publication. See https://www.cosmos.esa.int/web/solar-orbiter/access-to-solar-orbiter-low-latency-data for more information.
  warnings.warn('Low latency data is not suitable for publication. '
['B_RTN_0', 'B_RTN_1', 'B_RTN_2', 'SCET', 'B_SRF_0', 'B_SRF_1', 'B_SRF_2', 'QUALITY_FLAG', 'PRIMARY_SENSOR_FLAG', 'VECTOR_RANGE']

Calculate the magnetic field mangitude

modB = np.sqrt(data.quantity('B_RTN_0')**2 +
               data.quantity('B_RTN_1')**2 +
               data.quantity('B_RTN_2')**2)
data = data.add_column('modB', modB)

Plot the data

fig, axs = plt.subplots(nrows=2, sharex=True)

ax = axs[0]
ax.plot(data.index, data.quantity('modB'))
ax.set_ylabel('nT')
ax.set_title(r'$|B|$')
ax.set_ylim(bottom=0)

ax = axs[1]
ax.plot(data.index, data.quantity('B_RTN_0'))
ax.set_ylabel('nT')
ax.set_title(r'$B_{r}$')
ax.axhline(0, color='black', linewidth=1, linestyle='--')

fig.suptitle('Solar Orbiter MAG low latency (not for science use)')
ax.xaxis.set_major_formatter(
    mdates.ConciseDateFormatter(mdates.AutoDateLocator()))
plt.show()
Solar Orbiter MAG low latency (not for science use), $|B|$, $B_{r}$

Total running time of the script: ( 0 minutes 7.572 seconds)

Gallery generated by Sphinx-Gallery