Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
navidcy committed Dec 24, 2024
1 parent 9ed1c2d commit 4fdff12
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions examples/ecco_mixed_layer_depth.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)
Expand Down Expand Up @@ -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..."
Expand Down

0 comments on commit 4fdff12

Please sign in to comment.