File:Winter-NAO-Index.svg

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

Original file(SVG file, nominally 566 × 351 pixels, file size: 137 KB)

Captions

Winter index of the North Atlantic oscillation

Captions

Summary[edit]

Description
English: Winter (December through March) index of the North Atlantic oscillation (NAO) based on the difference of normalized sea level pressure (SLP) between Lisbon, Portugal and Stykkishólmur/Reykjavík, Iceland since 1864, with loess smoothing (black, confidence interval in grey).
Date 28 September 2017
Source Data source : Hurrell, James & National Center for Atmospheric Research Staff Hurrell North Atlantic Oscillation (NAO) Index (station-based) / Hosted data / "DJFM North Atlantic Oscillation Index (Station-Based) "
Author

Oeneis. Originally created by Marsupilami ;

updated with 2019 data and produced with R code by Oeneis
Other versions

[edit]

Create this graph[edit]

Annual and winter NAO in 3 languages

R logo.svg This chart was created with R:

R code

# Build multi languages plots for annual and winter NAO
# based on Hurrell data.

library(tidyverse)
library(glue)

# get data : winter and annual
# add sign column for colors. remove the last row (void)
nao_djfm_hurrell <- "https://climatedataguide.ucar.edu/sites/default/files/nao_station_djfm.txt" %>% 
  read_table(skip = 1, col_types = "id", na = "-999.0", col_names = c("year", "nao")) %>% 
  mutate(sign = if_else(nao < 0, "negative", "positive")) %>% 
  drop_na()

nao_hurrell <- "https://climatedataguide.ucar.edu/sites/default/files/nao_station_annual.txt" %>% 
  read_table(skip = 1, col_types = "id", na = "-999.0", col_names = c("year", "nao")) %>% 
  mutate(sign = if_else(nao < 0, "negative", "positive")) %>% 
  drop_na()


# manage languages
language <- list(
  fr_FR = list(
    winter = list(
      data = nao_djfm_hurrell,
      title = "Indice hivernal de l'oscillation nord-atlantique (ONA)",
      subtitle = "Lisbonne - Stykkishólmur/Reykjavik, décembre à mars",
      caption = "Données : Climate Analysis Section, NCAR, Boulder, USA, Hurrell (2003)\nMise à jour régulière. Accédé le",
      x = "Année",
      y = "Différence de pression normalisée (hPa)",
      outDec = ","
    ),
    annual = list(
      data = nao_hurrell,
      title = "Indice annuel de l'oscillation nord-atlantique (ONA)",
      subtitle = "Lisbonne - Stykkishólmur/Reykjavik",
      caption = "Données : Climate Analysis Section, NCAR, Boulder, USA, Hurrell (2003)\nMise à jour régulière. Accédé le",
      x = "Année",
      y = "Différence de pression normalisée (hPa)",
      outDec = ","
    )
  ),
  en_US = list(
    winter = list(
      data = nao_djfm_hurrell,            
      title = "North Atlantic Oscillation (NAO) winter index",
      subtitle = "Lisbon - Stykkishólmur/Reykjavík, December to March",
      caption = "NAO Index Data provided by the Climate Analysis Section, NCAR, Boulder, USA, Hurrell (2003)\nUpdated regularly. Accessed",
      x = "Year",
      y = "Difference of normalized sea level pressure (hPa)",
      outDec = "."
    ),
    annual = list(
      data = nao_hurrell,
      title = "North Atlantic Oscillation (NAO) annual index",
      subtitle = "Lisbon - Stykkishólmur/Reykjavík",
      caption = "NAO Index Data provided by the Climate Analysis Section, NCAR, Boulder, USA, Hurrell (2003)\nUpdated regularly. Accessed",
      x = "Year",
      y = "Difference of normalized sea level pressure (hPa)",
      outDec = "."
    )
  ),
  de_DE = list(
    winter = list(
      data = nao_djfm_hurrell,
      title = "Nordatlantischen Oszillation (NAO) Winter Index",
      subtitle = "Lisbon - Stykkishólmur/Reykjavík, Dezember bis März",
      caption = "Datei : Climate Analysis Section, NCAR, Boulder, USA, Hurrell (2003)\nRegelmäßig aktualisiert. Zugänglich am",
      x = "Jahre",
      y = "Differenz der standardisierten Luftdruck (hPa)",
      outDec = ","
    ),
    annual = list(
      data = nao_hurrell,      
      title = "Nordatlantischen Oszillation (NAO) Index",
      subtitle = "Lisbon - Stykkishólmur/Reykjavík",
      caption = "Datei : Climate Analysis Section, NCAR, Boulder, USA, Hurrell (2003)\nRegelmäßig aktualisiert. Zugänglich am",
      x = "Jahre",
      y = "Differenz der standardisierten Luftdruck (hPa)",
      outDec = ","
    )
  )
)

