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
| Parameter | Type |
|---|---|
type | GridType |
is_conformal | boolean |
ni | number |
nj | number |
Returns
Grid
Properties
| Property | Modifier | Type | Defined in |
|---|---|---|---|
is_conformal | readonly | boolean | grids/Grid.ts:23 |
ni | readonly | number | grids/Grid.ts:21 |
nj | readonly | number | grids/Grid.ts:22 |
type | readonly | GridType | grids/Grid.ts:20 |
Methods
copy()
abstractcopy():Grid
Defined in: grids/Grid.ts:40
Returns
Grid
getEarthCoords()
abstractgetEarthCoords():EarthCoords
Defined in: grids/Grid.ts:32
Returns
EarthCoords
getGridCoords()
abstractgetGridCoords():GridCoords
Defined in: grids/Grid.ts:33
Returns
GridCoords
getThinnedGrid()
abstractgetThinnedGrid(thin_fac,map_max_zoom):this
Defined in: grids/Grid.ts:37
Parameters
| Parameter | Type |
|---|---|
thin_fac | number |
map_max_zoom | number |
Returns
this
sampleNearestGridPoint()
abstractsampleNearestGridPoint(lon,lat,ary):object
Defined in: grids/Grid.ts:35
Parameters
| Parameter | Type |
|---|---|
lon | number |
lat | number |
ary | TypedArray |
Returns
object
sample
sample:
number
sample_lat
sample_lat:
number
sample_lon
sample_lon:
number
thinDataArray()
abstractthinDataArray<ArrayType>(original_grid,ary):ArrayType
Defined in: grids/Grid.ts:38
Type Parameters
| Type Parameter |
|---|
ArrayType extends TypedArray |
Parameters
| Parameter | Type |
|---|---|
original_grid | Grid |
ary | ArrayType |
Returns
ArrayType
transform()
abstracttransform(x,y,opts?): [number,number]
Defined in: grids/Grid.ts:34
Parameters
| Parameter | Type |
|---|---|
x | number |
y | number |
opts? | { inverse?: boolean; } |
opts.inverse? | boolean |
Returns
[number, number]