SpedasWrapper
SpedasWrapper(tplot_vars, dropna=True, resample=None, transform=None)
Bases: Dataset
Wrapper for loading varibles from pyspedas (tplot) into a pytorch dataset. The loading is a beast effort and might not work for some varibles and missions. The varibles are assumed to already be loaded into tplot in the correct timerange.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
tplot_vars
|
list of strings)
|
The varibles to load. |
required |
dropna
|
bool)
|
Drop times where one of the varibles have value NAN. May result in removal of all data if tplot_vars are sampled at different times and resample is not set. |
True
|
resample
|
string)
|
Time interval for resampling, follows the pandas style for resample. No resampling is done if set to None. |
None
|
get_dataframe
get_dataframe()
Get the full pandas DataFrame
Returns
dataset : pandas DataFrame The full loaded data.