Skip to content

Commit

Permalink
bit of cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
navidcy authored Mar 27, 2024
1 parent 748263d commit 5939ec0
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions scripts/plot_one_degree.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Oceananigans, CairoMakie, GeoMakie

P = FieldTimeSeries("bgc/near_global_360_150_48_ConvectiveAdjustmentVerticalDiffusivity_fields.jld2", "P");
P = FieldTimeSeries("bgc/near_global_360_150_48_ConvectiveAdjustmentVerticalDiffusivity_fields.jld2", "P")

n = Observable(1)

Expand All @@ -10,13 +10,13 @@ fig = Figure()

ax = GeoAxis(fig[1, 1];title, dest = "+proj=natearth2")

xc, yc, zf = nodes(P.grid, Center(), Center(), Face())
x, y, z = nodes(P)

hm = heatmap!(ax, xc, yc, P_plt, colorrange = (0.0001, 5), colorscale = log10)
hm = heatmap!(ax, x, y, P_plt, colorrange = (0.0001, 5), colorscale = log10)

Colorbar(fig[2, 1], hm, vertical= false, label = "Phytoplankton (mmolN/m³)")

CairoMakie.record(fig, "P.mp4", 1:10:length(P.times)) do i;
n[] = i;
@info "$(n.val)";
end
CairoMakie.record(fig, "P.mp4", 1:10:length(P.times)) do i
n[] = i
@info "$(n.val)"
end

0 comments on commit 5939ec0

Please sign in to comment.