autumnplot-gl

Hardware-accelerated geospatial data plotting in the browser


Project maintained by tsupinie Hosted on GitHub Pages — Theme by mattgraham

autumnplot-glDocs


autumnplot-gl / LambertGrid

Class: LambertGrid

A Lambert conformal conic grid with uniform grid spacing

Extends

Constructors

new LambertGrid()

new LambertGrid(ni, nj, lon_0, lat_0, lat_std, ll_x, ll_y, ur_x, ur_y): LambertGrid

Create a Lambert conformal conic grid

Parameters

ni: number

The number of grid points in the i (longitude) direction

nj: number

The number of grid points in the j (latitude) direction

lon_0: number

The standard longitude for the projection; this is also the center longitude for the projection

lat_0: number

The center latitude for the projection

lat_std: [number, number]

The standard latitudes for the projection

ll_x: number

The x coordinate in projection space of the lower-left corner of the grid

ll_y: number

The y coordinate in projection space of the lower-left corner of the grid

ur_x: number

The x coordinate in projection space of the upper-right corner of the grid

ur_y: number

The y coordinate in projection space of the upper-right corner of the grid

Returns

LambertGrid

Overrides

Grid.constructor

Source

Grid.ts:388

Properties

is_conformal

readonly is_conformal: boolean

Inherited from

Grid.is_conformal

Source

Grid.ts:86


lat_0

readonly lat_0: number

Source

Grid.ts:365


lat_std

readonly lat_std: [number, number]

Source

Grid.ts:366


ll_x

readonly ll_x: number

Source

Grid.ts:367


ll_y

readonly ll_y: number

Source

Grid.ts:368


lon_0

readonly lon_0: number

Source

Grid.ts:364


ni

readonly ni: number

Inherited from

Grid.ni

Source

Grid.ts:84


nj

readonly nj: number

Inherited from

Grid.nj

Source

Grid.ts:85


type

readonly type: GridType

Inherited from

Grid.type

Source

Grid.ts:83


ur_x

readonly ur_x: number

Source

Grid.ts:369


ur_y

readonly ur_y: number

Source

Grid.ts:370

Methods

copy()

copy(opts?): LambertGrid

Parameters

opts?

opts.ll_x?: number

opts.ll_y?: number

opts.ni?: number

opts.nj?: number

opts.ur_x?: number

opts.ur_y?: number

Returns

LambertGrid

Overrides

Grid.copy

Source

Grid.ts:448


getEarthCoords()

getEarthCoords(): EarthCoords

Get a list of longitudes and latitudes on the grid (internal method)

Returns

EarthCoords

Overrides

Grid.getEarthCoords

Source

Grid.ts:463


getGridCoords()

getGridCoords(): GridCoords

Returns

GridCoords

Overrides

Grid.getGridCoords

Source

Grid.ts:467


getThinnedGrid()

getThinnedGrid(thin_x, thin_y): LambertGrid

Parameters

thin_x: number

thin_y: number

Returns

LambertGrid

Overrides

Grid.getThinnedGrid

Source

Grid.ts:478


getVectorRotationTexture()

getVectorRotationTexture(gl): object

Parameters

gl: WebGLAnyRenderingContext

Returns

object

rotation

rotation: WGLTexture

Inherited from

Grid.getVectorRotationTexture

Source

Grid.ts:128


getWGLBillboardBuffers()

getWGLBillboardBuffers(gl, thin_fac, max_zoom): Promise<object>

Parameters

gl: WebGLAnyRenderingContext

thin_fac: number

max_zoom: number

Returns

Promise<object>

texcoords

texcoords: WGLBuffer

vertices

vertices: WGLBuffer

Inherited from

Grid.getWGLBillboardBuffers

Source

Grid.ts:124


getWGLBuffers()

getWGLBuffers(gl): Promise<object>

Parameters

gl: WebGLAnyRenderingContext

Returns

Promise<object>

cellsize

cellsize: WGLBuffer

texcoords

texcoords: WGLBuffer

vertices

vertices: WGLBuffer

Inherited from

Grid.getWGLBuffers

Source

Grid.ts:120


transform()

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

Parameters

x: number

y: number

opts?

opts.inverse?: boolean

Returns

[number, number]

Overrides

Grid.transform

Source

Grid.ts:471


fromLLCornerLonLat()

static fromLLCornerLonLat(ni, nj, lon_0, lat_0, lat_std, ll_lon, ll_lat, dx, dy): LambertGrid

Parameters

ni: number

nj: number

lon_0: number

lat_0: number

lat_std: [number, number]

ll_lon: number

ll_lat: number

dx: number

dy: number

Returns

LambertGrid

Source

Grid.ts:439