Hardware-accelerated geospatial data plotting in the browser
autumnplot-gl • Docs
autumnplot-gl / LambertGrid
A Lambert conformal conic grid with uniform grid spacing
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
• 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
readonly
is_conformal:boolean
readonly
lat_0:number
readonly
lat_std: [number
,number
]
readonly
ll_x:number
readonly
ll_y:number
readonly
lon_0:number
readonly
ni:number
readonly
nj:number
readonly
type:GridType
readonly
ur_x:number
readonly
ur_y:number
copy(
opts
?):LambertGrid
• opts?
• opts.ll_x?: number
• opts.ll_y?: number
• opts.ni?: number
• opts.nj?: number
• opts.ur_x?: number
• opts.ur_y?: number
getEarthCoords():
EarthCoords
Get a list of longitudes and latitudes on the grid (internal method)
EarthCoords
getGridCoords():
GridCoords
GridCoords
getThinnedGrid(
thin_x
,thin_y
):LambertGrid
• thin_x: number
• thin_y: number
getVectorRotationTexture(
gl
):object
• gl: WebGLAnyRenderingContext
object
rotation:
WGLTexture
getWGLBillboardBuffers(
gl
,thin_fac
,max_zoom
):Promise
<object
>
• gl: WebGLAnyRenderingContext
• thin_fac: number
• max_zoom: number
Promise
<object
>
texcoords:
WGLBuffer
vertices:
WGLBuffer
getWGLBuffers(
gl
):Promise
<object
>
• gl: WebGLAnyRenderingContext
Promise
<object
>
cellsize:
WGLBuffer
texcoords:
WGLBuffer
vertices:
WGLBuffer
transform(
x
,y
,opts
?): [number
,number
]
• x: number
• y: number
• opts?
• opts.inverse?: boolean
[number
, number
]
static
fromLLCornerLonLat(ni
,nj
,lon_0
,lat_0
,lat_std
,ll_lon
,ll_lat
,dx
,dy
):LambertGrid
• ni: number
• nj: number
• lon_0: number
• lat_0: number
• lat_std: [number
, number
]
• ll_lon: number
• ll_lat: number
• dx: number
• dy: number