data_array#

Grid.data_arraySource#

DataArray instance.

The data array has 4 dimensions, which are (ρ, θ, ζ, RZ). ρ, θ, ζ are radial, poloidal, toroidal coordinates, respectively. RZ is a coordinate for (R, Z).

Examples

>>> grid = Grid("zone0")
>>> grid.data_array
<xarray.DataArray 'grid' (ρ: 82, θ: 601, ζ: 37, RZ: 2)> Size: 29MB
array([[[[ 3.600000e+00,  0.000000e+00],
         [ 3.600000e+00,  0.000000e+00],
         [ 3.600000e+00,  0.000000e+00],
         ...
         [ 3.096423e+00, -7.012100e-02],
         [ 3.087519e+00, -6.796400e-02],
         [ 3.078508e+00, -6.543900e-02]]]])
Coordinates:
    * ρ      (ρ) float64 656B 0.0 0.01235 0.02469 0.03704 ... 0.9753 0.9877 1.0
    * θ      (θ) float64 5kB 0.0 0.001667 0.003333 0.005 ... 0.9967 0.9983 1.0
    * ζ      (ζ) float64 296B 0.0 0.25 0.5 0.75 1.0 ... 8.0 8.25 8.5 8.75 9.0
    * RZ     (RZ) <U1 8B 'R' 'Z'
Attributes:
    units:      m
    long_name:  grid coordinates