File:Mis3 france warm interpolated tjuly 1.svg
Original file (SVG file, nominally 1,650 × 1,275 pixels, file size: 1.24 MB)
Captions
Summary
[edit]DescriptionMis3 france warm interpolated tjuly 1.svg |
English: Temperature of MIS3 warm interstadial in France. |
Date | |
Source | Own work |
Author | Merikanto |
This SVG image contains embedded raster graphics.[1] Such images are liable to produce inferior results when scaled to different sizes (as well as possibly being very inefficient in file size). If appropriate to do so, they should be replaced with images created using vector graphics. Note: This template is only supposed to be used if the SVG file mixes vector and raster graphics. If the SVG file only contains raster graphics {{FakeSVG}} is supposed to be used. See also {{TopoSVG}}. |
This image is based on OIS3 stage three project data.
Arbitrary selected points from plottings. Maybe some inaccuracy.
Raster to modify w/lapse rate 6.5/1000m interpolated is from processed etopo w/ utility under this image
File:CCSM3_17000BP_JulyT_1.svg Tjuly data is from Davies& Gollop 2003
Davies, William & Gollop, Piers. (2003). The Human Presence in Europe during the Last Glacial Period II: Climate Tolerance and Climate Preferences of Mid-and Late Glacial Hominids.
Original Tjuly data is from Pollard et al OIS3 project.
Barron, E., & Pollard, D. (2002). High-resolution climate simulations of oxygen isotope stage 3 in Europe. Quaternary Research, 58(3), 296-309. https://doi.org/10.1006/qres.2002.2374
Some points data is intuitively manually selected from plottings.
Interpolation and dalta raster add with puthon. vaery fast process compared to kriging. Visualization with NASA Panoply. Conversion to SVG on net.
Python code to interpolate
import csv
import xarray as xr
import matplotlib.pyplot as plt
import numpy as np
import scipy
from scipy.interpolate import griddata
from scipy.interpolate import Rbf
from pykrige.uk import UniversalKriging
from pykrige.ok import OrdinaryKriging
csvnimi1="./daatta/mis3w1.txt"
- csvnimi1="./daatta/mis3g2.txt"
- csvnimi1="./daatta/mis3x0.txt"
outname1="./out.nc"
dataname0="./daatta/oro330.nc"
dataname1="./daatta/result330.nc"
dataname0="./daatta/area_neworog.nc"
dataname1="./daatta/result.nc"
inx=[]
iny=[]
ints=[]
inh=[]
- points1=points1=[]
with open(csvnimi1) as csv_file1:
csvreader1 = csv.reader(csv_file1, delimiter=',')
nn = 0
lc=0
for row1 in csvreader1:
if (lc>0):
xx=float(row1[1])
yy=float(row1[2])
tt=float(row1[3])
hh=float(row1[4])
inx.append(xx)
iny.append(yy)
ints.append(tt)
inh.append(hh)
points1.append([])
points1[nn].append(xx)
points1[nn].append(yy)
nn=nn+1
lc=lc+1
- print(points1)
datakoko1=len(inx)
print (datakoko1)
- exit(-1)
hila0 = xr.open_dataset(dataname0)
hila1 = xr.open_dataset(dataname1)
elevhila0=hila0.Elev
elevhila1=np.flipud(elevhila0)
tshila0=hila1.TS
tshila1=np.flipud(tshila0)
x1=-15
x2=40
xsiz1=3300
xu1=x2-x1
xd1=xu1/xsiz1
y1=30
y2=70
ysiz1=2400
yu1=y2-y1
yd1=yu1/ysiz1
lons1 = np.arange(x1, x2, xd1)
lats1 = np.arange(y1, y2, yd1)
gx1, gy1 = np.mgrid[ 0:xsiz1, 0:ysiz1 ]
xin2=[]
yin2=[]
elev2=[]
points2=[]
for b in range(0, datakoko1):
xxx1=points1[b][0]-x1
yyy1=points1[b][1]-y1
xxx2=int(xxx1/xd1)
yyy2=int(yyy1/yd1)
zzz2=elevhila1[yyy2,xxx2]
elev2.append(zzz2)
xin2.append(xxx2)
yin2.append(yyy2)
points2.append([])
points2[b].append(xxx2)
points2[b].append(yyy2)
naytekoko=20
print( points2)
- exit(0)
xobs1 = np.random.random((naytekoko, 2))
xobs1[0:,0]=(xobs1[0:,0]*xsiz1)
xobs1[0:,1]=(xobs1[0:,1]*ysiz1)
xx1=xobs1[0:,0]
yy1=xobs1[0:,1]
- xobs1[][0]=xobs1[][0]*xu1
xobs2=xobs1.astype(int)
naytee1=[]
naytet1=[]
for b in range(0, naytekoko):
xxx1=xobs2[b,0]
yyy1=xobs2[b,1]
zzz1=tshila1[yyy1,xxx1]
zzz2=elevhila1[yyy1,xxx1]
naytet1.append(zzz1)
naytee1.append(zzz2)
- print (xobs2)
- print (naytez1)
- print (tshila1)
- points1=
- img = plt.imshow(tshila1)
- plt.scatter(xx1,yy1,marker='o',c='b',s=5)
- plt.show()
- exit(-1)
- print("Interpolating, slow, please wait patiently ... ")
- orig test
- z1 = griddata(xobs2, naytet1, (gx1,gy1), method='cubic')
- z0 = griddata(xobs2, naytee1, (gx1,gy1), method='cubic')
z1 = griddata(points2, ints, (gx1,gy1), method='cubic')
z0 = griddata(points2, elev2, (gx1,gy1), method='cubic')
- rbf = Rbf(yin2,xin2,ints, epsilon=2)
- z0 = rbf(gx1,gy1)
- OK = OrdinaryKriging(xx1,yy1, naytez1, variogram_model='linear', variogram_parameters=[1,20,1])
- OK = OrdinaryKriging(xx1,yy1, naytez1, variogram_model='exponential', variogram_parameters=[1,40,3])
- z0, ss0 = OK.execute('grid', gx1,gy1)
eh0= np.transpose(elevhila1)
print( len(eh0))
print( len(z0))
- exit(0)
deltae=eh0-z0
deltat=deltae*-0.0065
rout=z1+deltat
plt.scatter(xx1,yy1,marker='o',c='b',s=5)
- img = plt.imshow(z0, extent=(0,330,0,240), origin="upper")
img = plt.imshow(rout, extent=(0,330,0,240), origin="upper")
plt.show()
- rout=z0
outdata1 = xr.Dataset(
data_vars={'TS': (('lon', 'lat'), rout) },
coords={'lon': lons1, 'lat':lats1})
outdata1.to_netcdf(outname1)
Points
"ID","lon","lat","TS","Elev"
"Calais",1.85,50.95,11.0,0
"Marse",5.0,41.0,21.0,0.0
"Marse2",4.0,43.0,19.0,0.0
"P5",0.0,50.0,12.0,0.0
"Up1",15.0,47.5,12,1000.0
"Up2",15.0,46.5,8,2000.0
"Mare1",-10.0,46.5,10,00.0
"Aqvit1",0.5,44.5,16.5,200
"LesEyzies",1.018,44.936,16.0,75
"Loire",0,47,16.5,250
"T1",-10,40,18,0
"T2",-10,50,10,0
"T3",0,40,12.5,0
"T4",0,50,10,0
"T5",10,40,18,0
"T6",10,50,13,300
"T7",20,40,22,100
"T8",20,50,12,0
"T9",-3,45.5,12,0
"T9",-3,49,12,0
Licensing
[edit]
I, the copyright holder of this work, hereby publish it under the following license:
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.
https://creativecommons.org/licenses/by-sa/4.0CC BY-SA 4.0 Creative Commons Attribution-Share Alike 4.0 truetrue
File history
Click on a date/time to view the file as it appeared at that time.
Date/Time | Thumbnail | Dimensions | User | Comment | |
---|---|---|---|---|---|
current | 05:41, 4 October 2019 | 1,650 × 1,275 (1.24 MB) | Merikanto (talk | contribs) | User created page with UploadWizard |
You cannot overwrite this file.
File usage on Commons
There are no pages that use this file.
Metadata
This file contains additional information such as Exif metadata which may have been added by the digital camera, scanner, or software program used to create or digitize it. If the file has been modified from its original state, some details such as the timestamp may not fully reflect those of the original file. The timestamp is only as accurate as the clock in the camera, and it may be completely wrong.
Width | 1650px |
---|---|
Height | 1275px |