Skip to content

Commit c380482

Browse files
bazilinskyyclaude
andcommitted
Dataset figures: the globe reads the Blue Marble image from the repository: NASA's server no longer answers GitHub's runners (weekly figures failed 2026-11-09 and 11-16)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent fed5836 commit c380482

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

‎utils/plotting/dataset_figures.py‎

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1056,17 +1056,16 @@ def _xyz(lon, lat, r=1.0):
10561056

10571057

10581058
GLOBE_MIN_HOURS = 0.1 # spikes start at six minutes of footage
1059-
# NASA Blue Marble (land_shallow_topo, public domain, 2048x1024, equirectangular), cached on first use
1060-
EARTH_IMAGE_URL = "https://eoimages.gsfc.nasa.gov/images/imagerecords/57000/57752/land_shallow_topo_2048.jpg"
1059+
# NASA Blue Marble (land_shallow_topo, public domain, 2048x1024, equirectangular), kept in the repository: NASA's
1060+
# server (eoimages.gsfc.nasa.gov/images/imagerecords/57000/57752/land_shallow_topo_2048.jpg) stopped answering
1061+
# GitHub's runners, which failed the weekly figures on 2026-11-09 and 11-16
1062+
EARTH_IMAGE = os.path.join(os.path.dirname(os.path.abspath(__file__)), "blue_marble_2048.jpg")
10611063

10621064

10631065
def _earth_mesh(width: int = 180, height: int = 90):
10641066
"""The Earth as a sphere mesh coloured with the Blue Marble image: one vertex per image pixel, with plotly blending
10651067
the true colours between vertices."""
1066-
path = os.path.join(common.output_dir, "blue_marble_2048.jpg")
1067-
if not os.path.exists(path):
1068-
map_labels.download(EARTH_IMAGE_URL, path)
1069-
pixels = np.asarray(Image.open(path).convert("RGB").resize((width + 1, height + 1), Image.LANCZOS))
1068+
pixels = np.asarray(Image.open(EARTH_IMAGE).convert("RGB").resize((width + 1, height + 1), Image.LANCZOS))
10701069
lon, lat = np.meshgrid(np.linspace(-180, 180, width + 1), np.linspace(90, -90, height + 1))
10711070
x, y, z = (a.ravel() for a in _xyz(lon, lat, 0.998))
10721071
v = np.arange((height + 1) * (width + 1)).reshape(height + 1, width + 1)

0 commit comments

Comments
 (0)