Retrieves the combined global land- and sea-surface temperature anomaly (Land-Ocean Temperature Index, LOTI). Source is NASA/GISS Surface Temperature Analysis (GISTEMP v4), an estimate of global surface temperature change. https://data.giss.nasa.gov/gistemp/

get_temp(use_cache = TRUE, write_cache = getOption("hs_write_cache"))

Arguments

use_cache

(boolean) Return cached data if available, defaults to TRUE. Use FALSE to fetch updated data.

write_cache

(boolean) Write data to cache, defaults to FALSE. Use TRUE to write data to cache for later use. Can also be set using options(hs_write_cache=TRUE)

Value

Invisibly returns a tibble with the annual mean and monthly Combined Land-Surface Air and Sea-Surface Water Temperature Anomalies.

get_temp invisibly returns a tibble with the NASA/GISS annual mean and monthly global temperature anomaly. Data are global from 1880 to present, and represent the deviations from the 1951-1980 mean.

The returned object includes monthly and annual average anomalies, as well as seasonal anomalies. GISS Surface Temperature Analysis (GISTEMP v4) is an estimate of global surface temperature change.

Data are updated around the middle of every month using current data files from NOAA GHCN v4 (meteorological stations) and ERSST v5 (ocean areas). Station data are combined as described in Hansen et al. (2010) https://data.giss.nasa.gov/gistemp/references.html and Lenssen et al. (2019) https://pubs.giss.nasa.gov/abs/le05800h.html

References

  • GISS Surface Temperature Analysis (GISTEMP v4): https://data.giss.nasa.gov/gistemp/

  • GISTEMP Team, 2020: GISS Surface Temperature Analysis (GISTEMP), version 4. NASA Goddard Institute for Space Studies.

  • Lenssen, N., G. Schmidt, J. Hansen, M. Menne, A. Persin, R. Ruedy, and D. Zyss, 2019: Improvements in the GISTEMP uncertainty model. J. Geophys. Res. Atmos., 124, no. 12, 6307-6326, doi:10.1029/2018JD029522. https://pubs.giss.nasa.gov/abs/le05800h.html

Author

Hernando Cortina, hch@alum.mit.edu

Examples

# \donttest{ # Fetch temp anomaly from cache if available: anomaly <- get_temp() # # Force cache refresh: anomaly <- get_temp(use_cache=FALSE)
#> Warning: InternetOpenUrl failed: 'The server name or address could not be resolved'
#> Error in download.file(file_url, dl): cannot open URL 'https://data.giss.nasa.gov/gistemp/tabledata_v4/GLB.Ts+dSST.csv'
# # Review cache contents and last update dates: hockeystick_cache_details()
#> <hockeystick cached files> #> directory: C:\Users\hch\AppData\Local/R/cache/R/hockeystick #> #> file: C:\Users\hch\AppData\Local/R/cache/R/hockeystick/emissions.rds #> size: 1699.5 kB #> date: 2021-06-13 00:11:14 #> #> file: C:\Users\hch\AppData\Local/R/cache/R/hockeystick/gisstemp.rds #> size: 5.3 kB #> date: 2021-06-13 00:10:57 #> #> file: C:\Users\hch\AppData\Local/R/cache/R/hockeystick/hurricanes.rds #> size: 1.6 kB #> date: 2021-06-13 00:11:12 #> #> file: C:\Users\hch\AppData\Local/R/cache/R/hockeystick/maunaloa.rds #> size: 9.5 kB #> date: 2021-06-13 00:10:56 #> #> file: C:\Users\hch\AppData\Local/R/cache/R/hockeystick/seaice.rds #> size: 0.5 kB #> date: 2021-06-13 00:10:57 #> #> file: C:\Users\hch\AppData\Local/R/cache/R/hockeystick/sealevel.rds #> size: 16.1 kB #> date: 2021-06-13 00:11:03 #> #> file: C:\Users\hch\AppData\Local/R/cache/R/hockeystick/temp2k.rds #> size: 21.8 kB #> date: 2021-06-13 00:11:12 #>
# # Plot output using package's built-in ggplot2 settings plot_temp(anomaly) # }