Key Parameters to Tplot Variables

PyDIVIDE ultimately uses PyTplot to do plotting routines. If you would prefer to work with the KP data in PyTplot directly, then this is the function for you.

pydivide.tplot_varcreate(insitu, instruments=None, observations=None)[source]

Can turn an insitu object from the pydivide.read procedure into pytplot variables.

Parameters:
  • insitu – dict The dictionary object that gets created from an insitu read procedure
  • instruments – str Specific instruments to be loaded into pytplot
  • observations – str Specific observations to be loaded into pytplot
Returns:

A string list of the created tplot variables

Examples

>>> # Load MAG and NGIMS data into PyTplot
>>> tvars = pydivide.tplot_varcreate(insitu, instruments=['MAG', 'NGIMS'])

The variables created are stored in a global dictionary of xarray objects, and given names in the form

mvn::kp::{instrument}::{observation}

For example: “mvn::kp::mag::mso_x”