theme_set(theme_bw())
theme_update(plot.caption = element_text(size = 7))
oldDec <- getOption("OutDec")

for (l in names(language)) {
  message(l)
  
  for (t in names(language[[l]])) {
    message(t)
    current <- language[[l]][[t]]
    options(OutDec = current$outDec)
    
    # plot graph
    ggplot(current$data, aes(year, nao)) +
      geom_col(aes(fill = sign)) +
      geom_smooth(span = .15, color = "black", alpha = 0.3) +
      scale_fill_manual(values = c("positive" = "darkorange2",
                                   "negative" = "deepskyblue3")) +
      scale_x_continuous(breaks = seq(1860, max(current$data$year), 20)) +
      guides(fill = FALSE) +
      labs(title = current$title,
           subtitle = current$subtitle,
           caption = glue("{current$caption} {format(Sys.Date(), '%Y-%m-%d')}"),
           x = current$x,
           y = current$y)
    
    ggsave(file = glue("nao_hurrell_{t}_{l}_{Sys.Date()}.svg"), 
           width = 20,
           height = 12.4,
           units = "cm",
           scale = 0.8,
           device = svg)
  }
}

options(OutDec = oldDec)


Licensing[edit]

Public domain I, the copyright holder of this work, release this work into the public domain. This applies worldwide.
In some countries this may not be legally possible; if so:
I grant anyone the right to use this work for any purpose, without any conditions, unless such conditions are required by law.

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current13:25, 1 November 2020Thumbnail for version as of 13:25, 1 November 2020566 × 351 (137 KB)Oeneis (talk | contribs)2019 data
08:22, 21 October 2018Thumbnail for version as of 08:22, 21 October 2018566 × 351 (135 KB)Oeneis (talk | contribs)2017-2018 data
14:49, 8 October 2017Thumbnail for version as of 14:49, 8 October 2017566 × 351 (138 KB)Oeneis (talk | contribs)use device = svg to get a nicer renderer
20:14, 28 September 2017Thumbnail for version as of 20:14, 28 September 2017512 × 317 (46 KB)Oeneis (talk | contribs)2016-2017 data
15:57, 16 November 2016Thumbnail for version as of 15:57, 16 November 2016512 × 317 (46 KB)Oeneis (talk | contribs)2016 data
10:52, 23 May 2016Thumbnail for version as of 10:52, 23 May 2016512 × 369 (35 KB)Oeneis (talk | contribs)axis labels
20:25, 9 July 2015Thumbnail for version as of 20:25, 9 July 2015708 × 531 (76 KB)Oeneis (talk | contribs)Updated to 2015 values
19:00, 3 February 2010Thumbnail for version as of 19:00, 3 February 20101,024 × 638 (15 KB)Imalipusram (talk | contribs){{Information |Description={{en|1=North Atlantic Oscillation (NAO) index from 1864 - 2009. Data Source: http://www.cgd.ucar.edu/cas/jhurrell/Data/naodjfmindex.asc}} |Source=Created by Imalipusram |Author=[[User:Imalipusram|Imalipusram

File usage on other wikis

The following other wikis use this file:

Metadata