Hardware-accelerated geospatial data plotting in the browser
autumnplot-gl • Docs
autumnplot-gl / PlateCarreeRotatedGrid
A rotated lat-lon (plate carree) grid with uniform grid spacing
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
• 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)
readonly
is_conformal:boolean
readonly
ll_lat:number
readonly
ll_lon:number
readonly
lon_shift:number
readonly
ni:number
readonly
nj:number
readonly
np_lat:number
readonly
np_lon:number
readonly
type:GridType
readonly
ur_lat:number
readonly
ur_lon:number
copy(
opts
?):PlateCarreeRotatedGrid
• opts?
• opts.ll_lat?: number
• opts.ll_lon?: number
• opts.ni?: number
• opts.nj?: number
• opts.ur_lat?: number
• opts.ur_lon?: number
getEarthCoords():
EarthCoords
Get a list of longitudes and latitudes on the grid (internal method)
EarthCoords
getGridCoords():
GridCoords
GridCoords
getThinnedGrid(
thin_x
,thin_y
):PlateCarreeRotatedGrid
• 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
]