Hardware-accelerated geospatial data plotting in the browser
autumnplot-gl • Docs
autumnplot-gl / Paintball
A 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.)
PlotComponent
<MapType
>• ArrayType extends TypedArray
• MapType extends MapLikeType
new Paintball<
ArrayType
,MapType
>(field
,opts
?):Paintball
<ArrayType
,MapType
>
Create a paintball plot
• field: RawScalarField
<ArrayType
>
A scalar field containing the member objects encoded as “bits.” The numerical value of each grid point can be constructed like
1.0 * M1 + 2.0 * M2 + 4.0 * M3 + 8.0 * M4 ...
, where M1
is 1 if that grid point is in an object in member 1 and 0 otherwise,
M2
is the same thing for member 2, and M3
and M4
and up to Mn
are the same thing for the rest of the members.
• opts?: PaintballOptions
Options for creating the paintball plot
Paintball
<ArrayType
, MapType
>
readonly
opts:Required
<PaintballOptions
>
updateField(
field
):Promise
<void
>
Update the field displayed as a paintball plot
• field: RawScalarField
<ArrayType
>
The new field to display as a paintball plot
Promise
<void
>