Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for resolution stating SSP in non geos cases #639

Merged
merged 2 commits into from
Dec 12, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@
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
Loading