Skip to main content

Class: PlateCarreeRotatedGrid

Defined in: grids/PlateCarreeRotatedGrid.ts:18

A rotated lat-lon (plate carree) grid with uniform grid spacing

Plot Component Compatibility​

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

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: grids/PlateCarreeRotatedGrid.ts:41

Create a Lambert conformal conic grid

Parameters​

ParameterTypeDescription
ninumberThe number of grid points in the i (longitude) direction
njnumberThe number of grid points in the j (latitude) direction
np_lonnumberThe longitude of the north pole for the rotated grid
np_latnumberThe latitude of the north pole for the rotated grid
lon_shiftnumberThe angle around the rotated north pole to shift the central meridian
ll_lonnumberThe longitude of the lower left corner of the grid (on the rotated earth)
ll_latnumberThe latitude of the lower left corner of the grid (on the rotated earth)
ur_lonnumberThe longitude of the upper right corner of the grid (on the rotated earth)
ur_latnumberThe latitude of the upper right corner of the grid (on the rotated earth)
thin_x?number-
thin_y?number-

Returns​

PlateCarreeRotatedGrid

Overrides​

autoZoomGridMixin(gridCoordinateMixin(StructuredGrid)).constructor

Properties​

PropertyModifierTypeInherited fromDefined in
is_conformalreadonlybooleanautoZoomGridMixin(gridCoordinateMixin(StructuredGrid)).is_conformalgrids/Grid.ts:23
ll_latreadonlynumber-grids/PlateCarreeRotatedGrid.ts:23
ll_lonreadonlynumber-grids/PlateCarreeRotatedGrid.ts:22
lon_shiftreadonlynumber-grids/PlateCarreeRotatedGrid.ts:21
nireadonlynumberautoZoomGridMixin(gridCoordinateMixin(StructuredGrid)).nigrids/Grid.ts:21
njreadonlynumberautoZoomGridMixin(gridCoordinateMixin(StructuredGrid)).njgrids/Grid.ts:22
np_latreadonlynumber-grids/PlateCarreeRotatedGrid.ts:20
np_lonreadonlynumber-grids/PlateCarreeRotatedGrid.ts:19
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_latreadonlynumber-grids/PlateCarreeRotatedGrid.ts:25
ur_lonreadonlynumber-grids/PlateCarreeRotatedGrid.ts:24

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