Ocean-plot: a small CLI for SST maps, wind vectors and point time series from NetCDF

Hi all — I’m sharing a small open-source tool I maintain, ocean-plot, built on xarray and Matplotlib, with optional Cartopy maps.

It wraps a few recurring tasks for rectilinear ocean datasets: inspecting NetCDF metadata, plotting SST and geographic wind vectors, and exporting nearest-grid-point temperature series to CSV. It has been smoke-tested with OISST and CCMP subsets, and includes an offline synthetic demo.

The emphasis is explicit selection and predictable handling of missing values. It does not silently average time/depth dimensions. Regional domains that become discontinuous at the dateline are rejected; curvilinear grids and non-standard-calendar time series are not supported yet.

Code, examples and GitHub Release downloads: GitHub - 1460197441-web/ocean-plot: Python CLI for ocean NetCDF: SST maps, wind vectors and point time series with xarray, Matplotlib and optional Cartopy. · GitHub

I’d appreciate feedback on the CLI and metadata compatibility, especially small reproducible examples that fail. It’s an early release, not a replacement for a general analysis library. It is available on PyPI: pip install ocean-plot, or pip install "ocean-plot[netcdf4,maps]" for NetCDF4 and coastline support.

1 Like

Seconding the question about nearest-grid-point landing on a masked cell. Silent skipping versus an explicit error changes downstream CSV interpretation, so documenting that (and ideally echoing the chosen cell’s lat/lon and mask state) would help. On the dateline rejection: including the parsed lon bounds in the exception, plus the offending variable name, seems like a low-cost improvement. I’m in Denver and mostly work with land-side data, so I can’t speak to OISST edge cases, but predictable failure messages are the part I’d test first.