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 / PlateCarreeRotatedGrid

Class: PlateCarreeRotatedGrid

A rotated lat-lon (plate carree) grid with uniform grid spacing

Extends

Constructors

new PlateCarreeRotatedGrid()

new PlateCarreeRotatedGrid(ni, nj, np_lon, np_lat, lon_shift, ll_lon, ll_lat, ur_lon, ur_lat): PlateCarreeRotatedGrid

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

np_lon: number

The longitude of the north pole for the rotated grid

np_lat: number

The latitude of the north pole for the rotated grid

lon_shift: number

The angle around the rotated north pole to shift the central meridian

ll_lon: number

The longitude of the lower left corner of the grid (on the rotated earth)

ll_lat: number

The latitude of the lower left corner of the grid (on the rotated earth)

ur_lon: number

The longitude of the upper right corner of the grid (on the rotated earth)

ur_lat: number

The latitude of the upper right corner of the grid (on the rotated earth)

Returns

PlateCarreeRotatedGrid

Overrides

Grid.constructor

Source

Grid.ts:265

Properties

is_conformal

readonly is_conformal: boolean

Inherited from

Grid.is_conformal

Source

Grid.ts:86


ll_lat

readonly ll_lat: number

Source

Grid.ts:245


ll_lon

readonly ll_lon: number

Source

Grid.ts:244


lon_shift

readonly lon_shift: number

Source

Grid.ts:243


ni

readonly ni: number

Inherited from

Grid.ni

Source

Grid.ts:84


nj

readonly nj: number

Inherited from

Grid.nj

Source

Grid.ts:85


np_lat

readonly np_lat: number

Source

Grid.ts:242


np_lon

readonly np_lon: number

Source

Grid.ts:241


type

readonly type: GridType

Inherited from

Grid.type

Source

Grid.ts:83


ur_lat

readonly ur_lat: number

Source

Grid.ts:247


ur_lon

readonly ur_lon: number

Source

Grid.ts:246

Methods

copy()

copy(opts?): PlateCarreeRotatedGrid

Parameters

opts?

opts.ll_lat?: number

opts.ll_lon?: number

opts.ni?: number

opts.nj?: number

opts.ur_lat?: number

opts.ur_lon?: number

Returns

PlateCarreeRotatedGrid

Overrides

Grid.copy

Source

Grid.ts:315


getEarthCoords()

getEarthCoords(): EarthCoords

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

Returns

EarthCoords

Overrides

Grid.getEarthCoords

Source

Grid.ts:330


getGridCoords()

getGridCoords(): GridCoords

Returns

GridCoords

Overrides

Grid.getGridCoords

Source

Grid.ts:334


getThinnedGrid()

getThinnedGrid(thin_x, thin_y): PlateCarreeRotatedGrid

Parameters

thin_x: number

thin_y: number

Returns

PlateCarreeRotatedGrid

Overrides

Grid.getThinnedGrid

Source

Grid.ts:345


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:338