Skip to content

Commit

Permalink
glmakie non working?
Browse files Browse the repository at this point in the history
  • Loading branch information
simone-silvestri committed Nov 7, 2023
1 parent bfdb1a1 commit d7316e7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions examples/warped_latitude_longitude_grid.jl
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
using OrthogonalSphericalShellGrids
using Oceananigans
using Oceananigans.Grids: generate_coordinate, R_Earth
using Oceananigans.Grids: R_Earth, generate_coordinate
using Oceananigans.Utils: get_cartesian_nodes_and_vertices
using OrthogonalSphericalShellGrids
using GLMakie

grid = WarpedLatitudeLongitudeGrid(size = (360, 200, 1))
grid = WarpedLatitudeLongitudeGrid(size = (360, 180, 1))
cartesian_nodes, cartesian_vertices = get_cartesian_nodes_and_vertices(grid, Center(), Center(), Center())

x, y, z = cartesian_nodes

fig = Figure()
ax = LScene(fig[1, 1])

surface!(ax, x.*0.999, y.*0.999, z.*0.999, color = :blue)
wireframe!(ax, x, y, z)
surface!(ax, x.*0.9999, y.*0.9999, z.*0.9999, color = :blue)
wireframe!(ax, x[1:2:end, 1:2:end], y[1:2:end, 1:2:end], z[1:2:end, 1:2:end])

0 comments on commit d7316e7

Please sign in to comment.