Skip to main content

Abstract Class: StructuredGrid

Defined in: grids/StructuredGrid.ts:33

A structured grid (in this case meaning a cartesian grid with i and j coordinates)

Extends​

  • DomainBufferIntf & Grid<this>

Constructors​

Constructor​

new StructuredGrid(type, is_conformal, ni, nj, thin_x?, thin_y?): StructuredGrid

Defined in: grids/StructuredGrid.ts:37

Parameters​

ParameterType
typeGridType
is_conformalboolean
ninumber
njnumber
thin_x?number
thin_y?number

Returns​

StructuredGrid

Overrides​

domainBufferMixin(Grid).constructor

Properties​

PropertyModifierTypeInherited fromDefined in
is_conformalreadonlybooleandomainBufferMixin(Grid).is_conformalgrids/Grid.ts:23
nireadonlynumberdomainBufferMixin(Grid).nigrids/Grid.ts:21
njreadonlynumberdomainBufferMixin(Grid).njgrids/Grid.ts:22
thin_xreadonlynumber-grids/StructuredGrid.ts:34
thin_yreadonlynumber-grids/StructuredGrid.ts:35
typereadonlyGridTypedomainBufferMixin(Grid).typegrids/Grid.ts:20

Methods​

copy()​

abstract copy(opts?): Grid

Defined in: grids/StructuredGrid.ts:103

Parameters​

ParameterType
opts?{ ni?: number; nj?: number; }
opts.ni?number
opts.nj?number

Returns​

Grid

Overrides​

domainBufferMixin(Grid).copy


getDomainBuffers()​

getDomainBuffers(gl): Promise<DomainBuffers>

Defined in: grids/DomainBuffer.ts:9

Parameters​

ParameterType
glWebGLAnyRenderingContext

Returns​

Promise<DomainBuffers>

Inherited from​

domainBufferMixin(Grid).getDomainBuffers


getEarthCoords()​

abstract getEarthCoords(ni?, nj?, which_i?, which_j?): EarthCoords

Defined in: grids/StructuredGrid.ts:44

Parameters​

ParameterType
ni?number
nj?number
which_i?GridElement
which_j?GridElement

Returns​

EarthCoords

Overrides​

domainBufferMixin(Grid).getEarthCoords


getGridCoords()​

abstract getGridCoords(): GridCoords

Defined in: grids/Grid.ts:33

Returns​

GridCoords

Inherited from​

domainBufferMixin(Grid).getGridCoords


getThinnedGrid()​

abstract getThinnedGrid(thin_fac, map_max_zoom): this

Defined in: grids/Grid.ts:37

Parameters​

ParameterType
thin_facnumber
map_max_zoomnumber

Returns​

this

Inherited from​

domainBufferMixin(Grid).getThinnedGrid


makeDomainBuffers()​

protected makeDomainBuffers(gl): Promise<{ texcoords: WGLBuffer; vertices: WGLBuffer; }>

Defined in: grids/StructuredGrid.ts:105

Parameters​

ParameterType
glWebGLAnyRenderingContext

Returns​

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


sampleNearestGridPoint()​

sampleNearestGridPoint(lon, lat, ary): object

Defined in: grids/StructuredGrid.ts:111

Parameters​

ParameterType
lonnumber
latnumber
aryTypedArray

Returns​

object

sample​

sample: number

sample_lat​

sample_lat: number

sample_lon​

sample_lon: number

Overrides​

domainBufferMixin(Grid).sampleNearestGridPoint


thinnedGridParameters()​

protected thinnedGridParameters(thin_fac, map_max_zoom, ll_x, ll_y, ur_x, ur_y): object

Defined in: grids/StructuredGrid.ts:55

Parameters​

ParameterType
thin_facnumber
map_max_zoomnumber
ll_xnumber
ll_ynumber
ur_xnumber
ur_ynumber

Returns​

object

ll_x​

ll_x: number = new_ll_x

ll_y​

ll_y: number = new_ll_y

ni​

ni: number

nj​

nj: number

thin_x​

thin_x: number

thin_y​

thin_y: number

ur_x​

ur_x: number = new_ur_x

ur_y​

ur_y: number = new_ur_y


transform()​

abstract transform(x, y, opts?): [number, number]

Defined in: grids/Grid.ts:34

Parameters​

ParameterType
xnumber
ynumber
opts?{ inverse?: boolean; }
opts.inverse?boolean

Returns​

[number, number]

Inherited from​

domainBufferMixin(Grid).transform