File:Alt gmsl seas not rem.svg

Summary

Description
English: The image shows the development of global sea level from 1992 to 2020 with seasonal variations. Measurements have been conducted via satellites TOPEX/Poseidon, Jason-1 and Jason 2. The trend line clearly shows the constant increase in global sea level of 3.5 ± 0.4 mm/year since the 1990s. The raw data is from http://www.cmar.csiro.au/sealevel/sl_hist_last_decades.html .
Date
Source Own work
Author Geek3
Other versions Alt gmsl seas rem.svg with seasonal variations removed.
SVG development
InfoField
Source code
InfoField

Python code

#! /usr/bin/env python
# -*- coding:utf8 -*-

import matplotlib.pyplot as plt
import numpy as np
from scipy import stats
from math import *

plt.style.use('classic')

# download data from ftp://ftp.marine.csiro.au/pub/legresy/gmsl_files/CSIRO_Alt_seas_inc.csv
data = []
with open('CSIRO_Alt_seas_inc.csv', 'r') as csv:
    for txt in csv.readlines():
        try:
            line = [i.strip() for i in txt.split(',')]
            if len(line) == 3:
                data.append(line)
        except Exception:
            pass

years0, h0 = [], []
years1, h1 = [], []
for d in data:
    try:
        y, h = float(d[0]), float(d[1])
        years0.append(y); h0.append(h)
    except Exception:
        pass
    try:
        y, h = float(d[0]), float(d[2])
        years1.append(y); h1.append(h)
    except Exception:
        pass

years0 = np.array(years0)

slope, intercept, r_value, p_value, std_err = stats.linregress(years0, h0)

plt.rc('font', size=15)
fig = plt.figure(figsize=(800 / 90.0, 540 / 90.0), dpi=72)
plt.plot(years0, h0, '-', color='#00eeee', linewidth=2, label='Monthly')
plt.plot(years1, h1, '-', color='#0000dd', linewidth=3, label='3-month running mean')
plt.plot(years0[[0,-1]], intercept+slope*np.array(years0[[0,-1]]), '-',
         color='red', linewidth=1.5, label='Trend = {:.1f} mm/year'.format(slope))
plt.grid(True)
plt.xlim(1992, ceil(max(years0)/10.)*10.)
plt.xlim(1992, ceil(max(years0)/1.)*1.)
plt.ylim(-53, 63)
plt.xlabel('Year')
plt.ylabel('Global Mean Sea Level (mm)')
plt.title('GMSL from TOPEX/Poseidon, Jason-1, Jason-2 and Jason-3 satellite altimeter data', size=14)
plt.legend(loc='upper left', prop={'size':14}, borderaxespad=1.2, framealpha=1)
plt.text(0.47, 0.058, '''Seasonal signal not removed
Inverse barometer correction applied
GIA correction applied''', size=14, transform=plt.gca().transAxes)
plt.tight_layout()
plt.savefig('Alt_gmsl_seas_not_rem.svg')
This file may be updated to reflect new information. If you wish to use a specific version of the file without it being overwritten, please upload the required version as a separate file.
Category:Files that need updating

Licensing

I, the copyright holder of this work, hereby publish it under the following license:
w:en:Creative Commons
attribution share alike
This file is licensed under the Creative Commons Attribution-Share Alike 4.0 International license.
You are free:
  • to share – to copy, distribute and transmit the work
  • to remix – to adapt the work
Under the following conditions:
  • attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
  • share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.
Category:CC-BY-SA-4.0#Alt%20gmsl%20seas%20not%20rem.svgCategory:Self-published work
Category:Sea level statistics Category:Sea level rise
Any autoconfirmed user can overwrite this file from the same source. Please ensure that overwrites comply with the guideline. Category:Files allowed to be overwritten by everyone
Category:CC-BY-SA-4.0 Category:Files allowed to be overwritten by everyone Category:Files that need updating Category:Sea level rise Category:Sea level statistics Category:Self-published work Category:Valid SVG created with Matplotlib code