Skip to main content

Abstract Class: Grid

Defined in: grids/Grid.ts:19

The base class for grid types

Constructors​

Constructor​

new Grid(type, is_conformal, ni, nj): Grid

Defined in: grids/Grid.ts:25

Parameters​

ParameterType
typeGridType
is_conformalboolean
ninumber
njnumber

Returns​

Grid

Properties​

PropertyModifierTypeDefined in
is_conformalreadonlybooleangrids/Grid.ts:23
nireadonlynumbergrids/Grid.ts:21
njreadonlynumbergrids/Grid.ts:22
typereadonlyGridTypegrids/Grid.ts:20

Methods​

copy()​

abstract copy(): Grid

Defined in: grids/Grid.ts:40

Returns​

Grid


getEarthCoords()​

abstract getEarthCoords(): EarthCoords

Defined in: grids/Grid.ts:32

Returns​

EarthCoords


getGridCoords()​

abstract getGridCoords(): GridCoords

Defined in: grids/Grid.ts:33

Returns​

GridCoords


getThinnedGrid()​

abstract getThinnedGrid(thin_fac, map_max_zoom): this

Defined in: grids/Grid.ts:37

Parameters​

ParameterType
thin_facnumber
map_max_zoomnumber

Returns​

this


sampleNearestGridPoint()​

abstract sampleNearestGridPoint(lon, lat, ary): object

Defined in: grids/Grid.ts:35

Parameters​

ParameterType
lonnumber
latnumber
aryTypedArray

Returns​

object

sample​

sample: number

sample_lat​

sample_lat: number

sample_lon​

sample_lon: number


thinDataArray()​

abstract thinDataArray<ArrayType>(original_grid, ary): ArrayType

Defined in: grids/Grid.ts:38

Type Parameters​

Type Parameter
ArrayType extends TypedArray

Parameters​

ParameterType
original_gridGrid
aryArrayType

Returns​

ArrayType


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]