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}}:
[0.4287073652418572 -1.7118668967263762 … -0.9972703367151018 -1.4070373774199545; -0.5168520319421462 -0.41528850911000625 … 0.49892117432719485 2.1889500881702393; … ; -1.5380476039064492 -0.09397751969636928 … 1.433419755602813 1.1000132864494145; -0.044985548441519196 0.7921383833593222 … 1.6332326820975867 1.2444855593383024]
using CairoMakie
heatmap(C,x=-10:10,y=1:10)
Grids
Three grids are available directly via this package the examples (GRID_LL360
, GRID_CS32
, and GRID_LLC90
).
Lat-lon | Cube Sphere | Lat-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")
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")