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.

Argo in Python

Hands-on tutorial to work with Argo program data in Python.

Aimed at people with an oceanography background who want to learn the practical workflow: how to download the data, understand the file structure, plot profiles, map trajectories, and run basic analyses.

Contents

#ChapterWhat it does
01Accessing the dataargopy in five minutes: fetch_float, fetch_box, fetch_region, R/A/D modes and QC.
02Anatomy of the datasetHow the xarray.Dataset is structured, what variables it has, how to filter by quality.
03T/S profilesPlotting individual profiles and T-S diagrams with isopycnals. Water mass identification.
04TrajectoriesMapping with cartopy. Reading the track in a dynamical context.
05Seasonal variabilityMonthly and seasonal climatologies in a South Atlantic region.
06Mixed layer depthMLD with a density criterion, summer vs winter.

Before you start

You’ll need Python ≥ 3.10 and the following libraries:

pip install argopy xarray netcdf4 cartopy gsw matplotlib jupyter

If you’ve never used argopy, don’t worry. It abstracts access to the Argo GDAC and returns a ready-to-use xarray.Dataset.

Why this tutorial

Argo floats are the operating system of the deep ocean. There are ~4000 active floats measuring temperature, salinity and pressure down to 2000 m, and the data is public and free. But the first time you open one of those NetCDF files you run into a peculiar structure: N_PROF / N_LEVELS dimensions, quality flags, calibration modes. There’s a learning curve before doing science.

This tutorial is the thing I wish I had when I started.


Daniela Risaro · 2026