spacepy.pybats.bats.Extraction¶
- class spacepy.pybats.bats.Extraction(x, y, dataset, var_list='all', *args, **kwargs)[source]¶
A class for creating and visualizing extractions from other
PbData
2D data sets. Bilinear interpolation is used to obtain data between points. At present, this class only works withBats2d
objects, but will be generalized in the future. Though it can be instantiated in typical fashion, It is best to create these objects via other object methods (e.g.,extract()
)- Parameters:
- xfloat or sequence
X value(s) for points at which to extract data values.
- yfloat or sequence
Y value(s) for points at which to extract data values.
- datasetBats
Bats2d
object from which to extract values.
- Other Parameters:
- var_liststring or sequence of strings
List of values to extract from dataset. Defaults to ‘all’, for all values within dataset.
- __init__(x, y, dataset, var_list='all', *args, **kwargs)[source]¶
Base class for “Data Model” representation data
Abstract method, reimplement
- Attributes:
- attrsdict
dictionary of the attributes of the SpaceData object
Methods
extract
(xpts, ypts)Attributes
- attrs: collections.abc.Mapping¶