-
Notifications
You must be signed in to change notification settings - Fork 69
Description
Dear Pyspedas Experts,
I'm attempting to run the T89 model using my data, but I’m encountering extremely high values for the calculated magnetic field (around 10^45 nT). I have checked my data and confirmed that there are no outliers, NaN, or null values. Can someone assist me please with this issue?
code:
import pyspedas
import numpy as np
from pytplot import store_data, tplot, join_vec
from pyspedas.geopack.get_tsy_params import get_tsy_params
from pyspedas import tinterpol
from pyspedas.geopack import tt01,tt89,tt96
https://drive.google.com/file/d/1TXL7Cu--ear8peVNb0yGPE0oeJGugReL/view?usp=sharing :: this data file is shared through google drive
T89=pd.read_csv('~/Documents/T89.csv')
data = np.column_stack((T89['XGSM'], T89['YGSM'], T89['ZGSM']))
store_data('X_Y_Z_gsm', data={'x': T89['Date'], 'y': data})
tt89('X_Y_Z_gsm')
tplot('X_Y_Z_gsm_bt89')
The T01 model is also encountering an issue and displaying the following error:
The name X_Y_Z_gsm-itrp_bt01 is currently not in pytplot
The name X_Y_Z_gsm-itrp_bt01 is currently not in pytplot
Variable not found: X_Y_Z_gsm-itrp_bt01
Code:
data = np.column_stack((T89['XGSM'], T89['YGSM'], T89['ZGSM']))
store_data('X_Y_Z_gsm', data={'x': T89['Date'], 'y': data})
join_vec(['BX_GSE','BY_GSM', 'BZ_GSM'], newname='BX_BY_BZ_GSM_joined')
params = get_tsy_params('kyoto_dst',
'BX_BY_BZ_GSM_joined',
'proton_density',
'flow_speed',
't01', # or 't96', 'ts04'
pressure_tvar='Pressure',
speed=True)
tinterpol('X_Y_Z_gsm', 'proton_density')
tt01('X_Y_Z_gsm-itrp', parmod=params)
tplot('X_Y_Z_gsm-itrp_bt01')