Skip to content

Commit da7e159

Browse files
committed
oco: hero image without Antarctica
1 parent 6a0c0cf commit da7e159

3 files changed

Lines changed: 4 additions & 1 deletion

File tree

‎oco/data/README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ snow 0.955/0.156/0.052, conifer 0.652/0.261/0.112, dry grass 0.517/0.597/0.452.
7676

7777
`img/xco2_hero.jpg` (2400 × 1080, 148 kB): per-cell **median** XCO₂ of all good-quality OCO-2
7878
Lite v11.2 soundings of 2023 on a 3° grid (29.0 M soundings, 5855 cells), nearest-neighbour
79-
gap-filled, σ = 0.7 cell smoothing, drawn over land only (ocean left dark), Antarctica masked,
79+
gap-filled, σ = 0.7 cell smoothing, drawn over land only (ocean left dark), Antarctica removed entirely for now,
8080
bold light coastlines, Robinson projection, colour range 413.4–420.8 ppm. There is no OCO L3
8181
product on disk, so this is our own composite; annual medians at high latitudes are biased low by
8282
summer-only sampling (the blue Siberia).

‎oco/img/xco2_hero.jpg‎

-10.3 KB
Loading

‎oco/scripts/make_xco2_hero.py‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,8 @@
2424
pm = ax.pcolormesh(lon, lat, np.ma.masked_invalid(Xs), transform=ccrs.PlateCarree(), cmap=cmap, vmin=lo, vmax=hi, shading="flat", zorder=2)
2525
ax.add_feature(cfeature.OCEAN.with_scale("110m"), facecolor="#0b1420", edgecolor="none", zorder=3) # ocean stays dark
2626
ax.add_feature(cfeature.COASTLINE.with_scale("50m"), edgecolor="#e8edf2", linewidth=1.8, zorder=4) # bold light outlines
27+
# Antarctica removed for now (no data there and the polar edge of the projection distracts): paint it as ocean
28+
import matplotlib.patches as mpatches
29+
ax.add_patch(mpatches.Rectangle((-180, -90), 360, 30, transform=ccrs.PlateCarree(), facecolor="#0b1420", edgecolor="none", zorder=5))
2730
fig.savefig(out, dpi=100, pil_kwargs={"quality": 62, "optimize": True, "progressive": True})
2831
print("wrote", out, f"{os.path.getsize(out)/1e3:.0f} kB")

0 commit comments

Comments
 (0)