spacepy.pybats.pwom.Lines

class spacepy.pybats.pwom.Lines(lines, starttime=None, *args, **kwargs)[source]

A class for reading and plotting a complete set of PWOM line output files. Open using a glob string that encompasses all of the lines that are intended to be read, e.g. ‘north*.out’. Note that unix wildcards are accepted.

__init__(lines, starttime=None, *args, **kwargs)[source]

Base class for “Data Model” representation data

Abstract method, reimplement

Attributes:
attrsdict

dictionary of the attributes of the SpaceData object

Methods

add_slice(var, alt, time[, nlev, zlim, ...])

Create a plot of variable var at altitude alt.

calc_flux()

Calculate flux in units of #/cm2/s.

Attributes

add_slice(var, alt, time, nlev=31, zlim=None, target=None, loc=111, title=None, latoffset=1.05, rlim=50.0, add_cbar=True, clabel=None, show_pts=False, show_alt=True, dolog=False, lats=[75.0, 60.0], colats=None, figsize=(8.34, 7), *args, **kwargs)[source]

Create a plot of variable var at altitude alt.

If kwarg target is None (default), a new figure is generated from scratch. If target is a matplotlib Figure object, a new axis is created to fill that figure at subplot location loc. If target is a matplotlib Axes object, the plot is placed into that axis.

calc_flux()[source]

Calculate flux in units of #/cm2/s. Variables saved as self[species+’Flux’].

attrs: collections.abc.Mapping