Skip to main content

Class: LambertGrid

Defined in: grids/LambertGrid.ts:19

A Lambert conformal conic grid with uniform grid spacing

Plot Component Compatibility

  • Fill
  • Raster
  • Contour
  • Paintball
  • Barbs
  • Hodographs
  • StationPlot

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: grids/LambertGrid.ts:46

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

autoZoomGridMixin(gridCoordinateMixin(StructuredGrid)).constructor

Properties

PropertyModifierTypeInherited fromDefined in
areadonlynumber-grids/LambertGrid.ts:27
breadonlynumber-grids/LambertGrid.ts:28
is_conformalreadonlybooleanautoZoomGridMixin(gridCoordinateMixin(StructuredGrid)).is_conformalgrids/Grid.ts:23
lat_0readonlynumber-grids/LambertGrid.ts:21
lat_stdreadonly[number, number]-grids/LambertGrid.ts:22
ll_xreadonlynumber-grids/LambertGrid.ts:23
ll_yreadonlynumber-grids/LambertGrid.ts:24
lon_0readonlynumber-grids/LambertGrid.ts:20
nireadonlynumberautoZoomGridMixin(gridCoordinateMixin(StructuredGrid)).nigrids/Grid.ts:21
njreadonlynumberautoZoomGridMixin(gridCoordinateMixin(StructuredGrid)).njgrids/Grid.ts:22
thin_xreadonlynumberautoZoomGridMixin(gridCoordinateMixin(StructuredGrid)).thin_xgrids/StructuredGrid.ts:34
thin_yreadonlynumberautoZoomGridMixin(gridCoordinateMixin(StructuredGrid)).thin_ygrids/StructuredGrid.ts:35
typereadonlyGridTypeautoZoomGridMixin(gridCoordinateMixin(StructuredGrid)).typegrids/Grid.ts:20
ur_xreadonlynumber-grids/LambertGrid.ts:25
ur_yreadonlynumber-grids/LambertGrid.ts:26

Methods

getDomainBuffers()

getDomainBuffers(gl): Promise<DomainBuffers>

Defined in: grids/DomainBuffer.ts:9

Parameters

ParameterType
glWebGLAnyRenderingContext

Returns

Promise<DomainBuffers>

Inherited from

autoZoomGridMixin(gridCoordinateMixin(StructuredGrid)).getDomainBuffers


getEarthCoords()

getEarthCoords(ni?, nj?, which_i?, which_j?): EarthCoords

Defined in: grids/GridCoordinates.ts:8

Parameters

ParameterType
ni?number
nj?number
which_i?GridElement
which_j?GridElement

Returns

EarthCoords

Inherited from

autoZoomGridMixin(gridCoordinateMixin(StructuredGrid)).getEarthCoords


getGridCoords()

getGridCoords(): GridCoords

Defined in: grids/GridCoordinates.ts:9

Returns

GridCoords

Inherited from

autoZoomGridMixin(gridCoordinateMixin(StructuredGrid)).getGridCoords


getMinVisibleZoom()

getMinVisibleZoom(thin_fac): Uint8Array

Defined in: grids/AutoZoom.ts:56

Parameters

ParameterType
thin_facnumber

Returns

Uint8Array

Inherited from

autoZoomGridMixin(gridCoordinateMixin(StructuredGrid)).getMinVisibleZoom


getVectorRotationAtPoint()

getVectorRotationAtPoint(lon, lat): number

Defined in: grids/AutoZoom.ts:55

Parameters

ParameterType
lonnumber
latnumber

Returns

number

Inherited from

autoZoomGridMixin(gridCoordinateMixin(StructuredGrid)).getVectorRotationAtPoint


getVectorRotationTexture()

getVectorRotationTexture(gl, data_are_earth_relative): object

Defined in: grids/AutoZoom.ts:54

Parameters

ParameterType
glWebGLAnyRenderingContext
data_are_earth_relativeboolean

Returns

object

rotation

rotation: WGLTexture

Inherited from

autoZoomGridMixin(gridCoordinateMixin(StructuredGrid)).getVectorRotationTexture


getWGLBillboardBuffers()

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

Defined in: grids/AutoZoom.ts:53

Parameters

ParameterType
glWebGLAnyRenderingContext
thin_facnumber
max_zoomnumber

Returns

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

Inherited from

autoZoomGridMixin(gridCoordinateMixin(StructuredGrid)).getWGLBillboardBuffers


makeDomainBuffers()

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

Defined in: grids/StructuredGrid.ts:105

Parameters

ParameterType
glWebGLAnyRenderingContext

Returns

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

Inherited from

autoZoomGridMixin(gridCoordinateMixin(StructuredGrid)).makeDomainBuffers


sampleNearestGridPoint()

sampleNearestGridPoint(lon, lat, ary): object

Defined in: grids/StructuredGrid.ts:111

Parameters

ParameterType
lonnumber
latnumber
aryTypedArray

Returns

object

sample

sample: number

sample_lat

sample_lat: number

sample_lon

sample_lon: number

Inherited from

autoZoomGridMixin(gridCoordinateMixin(StructuredGrid)).sampleNearestGridPoint


setupCoordinateCaches()

setupCoordinateCaches(start_i, end_i, start_j, end_j): void

Defined in: grids/GridCoordinates.ts:7

Parameters

ParameterType
start_inumber
end_inumber
start_jnumber
end_jnumber

Returns

void

Inherited from

autoZoomGridMixin(gridCoordinateMixin(StructuredGrid)).setupCoordinateCaches


thinnedGridParameters()

protected thinnedGridParameters(thin_fac, map_max_zoom, ll_x, ll_y, ur_x, ur_y): object

Defined in: grids/StructuredGrid.ts:55

Parameters

ParameterType
thin_facnumber
map_max_zoomnumber
ll_xnumber
ll_ynumber
ur_xnumber
ur_ynumber

Returns

object

ll_x

ll_x: number = new_ll_x

ll_y

ll_y: number = new_ll_y

ni

ni: number

nj

nj: number

thin_x

thin_x: number

thin_y

thin_y: number

ur_x

ur_x: number = new_ur_x

ur_y

ur_y: number = new_ur_y

Inherited from

autoZoomGridMixin(gridCoordinateMixin(StructuredGrid)).thinnedGridParameters


fromLLCornerLonLat()

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

Defined in: grids/LambertGrid.ts:79

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