Skip to main content

Class: LambertGrid

Defined in: Grid.ts:497

A Lambert conformal conic grid with uniform grid spacing

Extends

Constructors

Constructor

new LambertGrid(ni, nj, lon_0, lat_0, lat_std, ll_x, ll_y, ur_x, ur_y, a?, b?, thin_x?, thin_y?): LambertGrid

Defined in: Grid.ts:526

Create a Lambert conformal conic grid from the lower-left and upper-right corner x/y values.

Parameters

ParameterTypeDescription
ninumberThe number of grid points in the i (longitude) direction
njnumberThe number of grid points in the j (latitude) direction
lon_0numberThe standard longitude for the projection; this is also the center longitude for the projection
lat_0numberThe center latitude for the projection
lat_std[number, number]The standard latitudes for the projection
ll_xnumberThe x coordinate in projection space of the lower-left corner of the grid
ll_ynumberThe y coordinate in projection space of the lower-left corner of the grid
ur_xnumberThe x coordinate in projection space of the upper-right corner of the grid
ur_ynumberThe y coordinate in projection space of the upper-right corner of the grid
a?numberThe semimajor axis of the assumed shape of Earth in meters
b?numberThe semiminor axis of the assumed shape of Earth in meters
thin_x?number-
thin_y?number-

Returns

LambertGrid

Overrides

StructuredGrid.constructor

Properties

PropertyModifierTypeInherited fromDefined in
areadonlynumber-Grid.ts:505
breadonlynumber-Grid.ts:506
is_conformalreadonlybooleanStructuredGrid.is_conformalGrid.ts:104
lat_0readonlynumber-Grid.ts:499
lat_stdreadonly[number, number]-Grid.ts:500
ll_xreadonlynumber-Grid.ts:501
ll_yreadonlynumber-Grid.ts:502
lon_0readonlynumber-Grid.ts:498
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_xreadonlynumber-Grid.ts:503
ur_yreadonlynumber-Grid.ts:504

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


fromLLCornerLonLat()

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

Defined in: Grid.ts:597

Create a Lambert conformal conic grid from the lower-left grid point coordinate and a dx and dy.

Parameters

ParameterTypeDescription
ninumberThe number of grid points in the i (longitude) direction
njnumberThe number of grid points in the j (latitude) direction
lon_0numberThe standard longitude for the projection; this is also the center longitude for the projection
lat_0numberThe center latitude for the projection
lat_std[number, number]The standard latitudes for the projection
ll_lonnumberThe longitude of the lower-left corner of the grid
ll_latnumberThe latitude of the lower-left corner of the grid
dxnumberThe grid dx in meters
dynumberThe grid dy in meters
a?numberThe semimajor axis of the assumed shape of Earth in meters
b?numberThe semiminor axis of the assumed shape of Earth in meters

Returns

LambertGrid