Skip to content

Commit

Permalink
Merge pull request #639 from BENR0/fix_resolution_bulletpint_html_repr
Browse files Browse the repository at this point in the history
  • Loading branch information
djhoese authored Dec 12, 2024
2 parents f6b652e + d33686e commit c499af0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
- os: windows-2019
cibw_archs: "AMD64 ARM64"
artifact_name: "win"
- os: macos-12
- os: macos-13
cibw_archs: "x86_64 arm64"
artifact_name: "mac"
- os: "ubuntu-20.04"
Expand Down
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)"

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 c499af0

Please sign in to comment.