File:Changes of temperature of world 1000 1500 ad 01 01.png

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

Original file(1,504 × 689 pixels, file size: 176 KB, MIME type: image/png)

Captions

Captions

Changes of temperature of world 1000 - 1500 AD

Summary[edit]

Description
English: Changes of temperature of world 1000 - 1500 AD degrees Celsius
Date
Source Own work
Author Merikanto

Last Millennium Reanalysis (LMR) Project Data Page - version 2

https://atmos.washington.edu/~hakim/lmr/LMRv2/

LMR v2.1

global-mean temperature

https://atmos.washington.edu/%7Ehakim/lmr/LMRv2/gmt_MCruns_ensemble_full_LMRv2.1.nc

Reference of data source

Tardif, R., G. J. Hakim, W. A. Perkins, K. A. Horlick, M. P. Erb, J. Emile-Geay, D. M. Anderson, E. J. Steig, and D. Noone, 2019: Last Millennium Reanalysis with an expanded proxy database and seasonal proxy modeling. Clim. Past, 15, 1251-1273, doi:10.5194/cp-15-1251-2019.

Anderson, D. M., R. Tardif, K. Horlick, M. P. Erb, G. J. Hakim, D. Noone, W. A. Perkins, E. J. Steig, 2019: Additions to the Last Millennium Reanalysis multi-proxy database. Data Science Journal, 18(1), doi:10.5334/dsj-2019-002.

Python3 code

###########################################
#
## plot LMR data 
# https://atmos.washington.edu/~hakim/lmr/LMRv2/
# Last Millennium Reanalysis (LMR) Project Data Page - version 2
## LMR v2.1
## python xarray
##
#
# 2023.05.13 0000.0000
#
####

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

captioni="Mean temperature changes of world between 1000 - 1500 AD"
#subtitle="deg C"

file_path = './data/gmt_MCruns_ensemble_full_LMRv2.1.nc'
#file_path = './data/nhmt_MCruns_ensemble_full_LMRv2.1.nc'
#file_path = './data/shmt_MCruns_ensemble_full_LMRv2.1.nc'

ds = xr.open_dataset(file_path)

k1=ds.gmt[:]

k2=np.array(k1)

#y=k2[:,1,1]

#y=np.mean(axis=1)

y=np.mean(k2, axis=(1, 2)) 

print(np.shape(y))

#quit(-1)

#for iy in range(100):
#	for ix in range(20):
#		y2=k2[:,ix,iy]
#		plt.plot(y2,color="#000070", alpha=0.01, linewidth=1 )

yys1=[]
yys2=[]

for iy in range(100):
	yys1.append(np.mean(k2, axis=2))
	
for iy in range(20):
	yys2.append(np.mean(k2, axis=1))
	
	
print (np.shape(yys1[1]))

#quit()

#for iy in range(20):
#	plt.plot(yys2[iy], color="#0000ff", alpha=0.01, linewidth=1 )

for iy in range(100):
	plt.plot(yys1[iy], color="#8080ff", alpha=0.005, linewidth=1 )

plt.plot(y, color="#7f0000", alpha=0.8, linewidth=2)
#plt.grid(True)
 
plt.xlim(1000,1500)
#plt.ylim(-0.5, 0.2)
##plt.ylim(-1, 1)
plt.ylim(-0.5, 0.2)

#plt.axhline(y = ylimit1, color = 'g', linestyle = ':', linewidth=2)

#plt.locator_params(axis='x', nbins=10) 
#plt.axis.xaxis.set_minor_locator(MultipleLocator(5))
#plt.axes().xaxis.set_minor_locator(MultipleLocator(5))
#plt.axes().yaxis.set_minor_locator(tck.AutoMinorLocator())

plt.gca().xaxis.set_major_locator(plt.MultipleLocator(100))
plt.gca().xaxis.set_minor_locator(plt.MultipleLocator(20))

#plt.gca().yaxis.set_major_locator(plt.MultipleLocator(100))
#plt.gca().yaxis.set_minor_locator(plt.MultipleLocator(10))

plt.grid(which='major', linestyle=':', linewidth='0.5', color='blue', alpha=.5)
# Customize the minor grid
plt.grid(which='minor', linestyle=':', linewidth='0.5', color='green', alpha=.5)

plt.title(captioni, fontsize=18, color="#0000af")
#plt.suptitle(subtitle,fontsize=14)
plt.xlabel('Year AD', color="darkgreen", fontsize=21)
plt.ylabel("Delta T deg Celsius", color="darkgreen", fontsize=21)
plt.xticks(fontsize=17)
plt.yticks(fontsize=17)

#plt.gca().invert_yaxis()

#mng = plt.get_current_fig_manager()
#mng.window.state('zoomed')

plt.savefig('figure.svg')

plt.show()

quit(-1)

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
current08:51, 13 May 2023Thumbnail for version as of 08:51, 13 May 20231,504 × 689 (176 KB)Merikanto (talk | contribs)Uploaded own work with UploadWizard

There are no pages that use this file.

Metadata