atmosphere-virtual-lab

avl

Atmosphere Virtual Lab

A toolkit for interactive plotting of atmospheric data.

Given a Harp product and variable name, it extracts data as well as meta-data to automatically produce an annotated data trace.

The following types of data traces are currently supported:

There are three types of plots that can also be individually instantiated, and populated with (compatible) data traces:

Data traces are in themselves also plots (with a single data trace), so can be shown interactively without requiring a separate plot.

Example usage:

avl.Scatter(product, 'variable name')

Additional keyword arguments are passed to the underlying plot:

avl.Geo(product, 'var1', centerlat=90)

Combining data traces:

plot = avl.MapPlot()
plot.add(avl.Geo(product, 'var1'))
plot.add(avl.Geo(product, 'var2'))
plot

download

def download(files, target_directory=".")

Download file(s) from atmospherevirtuallab.org, skipping files that already exist.

Arguments:

Volume

def Volume(product, value, **kwargs)

Return a Volume data trace for the given Harp variable.

Nan-values are converted to the lowest non-nan value.

Volume data traces cannot currently be combined in a single plot!

Arguments:

Histogram

def Histogram(product, value, **kwargs)

Return a Histogram data trace for the given Harp variable.

Compatible plot type: Plot

Arguments:

Scatter

def Scatter(product, value, **kwargs)

Return a Scatter data trace for the given Harp variable.

Compatible plot type: Plot

Arguments:

Line

def Line(product, value, **kwargs)

Return a Line data trace for the given Harp variable.

Compatible plot type: Plot

Arguments:

Heatmap

def Heatmap(product, value, **kwargs)

Return a Heatmap data trace for the given Harp variable.

Compatible plot type: Plot

Arguments:

Geo

def Geo(product, value, colormap='viridis', colorrange=None, opacity=0.6, pointsize=2, **kwargs)

Return a Geo data trace for the given Harp variable.

Compatible plot type: MapPlot

Arguments:

Geo3D

def Geo3D(product, value, colormap='viridis', colorrange=None, heightfactor=None, opacity=0.6, pointsize=None, showcolorbar=True, **kwargs)

Return a Geo3D data trace for the given Harp variable.

Compatible plot type: MapPlot3D

Arguments:

avl.vis

Plot Objects

class Plot()

2D Plot type

add

def add(obj)

Add data trace of the same plot type.

Arguments:

MapPlot Objects

class MapPlot()

2D Map Plot type

__init__

def __init__(centerlat=0.0, centerlon=0.0, size=(800, 400), zoom=1, colormaps=None, **kwargs)

Arguments:

add

def add(obj)

Add data trace of the same plot type.

Arguments:

MapPlot3D Objects

class MapPlot3D()

3D Map Plot type

__init__

def __init__(showcolorbar=True, colorrange=None, size=(640, 480), centerlon=0, centerlat=0, opacity=0.6, pointsize=None, heightfactor=None, zoom=None, colormap=None, **kwargs)

Arguments:

add

def add(obj)

Add data trace of the same plot type.

Arguments: