Skip to main content

autumnplot-gl

Classes

ClassDescription
BarbsA class representing a field of wind barbs. The barbs are automatically thinned based on the zoom level on the map; the user only has to provide a thinning factor at zoom level 1.
ColorA class for handling colors and translations between different color spaces
ColorMapA mapping from values to colors
ContourA field of contoured data.
ContourFillA filled contoured field
ContourLabelsLabel the contours on a plot
GridThe base class for grid types
HodographsA class representing a field of hodograph plots
LambertGridA Lambert conformal conic grid with uniform grid spacing
MultiPlotLayerA varying map layer. If the data don't have a varying component, such as over time, it might be easier to use a PlotLayer instead.
PaintballA class representing a paintball plot, which is a plot of objects in every member of an ensemble. Objects are usually defined by a single threshold on a field (such as simulated reflectivity greater than 40 dBZ), but could in theory be defined by any arbitrarily complicated method. In autumnplot-gl, the data for the paintball plot is given as a single field with the objects from each member encoded as "bits" in the field. Because the field is made up of single-precision floats, this works for up to 24 members. (Technically speaking, I don't need the quotes around "bits", as they're bits of the significand of an IEEE 754 float.)
PlateCarreeGridA plate carree (a.k.a. lat/lon) grid with uniform grid spacing
PlateCarreeRotatedGridA rotated lat-lon (plate carree) grid with uniform grid spacing
PlotComponentBase class for all plot components
PlotLayerA static map layer. The data are assumed to be static in time. If the data have a time component (e.g., a model forecast), a MultiPlotLayer may be more appropriate.
RasterA raster (i.e. pixel) plot
RawObsFieldRaw observation data, given as a list of objects
RawProfileFieldA class grid of wind profiles
RawScalarFieldA class representing a raw 2D field of gridded data, such as height or u wind.
RawVectorFieldA class representing a 2D gridded field of vectors
StationPlotStation model plots for observed data
StructuredGridA structured grid (in this case meaning a cartesian grid with i and j coordinates)
UnstructuredGridAn unstructured grid defined by a list of latitudes and longitudes

Interfaces

InterfaceDescription
BarbsOptionsOptions for Barbs components
ColorBarOptionsOptions for ColorBars
ColorMapOptionsOptions for ColorMaps
ContourFillOptionsOptions for ContourFill components
ContourLabelOptionsOptions for ContourLabels
ContourOptionsOptions for Contour components
FieldContourOptsOptions for contouring data via RawScalarField.getContours()
GroundRelativeWindProfileA wind profile without a storm motion for plotting ground-relative hodographs
HodographOptionsOptions for Hodographs components
InitAutumnPlotOptsOptions for initializing the autumnplot-gl library
PaintballKeyOptionsOptions for makePaintballKey()
PaintballOptionsOptions for Paintball components
RasterOptionsOptions for Raster components
RawVectorFieldOptionsOptions for RawVectorFields
SPBarbConfigConfiguration for wind barbs on station plots
SPNumberConfigConfiguration for numerical values on station plots
SPStringConfigConfiguration for strings on station plots
SPSymbolConfigConfiguration for symbols on station plots
StationPlotOptionsOptions for StationPlot components
StormRelativeWindProfileA wind profile with a storm-motion for plotting storm-relative hodographs

Type Aliases

Type AliasDescription
ColorbarOrientationThe orientation for color bars (horizontal or vertical)
ColorbarTickDirectionWhich side of a color bar the ticks are on
ContourDataThe result of contouring a field
GridType-
LineStyleA style to use to draw lines. The possible options are '-' for a solid line, '--' for a dashed line, ':' for a dotted line, '-.' for a dash-dot line, or you could pass a list of numbers (e.g., [1, 1, 1, 0, 1, 0]) to specify a custom dash scheme.
MapLikeTypeType with the required methods for mapping libraries
ObsRawDataType for an observation data point
SPConfigConfiguration for station plot sub-elements
SPDataConfigConfiguration for station data plots
SPPositionPositions around the station plot at which to draw the various elements
SPSymbolAccepted symbol codes for sky cover and present weather symbols
TypedArrayJavascript typed arrays for use in raw fields
VectorRelativeToThe basis vectors for vector fields (i.e, whether vectors a relative to Earth or the grid)
WebGLAnyRenderingContextWebGL rendering contexts (either WebGL1 or WebGL2)
WindProfileDifferent types of wind profiles for Hodographs components

Variables

VariableDescription
colormapsAll built-in colormaps

Functions

FunctionDescription
initAutumnPlotInitialize the WebAssembly module in autumnplot-gl. It's not strictly necessary to call it first, but if you call it first, you can prevent races when you contour a bunch of fields at once.
makeColorBarMake an SVG containing a color bar. The color bar can either be oriented horizontal or vertical, and a label can be provided.
makePaintballKeyMake an SVG containing a color key for a paintball plot. The key can be split over any number of columns.