Class: PlateCarreeGrid
Defined in: Grid.ts:242
A plate carree (a.k.a. lat/lon) grid with uniform grid spacing
Extends
Constructors
Constructor
new PlateCarreeGrid(
ni
,nj
,ll_lon
,ll_lat
,ur_lon
,ur_lat
,thin_x?
,thin_y?
):PlateCarreeGrid
Defined in: Grid.ts:260
Create a plate carree 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 |
ll_lon | number | The longitude of the lower left corner of the grid |
ll_lat | number | The latitude of the lower left corner of the grid |
ur_lon | number | The longitude of the upper right corner of the grid |
ur_lat | number | The latitude of the upper right corner of the grid |
thin_x? | number | - |
thin_y? | number | - |
Returns
PlateCarreeGrid
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:244 |
ll_lon | readonly | number | - | Grid.ts:243 |
ni | readonly | number | StructuredGrid .ni | Grid.ts:102 |
nj | readonly | number | StructuredGrid .nj | Grid.ts:103 |
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:246 |
ur_lon | readonly | number | - | Grid.ts:245 |
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