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
| Parameter | Type | Description |
|---|---|---|
coords | object[] | The lat/lon coordinates of the grid points |
zoom? | Uint8Array | - |
Returns
UnstructuredGrid
Overrides
autoZoomGridMixin(Grid).constructor
Properties
| Property | Modifier | Type | Inherited from | Defined in |
|---|---|---|---|---|
coords | readonly | object[] | - | grids/UnstructuredGrid.ts:21 |
is_conformal | readonly | boolean | autoZoomGridMixin(Grid).is_conformal | grids/Grid.ts:23 |
ni | readonly | number | autoZoomGridMixin(Grid).ni | grids/Grid.ts:21 |
nj | readonly | number | autoZoomGridMixin(Grid).nj | grids/Grid.ts:22 |
type | readonly | GridType | autoZoomGridMixin(Grid).type | grids/Grid.ts:20 |
Methods
getVectorRotationAtPoint()
getVectorRotationAtPoint(
lon,lat):number
Defined in: grids/AutoZoom.ts:55
Parameters
| Parameter | Type |
|---|---|
lon | number |
lat | number |
Returns
number
Inherited from
autoZoomGridMixin(Grid).getVectorRotationAtPoint
getVectorRotationTexture()
getVectorRotationTexture(
gl,data_are_earth_relative):object
Defined in: grids/AutoZoom.ts:54
Parameters
| Parameter | Type |
|---|---|
gl | WebGLAnyRenderingContext |
data_are_earth_relative | boolean |
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
| Parameter | Type |
|---|---|
gl | WebGLAnyRenderingContext |
thin_fac | number |
max_zoom | number |
Returns
Promise<{ texcoords: WGLBuffer; vertices: WGLBuffer; }>
Inherited from
autoZoomGridMixin(Grid).getWGLBillboardBuffers
sampleNearestGridPoint()
sampleNearestGridPoint(
lon,lat,ary):object
Defined in: grids/UnstructuredGrid.ts:126
Parameters
| Parameter | Type |
|---|---|
lon | number |
lat | number |
ary | TypedArray |
Returns
object
sample
sample:
number
sample_lat
sample_lat:
number
sample_lon
sample_lon:
number
Overrides
autoZoomGridMixin(Grid).sampleNearestGridPoint