From 7dd44f7f5054734509eb3685669ff0cdafeaca11 Mon Sep 17 00:00:00 2001 From: Robert Jackson Date: Mon, 11 May 2026 12:26:18 -0500 Subject: [PATCH] ENH: Use site name and variable long_name in column subplot titles Previously each subplot in create_radclss_columns used the default xarray title. Now titles read "{station} {long_name}" so each panel clearly identifies both the site and the field being plotted. Co-Authored-By: Claude Opus 4.7 (1M context) --- src/radclss/vis/quicklooks.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/radclss/vis/quicklooks.py b/src/radclss/vis/quicklooks.py index a951dfe..3e7e8df 100644 --- a/src/radclss/vis/quicklooks.py +++ b/src/radclss/vis/quicklooks.py @@ -101,6 +101,8 @@ def create_radclss_columns( final_time.strftime("%Y-%m-%dT00:00:00"), ) ).plot(y="height", ax=axarr[row, col], vmin=vmin, vmax=vmax, **kwargs) + long_name = ds[field].attrs.get("long_name", field) + axarr[row, col].set_title(f"{station} {long_name}") if isinstance(radclss, str): ds.close()