Skip to content

Commit

Permalink
fix resolution property name
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin Rösner committed Dec 12, 2024
1 parent f6b652e commit 56f9920
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pyresample/_formatting_html.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,14 +190,18 @@ def proj_area_attrs_section(area: 'geom.AreaDefinition') -> str: # noqa F821
sorted(proj_dict.keys())]))
area_units = proj_dict.get("units", "")

resolution_bp_name = "Resolution x/y"
if proj_dict.get("proj") == "geos":
resolution_bp_name += " (SSP)"

Check warning on line 195 in pyresample/_formatting_html.py

View check run for this annotation

Codecov / codecov/patch

pyresample/_formatting_html.py#L195

Added line #L195 was not covered by tests

attrs_icon = _icon("icon-file-text2")

area_attrs = ("<dl>"
f"<dt>Area name</dt><dd>{area.area_id}</dd>"
f"<dt>Description</dt><dd>{area.description}</dd>"
f"<dt>Projection</dt><dd>{proj_str}</dd>"
f"<dt>Width/Height</dt><dd>{area.width}/{area.height} Pixel</dd>"
f"<dt>Resolution x/y (SSP)</dt><dd>{resolution_str} {area_units}</dd>"
f"<dt>{resolution_bp_name}</dt><dd>{resolution_str} {area_units}</dd>"
f"<dt>Extent (ll_x, ll_y, ur_x, ur_y)</dt>"
f"<dd>{tuple(round(float(x), 4) for x in area.area_extent)}</dd>"
"</dl>"
Expand Down

0 comments on commit 56f9920

Please sign in to comment.