Get Started

To create your first MeshArray, open the Julia REPL and type:

using MeshArrays
C=MeshArray(randn(21,10))
1-element MeshArrays.gcmarray{Float64, 1, Matrix{Float64}}:
 [-1.560844762376433 -0.681997853457217 … 0.4631678745806222 0.7138434704889093; -0.10204667354908487 -0.3942687808305669 … 0.7461472172195895 -0.03976187624150067; … ; -0.7383977595162274 -0.8057191627215369 … 2.92441033847981 0.5301650421499983; -0.13640460767854515 -1.9614624096997344 … 0.9661411576793949 -0.8188876858815839]
using CairoMakie
heatmap(C,x=-10:10,y=1:10)
Example block output

Grids

Three grids are available directly via this package the examples (GRID_LL360, GRID_CS32, and GRID_LLC90).

Lat-lonCube SphereLat-Lon-Cap
Lat-LonCube SphereLat-Lon-Cap

In the example below we read and display GRID_CS32. This is a cubed-sphere grid where the EArth surface is projected on the six faces of a cube.

using MeshArrays,CairoMakie
γ=GridSpec("CubeSphere",MeshArrays.GRID_CS32)
Γ=GridLoad(γ)
heatmap(Γ.YC,title="grid point latitudes")
Example block output

Install

To install MeshArrays.jl and verify it works as expected, open the Julia REPL and type:

using Pkg
Pkg.add("MeshArrays")
Pkg.test("MeshArrays")