Skip to main content

Class: PlateCarreeGrid

Defined in: Grid.ts:242

A plate carree (a.k.a. lat/lon) grid with uniform grid spacing

Extends

Constructors

Constructor

new PlateCarreeGrid(ni, nj, ll_lon, ll_lat, ur_lon, ur_lat, thin_x?, thin_y?): PlateCarreeGrid

Defined in: Grid.ts:260

Create a plate carree grid

Parameters

ParameterTypeDescription
ninumberThe number of grid points in the i (longitude) direction
njnumberThe number of grid points in the j (latitude) direction
ll_lonnumberThe longitude of the lower left corner of the grid
ll_latnumberThe latitude of the lower left corner of the grid
ur_lonnumberThe longitude of the upper right corner of the grid
ur_latnumberThe latitude of the upper right corner of the grid
thin_x?number-
thin_y?number-

Returns

PlateCarreeGrid

Overrides

StructuredGrid.constructor

Properties

PropertyModifierTypeInherited fromDefined in
is_conformalreadonlybooleanStructuredGrid.is_conformalGrid.ts:104
ll_latreadonlynumber-Grid.ts:244
ll_lonreadonlynumber-Grid.ts:243
nireadonlynumberStructuredGrid.niGrid.ts:102
njreadonlynumberStructuredGrid.njGrid.ts:103
thin_xreadonlynumberStructuredGrid.thin_xGrid.ts:152
thin_yreadonlynumberStructuredGrid.thin_yGrid.ts:153
typereadonlyGridTypeStructuredGrid.typeGrid.ts:101
ur_latreadonlynumber-Grid.ts:246
ur_lonreadonlynumber-Grid.ts:245

Methods

getVectorRotationAtPoint()

getVectorRotationAtPoint(lon, lat): number

Defined in: Grid.ts:138

Parameters

ParameterType
lonnumber
latnumber

Returns

number

Inherited from

StructuredGrid.getVectorRotationAtPoint


getVectorRotationTexture()

getVectorRotationTexture(gl, data_are_earth_relative): object

Defined in: Grid.ts:144

Parameters

ParameterType
glWebGLAnyRenderingContext
data_are_earth_relativeboolean

Returns

object

rotation

rotation: WGLTexture

Inherited from

StructuredGrid.getVectorRotationTexture


getWGLBillboardBuffers()

getWGLBillboardBuffers(gl, thin_fac, max_zoom): Promise<{ texcoords: WGLBuffer; vertices: WGLBuffer; }>

Defined in: Grid.ts:132

Parameters

ParameterType
glWebGLAnyRenderingContext
thin_facnumber
max_zoomnumber

Returns

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

Inherited from

StructuredGrid.getWGLBillboardBuffers


getWGLBuffers()

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

Defined in: Grid.ts:212

Parameters

ParameterType
glWebGLAnyRenderingContext

Returns

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

Inherited from

StructuredGrid.getWGLBuffers


sampleNearestGridPoint()

sampleNearestGridPoint(lon, lat, ary): object

Defined in: Grid.ts:216

Parameters

ParameterType
lonnumber
latnumber
aryTypedArray

Returns

object

sample

sample: number

sample_lat

sample_lat: number

sample_lon

sample_lon: number

Inherited from

StructuredGrid.sampleNearestGridPoint