Data model: Difference between revisions
Jump to navigation
Jump to search
(→Overview: basic outline) |
|||
Line 4: | Line 4: | ||
== Getting & Storing Tplot Data == | == Getting & Storing Tplot Data == | ||
At their core, tplot variables are binding of a name to zero to three structures of any type. The structures are called "data", "dlimits" and "limits". | |||
To bind a name to zero to three structures: | |||
<pre style="border: 1px solid LightGray"> | |||
store_data,'no_structures' ;creates tplot variable names "no_structures" no associated structures. | |||
store_data,'one_structure',data={hello:'world'} ;creates a tplot variable named "one_structure" with a data structure | |||
store_data,'two_structures',data={x:0},limits={y:0} ;creates a tplot variable named "two_structures" with a data and a limits structure | |||
store_data,'three_structures',data={x:0},limits={height:7,width:9},dlimits={goodbye:'world'} ; creates a tplot variable named "three_structures" with all three structures | |||
</pre> | |||
== One-dimensional Tplot Data == | == One-dimensional Tplot Data == |
Revision as of 00:15, 22 August 2014
Overview
The primary data model for SPEDAS is built around tplot-variables. Tplot-variables bind a name-string to a structure containing time series measurements with one or two structures storing heterogeneous metadata.
Getting & Storing Tplot Data
At their core, tplot variables are binding of a name to zero to three structures of any type. The structures are called "data", "dlimits" and "limits".
To bind a name to zero to three structures:
store_data,'no_structures' ;creates tplot variable names "no_structures" no associated structures. store_data,'one_structure',data={hello:'world'} ;creates a tplot variable named "one_structure" with a data structure store_data,'two_structures',data={x:0},limits={y:0} ;creates a tplot variable named "two_structures" with a data and a limits structure store_data,'three_structures',data={x:0},limits={height:7,width:9},dlimits={goodbye:'world'} ; creates a tplot variable named "three_structures" with all three structures