Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Calculate EKE for CARIB12

In this notebook...

You will examine output from the CARIB12 simulation or a CARIB12 simulation of your own. The notebook focuses n two simple analyses relevant to model development and validation:
1- Calculating and plotting Eddy Kinetic Energy to examine mesoscale variability of flow.
2- Plotting a Temperature-Salinity diagram to examine water mass properties.

You will either access the original CARIB12 simulation output or recreate your own CARIB12 simulation using CROCODASH.

There are several prompts along the notebook to complete the analysis with a comparisson to GLORYS reanlaysis data.

You can use the NPL 2025b environment for this notebook.

Seijo-Ellis, G., Giglio, D., Marques, G., & Bryan, F. (2024). CARIB12: a regional Community Earth System Model/Modular Ocean Model 6 configuration of the Caribbean Sea. Geoscientific Model Development, 17(24), 8989-9021

Inputs

if using the original CARIB12 output, you do not need to change any paths or file names in this notebook. If you have configured and completed your own CARIB12 simulation you will need to update the paths and filenmae accordingly.

Loading...

Eddy Kinetic Energy

We will calculate EKE using Reynold’s decomposition of the velocity field:
EKE=(12)(u′2+v′2)EKE = (\frac{1}{2})(u^{\prime2} + v^{\prime2})
u=u‾+u′u = \overline{u} + u^{\prime} and v=v‾+v′v = \overline{v} + v^{\prime},
where u‾\overline{u} and v‾\overline{v} are the time averaged zonal and meridional velocities and, u′u^{\prime} and v′v^{\prime} the corresponding anomalies.

Remapping velocities

On a Arakawa C-grid, the velocities are calculated on cell faces
Here, we use xgcm to remap the velocities to the cell centers:

Loading...

Calculate EKE

Loading...

Plot time mean EKE

<Figure size 1600x500 with 2 Axes>

Prompt

Import GLORYS data for the same time period and calculate the mean EKE.
The GLORYS data can be found here: /glade/campaign/collections/rda/data/d010049//glade/campaign/collections/rda/data/d010049/
Alternatively, you can incorporate other datasets by leveraging other packages you have learned about this week.

Use xESMF to regrid both datasets to a common grid and compare the time mean EKE between CARIB12 and GLORYS.

What can you learn from comparing CARIB12 to the GLORYS reanalysis?
How would it inform the development f the configuration?

Temperature - Salinity Diagram

if using the original CARIB12 output, you do not need to change any paths or file names in this notebook. If you have configured and completed your own CARIB12 simulation you will need to update the paths and filenmae accordingly.

Loading...

Potential Density

Prompt

The previous step does an area average without considering variation in the area of each cell. Repeat the previous step by implementing an area-weighted average computation.
The following example could be applied to this notebook:

weights = np.cos(np.deg2rad(data.lat))
weights.name = "weights"
data_weighted = data.weighted(weights)
weighted_mean = data_weighted.mean(("lon", "lat"))

where “data” is a data array with dimensions “lon” and “lat” corresponding to longitudes and latitudes, respectively.

Plot TS diagram with sigma contours

<Figure size 600x600 with 2 Axes>

Prompt

Repeat for GLORYS data and compare the vertical structure and water mass properties between the two datasets.

Final Prompt

Leveraging what you’ve learned throughout the workshop and this notebook, can you incorporate a similar analysis into CUPiD?
Good luck!