Skip to main content

Class: UnstructuredGrid

Defined in: grids/UnstructuredGrid.ts:20

An unstructured grid defined by a list of latitudes and longitudes

Plot Component Compatibility​

  • ❌ Fill
  • ❌ Raster
  • ❌ Contour
  • ❌ Paintball
  • ✅ Barbs
  • ✅ Hodographs
  • ✅ StationPlot

Extends​

  • AutoZoomGridIntf & Grid<this>

Constructors​

Constructor​

new UnstructuredGrid(coords, zoom?): UnstructuredGrid

Defined in: grids/UnstructuredGrid.ts:29

Create an unstructured grid

Parameters​

ParameterTypeDescription
coordsobject[]The lat/lon coordinates of the grid points
zoom?Uint8Array-

Returns​

UnstructuredGrid

Overrides​

autoZoomGridMixin(Grid).constructor

Properties​

PropertyModifierTypeInherited fromDefined in
coordsreadonlyobject[]-grids/UnstructuredGrid.ts:21
is_conformalreadonlybooleanautoZoomGridMixin(Grid).is_conformalgrids/Grid.ts:23
nireadonlynumberautoZoomGridMixin(Grid).nigrids/Grid.ts:21
njreadonlynumberautoZoomGridMixin(Grid).njgrids/Grid.ts:22
typereadonlyGridTypeautoZoomGridMixin(Grid).typegrids/Grid.ts:20

Methods​

getVectorRotationAtPoint()​

getVectorRotationAtPoint(lon, lat): number

Defined in: grids/AutoZoom.ts:55

Parameters​

ParameterType
lonnumber
latnumber

Returns​

number

Inherited from​

autoZoomGridMixin(Grid).getVectorRotationAtPoint


getVectorRotationTexture()​

getVectorRotationTexture(gl, data_are_earth_relative): object

Defined in: grids/AutoZoom.ts:54

Parameters​

ParameterType
glWebGLAnyRenderingContext
data_are_earth_relativeboolean

Returns​

object

rotation​

rotation: WGLTexture

Inherited from​

autoZoomGridMixin(Grid).getVectorRotationTexture


getWGLBillboardBuffers()​

getWGLBillboardBuffers(gl, thin_fac, max_zoom): Promise<{ texcoords: WGLBuffer; vertices: WGLBuffer; }>

Defined in: grids/AutoZoom.ts:53

Parameters​

ParameterType
glWebGLAnyRenderingContext
thin_facnumber
max_zoomnumber

Returns​

Promise<{ texcoords: WGLBuffer; vertices: WGLBuffer; }>

Inherited from​

autoZoomGridMixin(Grid).getWGLBillboardBuffers


sampleNearestGridPoint()​

sampleNearestGridPoint(lon, lat, ary): object

Defined in: grids/UnstructuredGrid.ts:126

Parameters​

ParameterType
lonnumber
latnumber
aryTypedArray

Returns​

object

sample​

sample: number

sample_lat​

sample_lat: number

sample_lon​

sample_lon: number

Overrides​

autoZoomGridMixin(Grid).sampleNearestGridPoint