S2Grid

(method of S2Grid)

Syntax

S2Grid(theta,rho)      % fills a Sphere with N--nodes
regularS2Grid(...)     % construct regular polar and azimuthal spacing
equispacedS2Grid(...)  % construct equispaced nodes

Input

nodes

vector3d

param,val Parameters and values that control S2Grid
Parameter Description
'POINTS'

[nrho,ntheta] number of points to be generated

'RESOLUTION'

resolution of a equispaced grid

'HEMISPHERE'

'lower', 'uper', 'complete', 'sphere', 'identified'}

'THETA'

theta angle

'RHO'

rho angle

'MINRHO'

starting rho angle (default 0)

'MAXRHO'

maximum rho angle (default 2*pi)

'MINTHETA'

starting theta angle (default 0)

'MAXTHETA'

maximum theta angle (default pi)

param Options that control the S2Grid behavior
Parameter Description
'REGULAR'

generate a regular grid

'EQUISPACED'

generate equidistribution

'ANTIPODAL'

include antipodal symmetry

'PLOT'

generate plotting grid

'NO_CENTER'

ommit point at center

'RESTRICT2MINMAX'

restrict margins to min / max

Example

regularS2Grid('points',[72 19])
 
ans = S2Grid  
 size: 72 x 19
regularS2Grid('resolution',[5*degree 2.5*degree])
 
ans = S2Grid  
 size: 72 x 73
equispacedS2Grid('resolution',5*degree,'maxrho',pi)
plot(ans)
 
ans = S2Grid  
 size: 1 x 824
 resolution: 5°

See also

vector3d/vector3d