From 42e143471ec4f8ba2de22bec4e07250f748fc590 Mon Sep 17 00:00:00 2001 From: Nick H <34072991+nickssl@users.noreply.github.com> Date: Sun, 19 Nov 2023 12:01:57 -0800 Subject: [PATCH] Added Themis AE index. --- pyspedas/themis/ground/gmag.py | 2 +- pyspedas/themis/load.py | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/pyspedas/themis/ground/gmag.py b/pyspedas/themis/ground/gmag.py index 0cc27a3f..0475931c 100644 --- a/pyspedas/themis/ground/gmag.py +++ b/pyspedas/themis/ground/gmag.py @@ -72,7 +72,7 @@ def gmag(trange=['2007-03-23', '2007-03-24'], """ if sites is None: - thm_sites = 'atha chbg ekat fsim fsmi fykn gbay glyn gill inuv kapu '\ + thm_sites = 'idx atha chbg ekat fsim fsmi fykn gbay glyn gill inuv kapu '\ 'kian kuuj mcgr nrsq pgeo pina rank snap snkq tpas whit '\ 'yknf'.split(' ') tgo_sites = ['nal', 'lyr', 'hop', 'bjn', 'nor', 'sor', 'tro', 'and', diff --git a/pyspedas/themis/load.py b/pyspedas/themis/load.py index 1ec921f2..99bcb6a5 100644 --- a/pyspedas/themis/load.py +++ b/pyspedas/themis/load.py @@ -163,7 +163,10 @@ def load(trange=['2013-11-5', '2013-11-6'], else: pathformat = [] for site, in_greenland in zip(stations, greenland): - if in_greenland: + if site == 'idx': + # THEMIS GMAG index files are only L1 + pathformat.append('thg/l1/mag/idx/%Y/thg_l1_idx_%Y%m%d_v??.cdf') + elif in_greenland: pathformat.append('thg/greenland_gmag/' + level + '/' + site + '/%Y/thg_' + level + '_mag_' + site + '_%Y%m%d_v??.cdf')