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.03434686686757739 1.0805059239762824 … -0.24130134952561832 -0.47868500469387315; -2.0822527871384637 -0.3246293602905065 … 2.2760050887320236 0.9558404673308423; … ; -0.38434961168983767 0.9246022168762643 … -1.6704688391945925 -0.6630357702934808; 0.4875683264447005 -0.6016572775189064 … -0.24325041200610267 -0.7866756104934651]
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")