spacepy.pybats.dgcpm.MltSlice

class spacepy.pybats.dgcpm.MltSlice(filename, *args, **kwargs)[source]

Open and handle an MLT Slice output file.

__init__(filename, *args, **kwargs)[source]

Reads the data; sorts into arrays.

Methods

add_lut([target, loc, cmap, zlim, add_cbar, ...])

Plot log(density) as a contour against L-Shell (y-axis) and universal time (x-axis) using the PyBats target method of other standard plotting methods.

Attributes

add_lut(target=None, loc=111, cmap='Greens_r', zlim=[1, 1000], add_cbar=True, clabel='Density $cm^{-3}$', xlabel='full', title=None, grid=True, ntick=5)[source]

Plot log(density) as a contour against L-Shell (y-axis) and universal time (x-axis) using the PyBats target method of other standard plotting methods. Four items are returned: the Matplotlib Figure, Axes, Mesh, and ColorBar objects used (if cbar is set to False, the returned ColorBar object is simply set to False.)

Kwarg

Description

target

Select plot destination. Defaults to new figure/axis.

loc

The location of any generated subplots. Default is 111.

add_cbar

Toggles the automatic colorbar. Default is**True**.

cmap

Selects Matplotlib color table. Defaults to Greens_r.

zlim

Limits for z-axis. Defaults to [0.1, 1000]

clabel

Sets colorbar label. Defaults to units.

xlabel

Sets x-axis labels, use ‘full’, ‘ticks’, or None.

title

Sets axis title; defaults to None.

grid

Show white dotted grid? Defaults to True

ntick

Number of attempted cbar ticks. Defaults to 5.

attrs: collections.abc.Mapping