"""Fetch Kyoto's FINAL hourly Dst for the twelve months of 2015 and check them against the copies we used. Fact-Checked Science ("Our analysis"), 20 November 2026, for the check of Marschollek, M., AGU26 abstract GH11D-VR9816 (not peer reviewed). Source: World Data Center for Geomagnetism, Kyoto, Geomagnetic Dst index, doi:10.17593/14515-74000 (Nose, M., Iyemori, T., Sugiura, M., and Kamei, T.), final values, one page a month: https://wdc.kugi.kyoto-u.ac.jp/dst_final/2015MM/index.html. Final values only: this script never reads Kyoto's provisional or real-time ("quicklook") pages. The WDC's rules allow scientific, non-commercial use with acknowledgement of the WDC and of the observatories that supply the data: https://wdc.kugi.kyoto-u.ac.jp/wdc/Sec3.html. Run: python3 -I fetch_dst_2015.py It saves /dst_final_2015MM.html, identifying itself as "factchecked-research/1.0", and compares each page with the SHA-256 of our copy (fetched 2026-11-20, 19:20-19:30 UTC). A page whose bytes differ (the WDC may change its page layout) is kept and reported; then check the hourly values instead: kyoto_dst_final.py prints the SHA-256 of the 8,760 values it reads and compares it with ours. Standard library only (Python 3.9+). """ import hashlib import os import sys import time import urllib.request UA = "factchecked-research/1.0" URL = "https://wdc.kugi.kyoto-u.ac.jp/dst_final/2015%02d/index.html" OURS = { 1: "fed9deeedd1f88a96b12a916eeb30b2bc135fb9363d7be989e04224e74053318", 2: "8b76c32f4644e449ce44fdec75e630003b9f684026f7109961f50a90a74ade56", 3: "ce59c3be06dd17fda06006a1483b87ca45b283d078a326227b38aa0deb3c88ff", 4: "185b6c54bc4791b6027c40643aeff7747f3b69f8d68833e295879ba7e5e6e9b5", 5: "f764266433c0a2c4e98b3c2061f94a0eae8395904d9924b1281d12f004a50621", 6: "d994447121ea45e29736cdde2f087c711f9faa19d54ad178d3ce1898927defa2", 7: "0069380ff7cff1d43f455202b2896669086e4fd87010c72899c63372e9a3f7bb", 8: "8a6b42ef1360d1a3f1fe1cf4ae70fc4d5bf423c3fd929066251cdedaa32fbffb", 9: "f058193f2cbe57bdce57e8f6b7cbcdc091f9cf5d0073855d0f391cbb4df5dc9b", 10: "18bc377baa5126833379ef727072199c2a181d3005ef15f83036a8001c13b68a", 11: "397e32a3f2880da06340f998de49a81fdc92fe4b9c790ff716c453ce7eaa2b74", 12: "39e8bf8cb67f5758c26cd9fbcbf9bbbb67fb2da0ac8b55fb181bbd6541a92a9f", } def main(folder): os.makedirs(folder, exist_ok=True) differ = 0 for m in range(1, 13): path = os.path.join(folder, "dst_final_2015%02d.html" % m) req = urllib.request.Request(URL % m, headers={"User-Agent": UA}) with urllib.request.urlopen(req, timeout=60) as r: b = r.read() with open(path, "wb") as f: f.write(b) h = hashlib.sha256(b).hexdigest() same = h == OURS[m] differ += not same print("2015-%02d: %d bytes, %s" % (m, len(b), "same as ours" if same else "DIFFERENT bytes (check the values)")) time.sleep(1) print("all pages match our copies" if not differ else "%d page(s) differ in bytes: run kyoto_dst_final.py, " "which checks the hourly values themselves" % differ) if __name__ == "__main__": main(sys.argv[1])