0001
0002
0003 ad=-0.006;
0004 timesteps=1000;
0005 temp_const=[
0006 -144000.000000 -10.264430 17.964430 -0.051329
0007 -120000.000000 -10.264430 17.964430 -0.051329
0008 -110000.000000 -11.264430 17.964430 -0.051329
0009 -100000.000000 -12.0000 17.964430 -0.051329
0010 -95000.00000 -12.40000 17.964430 -0.051329
0011 -90000.00000 -12.90000 17.964430 -0.051329
0012 -5000.000000 -14.0000 17.964430 -0.051329
0013 -0.000000 3.342444 8.657556 -0.051329];
0014
0015
0016 [xcoord,ycoord,alp10k,alpheader]=asciigrid2mat('L:\glimmer_alpen\alpen10k.asc');
0017 [lxcoord,lycoord,lat,latheader]=asciigrid2mat('L:\glimmer_alpen\alps10k_lat.asc');
0018
0019
0020 t=6;
0021
0022
0023
0024 lamb0=35;
0025 T=lat;
0026
0027 T = temp_const(t,2) + (temp_const(t,3)*exp(temp_const(t,4)*(lat-lamb0) )) ;
0028 oT=T+(ad*alp10k);
0029
0030
0031
0032 mat2asciigrid('L:\glimmer_alpen\temp10k_5.asc',xcoord,ycoord,T);
0033 mat2asciigrid('L:\glimmer_alpen\otemp10k_5.asc',xcoord,ycoord,oT);
0034
0035
0036
0037 load('D:\Matlab\MCS_Scand\glimmer_temperature');
0038 lamb0=35;
0039 lat=60;
0040 tempseries=zeros(size(glimmertemp,1),2);
0041 for t=1:size(tempseries)
0042 tempseries(t,1)=glimmertemp(t,1);
0043 tempseries(t,2) = glimmertemp(t,2) + (glimmertemp(t,3)*exp(glimmertemp(t,4)*(lat-lamb0) )) ;
0044 end
0045
0046
0047 figure, plot(1:41,tempseries(25:65,2))