Intro
Most of the monthly data sets for coastwide indices in pacea have anomalies. oni has both values and anomalies. The npi_monthly data set has only values, but not anomalies.
How anomalies are calculated varies substantially between indices. Started a note re: Trends vs. Anomalies
Have 2 specific items to resolve:
- trying to calculate the anomalies for NPI and need to resolve among alternative versions
- trying to understand the base values used for the ONI anomalies
A general request:
NPI Anomalies
trying to recreate NPI Anomalies
testing in this script
# ?npi_annual states that anomalies are calculated relative to 1925-1989 mean
base.mean <- mean( npi_monthly %>% dplyr::filter(year %in% 1925:1989) %>% select(value) %>% unlist(),na.rm=TRUE)
base.mean # comes out as 1012.503
# different from the 1008.9 hPa value in the npi_annual help file?
# mean of the annual values matches
mean(npi_annual %>% dplyr::filter(year %in% 1925:1989) %>% select(value) %>% unlist(),na.rm=TRUE)
This script generates a comparison plot of the three versions:
Summer months show positive anomalies when compared to a single overall base value, but not when compared to a month-specific base value.
Request for NPI Anomalies
ONI Anomalies
the oni object has monthly values and anomalies. The helpfile at ?oni states "The Oceanic Niño Index (ONI) is a 3-month running mean of sea surface temperature (SST) anomalies in the Niño 3.4 region (5 deg N to 5 deg S, 120 deg W to 170 deg W) plotted on the center month. The SST anomalies are calculated based on 30-year base periods that are updated every 5 years, which accounts for global warming and some of the decadal-scale SST variability (as seen in the Pacific Decadal Oscillation index)."
Because the oni object includes both values and anomalies, the base value used for each monthly anomaly can be calculated. Figure below, generated with this script shows annual base values for August and January.
Intro
Most of the monthly data sets for coastwide indices in pacea have anomalies.
onihas both values and anomalies. Thenpi_monthlydata set has only values, but not anomalies.How anomalies are calculated varies substantially between indices. Started a note re: Trends vs. Anomalies
Have 2 specific items to resolve:
A general request:
NPI Anomalies
trying to recreate NPI Anomalies
testing in this script
This script generates a comparison plot of the three versions:
Summer months show positive anomalies when compared to a single overall base value, but not when compared to a month-specific base value.
Request for NPI Anomalies
ONI Anomalies
the
oniobject has monthly values and anomalies. The helpfile at?onistates "The Oceanic Niño Index (ONI) is a 3-month running mean of sea surface temperature (SST) anomalies in the Niño 3.4 region (5 deg N to 5 deg S, 120 deg W to 170 deg W) plotted on the center month. The SST anomalies are calculated based on 30-year base periods that are updated every 5 years, which accounts for global warming and some of the decadal-scale SST variability (as seen in the Pacific Decadal Oscillation index)."Because the
oniobject includes both values and anomalies, the base value used for each monthly anomaly can be calculated. Figure below, generated with this script shows annual base values for August and January.