Skip to content

Commit 56f9920

Browse files
author
Benjamin Rösner
committed
fix resolution property name
1 parent f6b652e commit 56f9920

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

pyresample/_formatting_html.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,14 +190,18 @@ def proj_area_attrs_section(area: 'geom.AreaDefinition') -> str: # noqa F821
190190
sorted(proj_dict.keys())]))
191191
area_units = proj_dict.get("units", "")
192192

193+
resolution_bp_name = "Resolution x/y"
194+
if proj_dict.get("proj") == "geos":
195+
resolution_bp_name += " (SSP)"
196+
193197
attrs_icon = _icon("icon-file-text2")
194198

195199
area_attrs = ("<dl>"
196200
f"<dt>Area name</dt><dd>{area.area_id}</dd>"
197201
f"<dt>Description</dt><dd>{area.description}</dd>"
198202
f"<dt>Projection</dt><dd>{proj_str}</dd>"
199203
f"<dt>Width/Height</dt><dd>{area.width}/{area.height} Pixel</dd>"
200-
f"<dt>Resolution x/y (SSP)</dt><dd>{resolution_str} {area_units}</dd>"
204+
f"<dt>{resolution_bp_name}</dt><dd>{resolution_str} {area_units}</dd>"
201205
f"<dt>Extent (ll_x, ll_y, ur_x, ur_y)</dt>"
202206
f"<dd>{tuple(round(float(x), 4) for x in area.area_extent)}</dd>"
203207
"</dl>"

0 commit comments

Comments
 (0)