<jupyter_start><jupyter_text>Demo of downloading and plotting data using pyspedas.Basic demo of main pyspedas functions. Import the necessary libraries.<jupyter_code>import pyspedas
import pytplot<jupyter_output><empty_output><jupyter_text>Verify that the libraries have been imported successfully and show the version of pyspedas and the location of preferences.<jupyter_code>pyspedas.version()<jupyter_output>Preferences file: c:\users\nikos\documents\github\spedas_pyspedas\pyspedas\spd_prefs_txt.py
pyspedas version: 0.8.18<jupyter_text>Delete any existing pytplot variables<jupyter_code>pytplot.del_data()<jupyter_output><empty_output><jupyter_text>Download THEMIS state data for probe tha and dates 2015-12-31 to 2016-01-01. Two cdf files should be downloaded and the output should be a list of THEMIS variables that have been loaded.Time clip to the requested times will be applied automatically.<jupyter_code>dtime = ['2015-12-31 00:00:00', '2016-01-01 12:00:00']
pyspedas.load_data('themis', dtime, ['tha'], 'state', 'l1')<jupyter_output>c:\users\nikos\documents\github\spedas_pyspedas\pyspedas\spd_prefs_txt.py
Preferences file: c:\users\nikos\documents\github\spedas_pyspedas\pyspedas\spd_prefs_txt.py
ok
1. File was downloaded. Location: C:\\Datapy\\themis\tha\l1\state\2015\tha_l1_state_20151231_v02.cdf
ok
2. File was downloaded. Location: C:\\Datapy\\themis\tha\l1\state\2016\tha_l1_state_20160101_v02.cdf
Time clip was applied to: tha_pos
Time clip was applied to: tha_vel
Time clip was applied to: tha_spin_initial_delta_phi
Time clip was applied to: tha_spin_idpu_spinper
Time clip was applied to: tha_spin_segflags
Time clip was applied to: tha_spin_ecl_initial_delta_phi
Time clip was applied to: tha_spin_ecl_idpu_spinper
Time clip was applied to: tha_spin_ecl_segflags
Time clip was applied to: tha_pos_gse
Time clip was applied to: tha_pos_gsm
Time clip was applied to: tha_vel_gse
Time clip was applied to: tha_vel_gsm
Time clip was applied to: tha_pos_sel
Time clip was applied to: tha_pos_sse
Time clip was applied to: th[...]<jupyter_text>Plot the "tha" probe position. A new window should open with the relevant plot.<jupyter_code>pytplot.tplot(["tha_vel"])<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.08081264108352144, 'fraction_numerical': 0.03747178329571106, 'mean_word_length': 6.615120274914089, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 5, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '5', 'dir': 'jupyter-structured-clean-dedup', 'id': '560387', 'license': 'MIT', 'n_tokens_mistral': 852, 'n_tokens_neox': 785, 'n_words': 216, 'path': 'pyspedas/notebooks/themis_basic.ipynb', 'repo_name': 'asherp/pyspedas', 'size': '2215'}