THE REINSURANCE ACTUARY
  • Blog
  • Project Euler
  • Category Theory
  • Disclaimer

NASA - GISS Surface Temperature Analysis (GISTEMP v4)

26/2/2025

 

​NASA produces a monthly dataset which estimates global surface temperature change. It's part of a number of datasets which can be used to track climate change. They kindly provide the python source code to run or edit the analysis, but unfortunately the fetch functions no longer work. Below I've posted code which I've corrected.

The below image, which is derived from this dataset, shows the temperature difference between Oct 2024, and the average temp in October from 1951-1980. From an insurance context, two significant changes are the Gulf of Mexico and Atlantic coast being 1-2 degrees warmer than the historic average, which impacts hurricane severity, and California being 2-4 degrees warmer which has contributed to the wildfire conditions in California.
Picture
Source: https://data.giss.nasa.gov/gistemp/maps/

​​The issue with the code is the html path has changed since the code was created, so you need to replace the source.txt file in the /config folder with the following. I've left in the old html path below but just commented them out, but they are not strictly needed any more.
In [ ]:
# Configuration file for gistemp, describing the
# location and form of all source datasets.
#
# Nick Barnes, Climate Code Foundation, 2012-05-24
# Avi Persin, Revision 2016-01-06

# For the syntax and usage of this file, see
#
# python tool/fetch.py --help.

# GHCNv4 data
# OLD = file: http://datadev.giss.nasa.gov/pub/gistemp/ghcnm.tavg.qcf.dat
file: http://data.giss.nasa.gov/pub/gistemp/ghcnm.tavg.qcf.dat

# ERRSTv5 data
# OLD = bundle: http://datadev.giss.nasa.gov/pub/gistemp/SBBX.ERSSTv5.gz
bundle: http://data.giss.nasa.gov/pub/gistemp/SBBX.ERSSTv5.gz
member: SBBX.ERSSTv5

# station metadata
# OLD = file: http://datadev.giss.nasa.gov/pub/gistemp/v4.inv
file: http://data.giss.nasa.gov/pub/gistemp/v4.inv

# Configuration for code to discard some suspect ('strange') data.
# OLD = file: http://datadev.giss.nasa.gov/pub/gistemp/Ts.strange.v4.list.IN_full
file: http://data.giss.nasa.gov/pub/gistemp/Ts.strange.v4.list.IN_full

# brightness index data
# OLD = file: http://datadev.giss.nasa.gov/pub/gistemp/wrld-rad.data.txt
file: http://data.giss.nasa.gov/pub/gistemp/wrld-rad.data.txt

Your comment will be posted after it is approved.


Leave a Reply.

    Author

    ​​I work as an actuary and underwriter at a global reinsurer in London.

    I mainly write about Maths, Finance, and Technology.
    ​
    If you would like to get in touch, then feel free to send me an email at:

    ​[email protected]

      Sign up to get updates when new posts are added​

    Subscribe

    RSS Feed

    Categories

    All
    Actuarial Careers/Exams
    Actuarial Modelling
    Bitcoin/Blockchain
    Book Reviews
    Economics
    Finance
    Forecasting
    Insurance
    Law
    Machine Learning
    Maths
    Misc
    Physics/Chemistry
    Poker
    Puzzles/Problems
    Statistics
    VBA

    Archives

    February 2025
    April 2024
    February 2024
    November 2023
    October 2023
    September 2023
    August 2023
    July 2023
    June 2023
    March 2023
    February 2023
    October 2022
    July 2022
    June 2022
    May 2022
    April 2022
    March 2022
    October 2021
    September 2021
    August 2021
    July 2021
    April 2021
    March 2021
    February 2021
    January 2021
    December 2020
    November 2020
    October 2020
    September 2020
    August 2020
    May 2020
    March 2020
    February 2020
    January 2020
    December 2019
    November 2019
    October 2019
    September 2019
    April 2019
    March 2019
    August 2018
    July 2018
    June 2018
    March 2018
    February 2018
    January 2018
    December 2017
    November 2017
    October 2017
    September 2017
    June 2017
    May 2017
    April 2017
    March 2017
    February 2017
    December 2016
    November 2016
    October 2016
    September 2016
    August 2016
    July 2016
    June 2016
    April 2016
    January 2016

  • Blog
  • Project Euler
  • Category Theory
  • Disclaimer