Class: PlateCarreeRotatedGrid
Defined in: Grid.ts:361
A rotated lat-lon (plate carree) grid with uniform grid spacing
Extends
Constructors
Constructor
new PlateCarreeRotatedGrid(
ni
,nj
,np_lon
,np_lat
,lon_shift
,ll_lon
,ll_lat
,ur_lon
,ur_lat
,thin_x?
,thin_y?
):PlateCarreeRotatedGrid
Defined in: Grid.ts:386
Create a Lambert conformal conic grid
Parameters
Parameter | Type | Description |
---|---|---|
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) |
thin_x? | number | - |
thin_y? | number | - |
Returns
PlateCarreeRotatedGrid
Overrides
Properties
Property | Modifier | Type | Inherited from | Defined in |
---|---|---|---|---|
is_conformal | readonly | boolean | StructuredGrid .is_conformal | Grid.ts:104 |
ll_lat | readonly | number | - | Grid.ts:366 |
ll_lon | readonly | number | - | Grid.ts:365 |
lon_shift | readonly | number | - | Grid.ts:364 |
ni | readonly | number | StructuredGrid .ni | Grid.ts:102 |
nj | readonly | number | StructuredGrid .nj | Grid.ts:103 |
np_lat | readonly | number | - | Grid.ts:363 |
np_lon | readonly | number | - | Grid.ts:362 |
thin_x | readonly | number | StructuredGrid .thin_x | Grid.ts:152 |
thin_y | readonly | number | StructuredGrid .thin_y | Grid.ts:153 |
type | readonly | GridType | StructuredGrid .type | Grid.ts:101 |
ur_lat | readonly | number | - | Grid.ts:368 |
ur_lon | readonly | number | - | Grid.ts:367 |
Methods
getVectorRotationAtPoint()
getVectorRotationAtPoint(
lon
,lat
):number
Defined in: Grid.ts:138
Parameters
Parameter | Type |
---|---|
lon | number |
lat | number |
Returns
number
Inherited from
StructuredGrid
.getVectorRotationAtPoint
getVectorRotationTexture()
getVectorRotationTexture(
gl
,data_are_earth_relative
):object
Defined in: Grid.ts:144
Parameters
Parameter | Type |
---|---|
gl | WebGLAnyRenderingContext |
data_are_earth_relative | boolean |
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
Parameter | Type |
---|---|
gl | WebGLAnyRenderingContext |
thin_fac | number |
max_zoom | number |
Returns
Promise
<{ texcoords
: WGLBuffer
; vertices
: WGLBuffer
; }>
Inherited from
StructuredGrid
.getWGLBillboardBuffers
getWGLBuffers()
getWGLBuffers(
gl
):Promise
<{texcoords
:WGLBuffer
;vertices
:WGLBuffer
; }>
Defined in: Grid.ts:212
Parameters
Parameter | Type |
---|---|
gl | WebGLAnyRenderingContext |
Returns
Promise
<{ texcoords
: WGLBuffer
; vertices
: WGLBuffer
; }>
Inherited from
sampleNearestGridPoint()
sampleNearestGridPoint(
lon
,lat
,ary
):object
Defined in: Grid.ts:216
Parameters
Parameter | Type |
---|---|
lon | number |
lat | number |
ary | TypedArray |
Returns
object
sample
sample:
number
sample_lat
sample_lat:
number
sample_lon
sample_lon:
number