Contains the class that handle a Vertical 1D field.
Bases: epygram.fields.D3Field.D3Field
Vertical 1-Dimension (column) field class. A field is defined by its identifier ‘fid’, its data, its geometry, and its validity.
Footprint:
dict(
attr = dict(
comment = dict(
access = 'rwd',
alias = set([]),
default = None,
optional = True,
outcast = set([]),
remap = dict(),
type = str,
values = set([]),
),
data = dict(
access = 'rxx',
alias = set([]),
default = None,
optional = True,
outcast = set([]),
remap = dict(),
values = set([]),
),
fid = dict(
access = 'rwx',
alias = set([]),
default = None,
optional = False,
outcast = set([]),
remap = dict(),
type = footprints.stdtypes.FPDict,
values = set([]),
),
geometry = dict(
access = 'rwx',
alias = set([]),
default = None,
info = 'Geometry defining the position of the field gridpoints.',
optional = False,
outcast = set([]),
remap = dict(),
type = epygram.geometries.V1DGeometry.V1DGeometry,
values = set([]),
),
processtype = dict(
access = 'rxx',
alias = set([]),
default = None,
info = 'Generating process.',
optional = True,
outcast = set([]),
remap = dict(),
values = set([]),
),
spectral_geometry = dict(
access = 'rxx',
alias = set([]),
default = None,
info = 'For a spectral field, its spectral geometry handles spectral transforms and dimensions.',
optional = True,
outcast = set([]),
remap = dict(),
type = epygram.geometries.SpectralGeometry.SpectralGeometry,
values = set([]),
),
structure = dict(
access = 'rxx',
alias = set([]),
default = None,
info = 'Type of Field geometry.',
optional = False,
outcast = set([]),
remap = dict(),
values = set(['V1D']),
),
validity = dict(
access = 'rwx',
alias = set([]),
default = epygram.base.FieldValidityList::<<
as_list:: [epygram.base.FieldValidity::<epygram.base.FieldValidity object at 0x7f7afd4df690>]
>>,
info = 'Validity of the field.',
optional = True,
outcast = set([]),
remap = dict(),
type = epygram.base.FieldValidityList,
values = set([]),
),
),
bind = [],
info = 'Not documented',
only = dict(),
priority = dict(
level = footprints.priorities.PriorityLevel::DEFAULT,
),
)
Makes a simple (profile) plot of the field. Help on arguments can be found in actual plot functions docstrings.
Args:
if several validities are available, a simple profile plot otherwise. hovmoller to force an hovmoller plot profile to force a simple profile plot animation to force an animation plot
To plot a series of profiles. Returns a matplotlib Figure.
Args:
profiles being a epygram.base.FieldSet of epygram.fields.V1DField, or a single epygram.fields.V1DField.
All profiles are supposed to have the same unit, and the same vertical coordinate.
labels = a list of labels for the profiles (same length and same order).
if None, labels with raw fid.
Ycoordinate = label for the Y coordinate.
unit = label for X coordinate.
title = title for the plot.
logscale = to set Y logarithmic scale
ema = to make emagram-like plots of Temperature
zoom: a dict containing optional limits to zoom on the plot.
Syntax: e.g. {‘ymax’:500, ...}.
Makes a simple vertical Hovmöller plot of the field.
Args:
profile being a epygram.fields.V1DField
if title is None; if None, labels with raw fid.
Ycoordinate = label for the Y coordinate.
title = title for the plot.
logscale = to set Y logarithmic scale
zoom: a dict containing optional limits to zoom on the plot.
Syntax: e.g. {‘ymax’:500, ...}.
colorbar: if False, hide colorbar the plot; else, befines the colorbar orientation, among (‘horizontal’, ‘vertical’). Defaults to ‘vertical’.
graphicmode: among (‘colorshades’, ‘contourlines’).
minmax: defines the min and max values for the plot colorbar.
Syntax: [min, max]. [0.0, max] also works. Default is min/max of the field.
levelsnumber: number of levels for contours and colorbar.
center_cmap_on_0: aligns the colormap center on the value 0.
colormap: name of the matplotlib colormap to use.
minmax_in_title: if True and minmax != None, adds min and max values in title
contourcolor: color or colormap to be used for ‘contourlines’ graphicmode. It can be either a legal html color name, or a colormap name.
contourwidth: width of contours for ‘contourlines’ graphicmode.
contourlabel: displays labels on contours.
datefmt: date format to use
Warning: requires matplotlib.