From 4fdff12dfcfa8737a1b0c0e29c91e4a1dfac4857 Mon Sep 17 00:00:00 2001 From: "Navid C. Constantinou" Date: Tue, 24 Dec 2024 17:55:52 +1100 Subject: [PATCH] update --- examples/ecco_mixed_layer_depth.jl | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/examples/ecco_mixed_layer_depth.jl b/examples/ecco_mixed_layer_depth.jl index ff3165e5..7eed00a5 100644 --- a/examples/ecco_mixed_layer_depth.jl +++ b/examples/ecco_mixed_layer_depth.jl @@ -2,7 +2,7 @@ using ClimaOcean using ClimaOcean.Diagnostics: MixedLayerDepthField using ClimaOcean.DataWrangling.ECCO: ECCO_field, ECCOFieldTimeSeries using Oceananigans -using GLMakie +using CairoMakie using Printf using CFTime using Dates @@ -23,7 +23,7 @@ grid = LatitudeLongitudeGrid(arch; z, latitude = (-80, 80), longitude = (0, 360)) -bottom_height = regrid_bathymetry(grid; +bottom_height = regrid_bathymetry(grid; minimum_depth = 10, interpolation_passes = 5, major_basins = 1) @@ -73,7 +73,9 @@ Label(fig[1, 1], str, tellwidth=false) hn = @lift ht[$n] hm = heatmap!(axh, hn, colorrange=(0, 500), colormap=:magma, nan_color=:lightgray) Colorbar(fig[2, 2], hm, label="Mixed layer depth (m)") -display(fig) +fig + +# And record a movie record(fig, "ecco_mld.mp4", 1:Nt-1, framerate=4) do nn @info "Drawing frame $nn of $Nt..."