File:Ngrip deltao18 preboreal 11700 10500 1.svg

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

Original file (SVG file, nominally 1,620 × 630 pixels, file size: 161 KB)

Captions

Captions

Ngrip delta-O-18 11700 - 10500 years ago, preboreal period

Summary

[edit]
Description
English: Ngrip delta-O-18 11700 - 10500 years ago, preboreal period
Date
Source Own work
Author Merikanto

Data for this file is from

http://www.iceandclimate.nbi.ku.dk/data/NGRIP_d18O_and_dust_5cm.xls http://www.iceandclimate.nbi.ku.dk/data/ processed to csv

δ18O values and dust concentrations

The dataset provides NGRIP δ18O values, dust concentrations, and GICC05 ages in 5cm depth resolution for the period 0-60 ka (δ18O) and 10-60 ka (dust).

The dataset accompany the following papers:

NGRIP members, Nature, 431, 147-151, 2004. DOI: 10.1038/nature02805

Gkinis et al., Earth Planet. Sci. Lett., 405, 132-141, 2014. DOI: 10.1016/j.epsl.2014.08.022

Ruth et al., J. Geophys. Res., 108, 4098, 2003. DOI: 4010.1029/2002JD002376

    1. drawing climate diagram in python 3
    2. version 4000.0002
    3. 6.10.2021

import matplotlib.pyplot as plt import numpy as np import pandas as pd from scipy import interpolate from matplotlib.ticker import (MultipleLocator, AutoMinorLocator) import scipy.signal import matplotlib.colors as colors import math as math

datafilename="ngrip1.csv" captioni="Preboreal, NGRIP delta-O18" savename="ngrip_dryas.svg"


  1. beginx=45000
  2. endx=59500

beginx=10500 endx=11700


beginy=-34 endy=-40

beginy=-34 endy=-40


beginy=-32 endy=-42


  1. beginy=-30
  2. endy=-50


figsizex=18 figsizey=7

yearspan=math.fabs(endx-beginx)

dfin0=pd.read_csv(datafilename, sep=";")

lst1=['gicc05_age','delta_O18']

dfin1 = dfin0[dfin0.columns.intersection(lst1)]

x0=dfin1['gicc05_age'] y0=dfin1['delta_O18']

x=np.array(x0) y=np.array(y0)

size0=14 size1=16 size2=18 size3=22

x_sm = np.array(x) y_sm = np.array(y)

x_smooth = np.linspace(beginx,endx, yearspan*10) funk1 = interpolate.interp1d(x_sm, y_sm, kind="cubic") y_smooth = funk1(x_smooth) y_savgol1 = scipy.signal.savgol_filter(y_smooth,11, 3) y_savgol2 = scipy.signal.savgol_filter(y_smooth,501, 3)

  1. a=np.outer(np.ones(2),y_smooth)

a=np.outer(np.ones(2),y_savgol2)

cmap1="RdBu" cmap1="hsv" cmap1="seismic" cmap1="bwr" clam1="coolwarm1"

print (type(cmap1))


  1. fig=plt.gca()
  2. plt.figure(figsize=(figsizex, figsizey))

plt.rcParams["figure.figsize"] = [figsizex, figsizey]


  1. plt.imshow(a,aspect='auto', cmap=cmap1, extent=[beginx, endx,-50,-30], alpha=0.5)

plt.imshow(a,aspect='auto', cmap=cmap1, extent=[beginx, endx,endy,beginy], alpha=0.5)


plt.xlim(beginx, endx) plt.ylim(endy, beginy)

plt.plot(x_smooth, y_savgol1, color="#0000ff", alpha=0.33, linewidth=1)

plt.plot(x_smooth, y_savgol2, color="#0000ff", linewidth=2)

plt.title(captioni, fontsize=size3, color="#0000af") plt.xlabel('Age BP', color="darkgreen", fontsize=21) plt.ylabel('delta-O18', color="darkgreen", fontsize=21) plt.xticks(fontsize=17) plt.yticks(fontsize=17)

plt.gca().invert_xaxis()


  1. mng = plt.get_current_fig_manager()
  2. mng.window.state('zoomed')



plt.savefig('figure.svg', dpi=120)


plt.show()


Licensing

[edit]
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.

File history

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

Date/TimeThumbnailDimensionsUserComment
current17:08, 6 October 2021Thumbnail for version as of 17:08, 6 October 20211,620 × 630 (161 KB)Merikanto (talk | contribs)update
18:57, 5 October 2021Thumbnail for version as of 18:57, 5 October 20211,318 × 552 (148 KB)Merikanto (talk | contribs)Uploaded own work with UploadWizard

There are no pages that use this file.

Metadata